Skip to content

Commit

Permalink
FIX: Set all 'use_electron_offset' to False as they are not used (for…
Browse files Browse the repository at this point in the history
… now)
  • Loading branch information
lschall committed Feb 22, 2024
1 parent 7446a41 commit b67c6a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tjmonopix2/analysis/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def _plot_parameter_page(self):

self._save_plots(fig, suffix='parameter_page')

def _plot_occupancy(self, hist, electron_axis=False, use_electron_offset=True, title='Occupancy', z_label='# of hits', z_min=None, z_max=None, show_sum=True, suffix=None, extend_upper_bound=True):
def _plot_occupancy(self, hist, electron_axis=False, use_electron_offset=False, title='Occupancy', z_label='# of hits', z_min=None, z_max=None, show_sum=True, suffix=None, extend_upper_bound=True):
if z_max == 'median':
z_max = 2 * np.ma.median(hist)
elif z_max == 'maximum':
Expand Down Expand Up @@ -1074,7 +1074,7 @@ def _plot_stacked_threshold(self, data, tdac_mask, plot_range=None, electron_axi

self._save_plots(fig, suffix=suffix)

def _plot_distribution(self, data, plot_range=None, x_axis_title=None, electron_axis=False, use_electron_offset=True, y_axis_title='# of hits', log_y=False, align='edge', title=None, print_failed_fits=False, fit_gauss=True, plot_legend=True, suffix=None):
def _plot_distribution(self, data, plot_range=None, x_axis_title=None, electron_axis=False, use_electron_offset=False, y_axis_title='# of hits', log_y=False, align='edge', title=None, print_failed_fits=False, fit_gauss=True, plot_legend=True, suffix=None):
if plot_range is None:
diff = np.amax(data) - np.amin(data)
median = np.ma.median(data)
Expand Down

0 comments on commit b67c6a6

Please sign in to comment.