-
Notifications
You must be signed in to change notification settings - Fork 0
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
Create Rfrac plot when bias steps are taken and run_analysis=True #345
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A couple of small things, we want this to only plot when take_bias_steps
is run directly, and not through take_bgmap
. I think we should add a plot_rfrac=True
kwarg to take_bias_steps
that gets set to False in take_bgmap
. Also I believe the plot_Rfrac
function just returns the figure but doesn't save it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks max, this looks good to me! @dpdutcher or @samdayweiss any chance you have a system where we can quickly test this? Otherwise I'm fine with just merging.
Not at the moment, but I should late next week |
We had the SMuRFs off for the last few days while we did some work on their mount but I’m gonna be doing some detector work Monday and Tuesday so we can test then?
Let me know,
Sam
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: dpdutcher ***@***.***>
Sent: Friday, May 26, 2023 4:02:34 PM
To: simonsobs/sodetlib ***@***.***>
Cc: Samuel F. Day-Weiss ***@***.***>; Mention ***@***.***>
Subject: Re: [simonsobs/sodetlib] Create Rfrac plot when bias steps are taken and run_analysis=True (PR #345)
Not at the moment, but I should late next week
—
Reply to this email directly, view it on GitHub<#345 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ATJIAG776HZIZKNDZCITTETXIED5VANCNFSM6AAAAAAYOHQ3CM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Testing this on SATP3 now |
Running into some errors when running `AttributeError Traceback (most recent call last) File /sodetlib/sodetlib/operations/bias_dets.py:198, in bias_to_rfrac(S, cfg, rfrac, bias_groups, iva, overbias, Rn_range, math_only) File /sodetlib/sodetlib/util.py:851, in overbias_dets(S, cfg, bias_groups, biases, cool_wait, high_current_mode) File /sodetlib/sodetlib/util.py:682, in set_current_mode(S, bgs, mode, const_current) File /usr/local/lib/python3.8/dist-packages/epics/init.py:362, in caput_many(pvlist, values, wait, connection_timeout, put_timeout) File /usr/local/lib/python3.8/dist-packages/epics/init.py:362, in (.0) File /usr/local/lib/python3.8/dist-packages/epics/pv.py:205, in PV.init(self, pvname, callback, form, verbose, auto_monitor, count, connection_callback, connection_timeout, access_callback) AttributeError: 'PV' object has no attribute 'strip'` Traceback for `--------------------------------------------------------------------------- File /sodetlib/sodetlib/util.py:682, in set_current_mode(S, bgs, mode, const_current) File /usr/local/lib/python3.8/dist-packages/epics/init.py:362, in caput_many(pvlist, values, wait, connection_timeout, put_timeout) File /usr/local/lib/python3.8/dist-packages/epics/init.py:362, in (.0) File /usr/local/lib/python3.8/dist-packages/epics/pv.py:205, in PV.init(self, pvname, callback, form, verbose, auto_monitor, count, connection_callback, connection_timeout, access_callback) AttributeError: 'PV' object has no attribute 'strip' During handling of the above exception, another exception occurred: TypeError Traceback (most recent call last) File /usr/local/src/pysmurf/python/pysmurf/client/util/pub.py:50, in set_action..dec..wrapper(S, pub_action, *args, **kwargs) File /sodetlib/sodetlib/operations/bias_steps.py:1065, in take_bgmap(S, cfg, bgs, dc_voltage, step_voltage, step_duration, nsteps, high_current_mode, hcm_wait_time, analysis_kwargs, dacs, use_waveform, show_plots, g3_tag, plot_rfrac) File /usr/local/src/pysmurf/python/pysmurf/client/util/pub.py:50, in set_action..dec..wrapper(S, pub_action, *args, **kwargs) File /sodetlib/sodetlib/operations/bias_steps.py:1205, in take_bias_steps(S, cfg, bgs, step_voltage, step_duration, nsteps, high_current_mode, hcm_wait_time, run_analysis, analysis_kwargs, dacs, use_waveform, channel_mask, g3_tag, plot_rfrac, show_plots) File /sodetlib/sodetlib/util.py:687, in set_current_mode(S, bgs, mode, const_current) File /usr/local/src/pysmurf/python/pysmurf/client/command/smurf_command.py:104, in SmurfCommandMixin._caput(self, pvname, val, write_log, execute, wait_before, wait_after, wait_done, log_level, enable_poll, disable_poll, new_epics_root, **kwargs) TypeError: unhashable type: 'PV'` |
6c19fbf
to
ea0b855
Compare
Test complete after fixes from Jack and the plots show up nicely on Teleview, I think this can be merged! |
I think this addresses issue #343 so that we will have Rfrac plots made regularly viewable via Caleb's HTML viewer.