Skip to content
Snippets Groups Projects

Remove wrong import in FF AGIPD notebook

Merged Karim Ahmed requested to merge fix/wrong_import_ff_AGIPD into master
1 file
+ 0
15
Compare changes
  • Side-by-side
  • Inline
import numpy as np
import numpy as np
import sharedmem
import sharedmem
import XFELDetAna.xfelpyanatools as xana
import XFELDetAna.xfelpyanatools as xana
from cal_tools.agipdlib import get_bias_voltage
from cal_tools.agipdutils_ff import (
from cal_tools.agipdutils_ff import (
BadPixelsFF,
BadPixelsFF,
any_in,
any_in,
module = modules[0]
module = modules[0]
%% Cell type:code id: tags:
%% Cell type:code id: tags:
``` python
``` python
# This is never used in this notebook and should be removed
# if bias_voltage == 0:
# # Read the bias voltage from files, if recorded.
# # If not available, make use of the historical voltage the detector is running at
# control_filename = f'{raw_folder}/r{run:04d}/RAW-R{run:04d}-{karabo_da_control}-S00000.h5'
# bias_voltage = get_bias_voltage(control_filename, karabo_id_control)
# bias_voltage = bias_voltage if bias_voltage is not None else 300
# print(f"Bias voltage: {bias_voltage}V")
%% Cell type:code id: tags:
Loading