Skip to content

Commit

Permalink
MAINT: correctly adjust extracted beam current also for plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
leloup314 committed Nov 10, 2022
1 parent 822da1c commit 436570c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion irrad_control/processes/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,8 @@ def _interpret_beam_data(self, server, data, meta):
extracted_current = self.data_arrays[server]['beam']['beam_current'][0] - blm_current
logging.warning("Correcting extracted beam current from {:.2E} A to {:.2E} A".format(self.data_arrays[server]['beam']['beam_current'][0],
extracted_current))
self.data_arrays[server]['beam']['beam_current'] = extracted_current

self.data_arrays[server]['beam']['beam_current'] = beam_data['data']['current']['beam_current'] = extracted_current

except ZeroDivisionError:
pass
Expand Down

0 comments on commit 436570c

Please sign in to comment.