slaclab / pysmurf

Other
2 stars 9 forks source link

Noise vs bias function crashing #103

Closed swh76 closed 5 years ago

swh76 commented 5 years ago

With this error:

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-186-7c84a7c7f510> in <module>
----> 1 S.noise_vs_bias(band=2,bias_group=7,bias=[19.9,13.0,12.3,11.5,10.8,10.1,8.86,7.99,6.77],high_current_mode=False,overbias_voltage=19.9,meas_time=60.,analyze=True,channel=S.which_on(2),psd_ylim=(1,1e3),make_timestream_plot=True)

/usr/local/src/pysmurf/pysmurf/debug/smurf_noise.py in noise_vs_bias(self, band, bias_group, bias_high, bias_low, step_size, bias, high_current_mode, overbias_voltage, meas_time, analyze, channel, nperseg, detrend, fs, show_plot, cool_wait, gcp_mode, psd_ylim, make_timestream_plot)
    332                       psd_ylim=psd_ylim, overbias_voltage=overbias_voltage,
    333                       cool_wait=cool_wait,high_current_mode=high_current_mode,
--> 334                       make_timestream_plot=make_timestream_plot)
    335
    336     def noise_vs_amplitude(self, band, amplitude_high=11, amplitude_low=9, step_size=1,

/usr/local/src/pysmurf/pysmurf/debug/smurf_noise.py in noise_vs(self, band, var, var_range, meas_time, analyze, channel, nperseg, detrend, fs, show_plot, gcp_mode, psd_ylim, make_timestream_plot, **kwargs)
    453                                        make_timestream_plot=make_timestream_plot,
    454                                        xlabel_override=xlabel_override,
--> 455                                        unit_override=unit_override)
    456
    457     def get_datafiles_from_file(self,fn_datafiles):

TypeError: analyze_noise_vs_bias() got an unexpected keyword argument 'unit_override'
swh76 commented 5 years ago

Fixed by https://github.com/slaclab/pysmurf/pull/107.