Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unpolarized probe from SA plot #151

Merged
merged 1 commit into from
Jun 28, 2022

Conversation

purnimab
Copy link
Contributor

@purnimab purnimab commented Jun 24, 2022

When polarized and unpolarized Probes exist, unpolarized Probe is plotted in "SA" view as default view (log scale) such that the SA for polarized probes cannot be viewed. Removes this from the plot.

When Polarized and Unpolarized probes exist, Unpolarized probe is plotted in "SA" views as default view (log scale) such that the SA for polarized probes cannot be viewed. Removes this from the plot.
@bmaranville
Copy link
Member

@purnimab - this PR seems to be based on a branch other than 'master'. Can you start a new PR with just the changes you've listed in this commit, but based on 'master'?

@purnimab
Copy link
Contributor Author

purnimab commented Jun 25, 2022 via email

@bmaranville
Copy link
Member

Ah - I think I was wrong. I saw a commit that looked like it came from a different branch, but github says your 'master' is just behind this 'master' by 6 commits, so the merge should work fine.

@pkienzle
Copy link
Member

@purnimab can you please add the fix I suggest in #153? It should still run Build_Unstable / test_and_build but publish and updateUnstableText should be skipped.

@pkienzle
Copy link
Member

Regarding this PR, does the SA plot still work when the datasets do not contain unpolarized?

Wouldn't it be better to suppress the unpolarized plots when SA is requested rather than suppressing the SA?

@purnimab
Copy link
Contributor Author

purnimab commented Jun 28, 2022

@pkienzle Since PolarizedNeutronProbe has it's own plot() function which does call plot_SA(), the SA plot still works for the polarized datasets. This should just suppress plotting the "default view" (unpolarized plot) for the unpolarized probe when requesting SA.

@purnimab
Copy link
Contributor Author

purnimab commented Jun 28, 2022

Also, what is the file you want me to edit? Found it! @bmaranville were you doing this or should I do something?

@pkienzle pkienzle merged commit 817a6fd into reflectometry:master Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants