added image calculation tests
This commit is contained in:
@@ -10,7 +10,7 @@ __author__ = "Alexander Steppke"
|
||||
@unittest.mock.patch("jungfrau_utils.file_adapter.locate_gain_file", lambda path, **kwargs: "tests/data/gains.h5")
|
||||
@unittest.mock.patch("jungfrau_utils.file_adapter.locate_pedestal_file", lambda path, **kwargs: "tests/data/JF16T03V01.res.h5")
|
||||
def test_image_calculations():
|
||||
res = cristallina.analysis.perform_image_calculations(['/sf/cristallina/applications/cristallina/tests/data/p20841/raw/run0185/data/acq0001.*.h5'])
|
||||
res = cristallina.analysis.perform_image_calculations(['tests/data/p20841/raw/run0185/data/acq0001.*.h5'])
|
||||
# these values are only correct when using the specific gain and pedestal files included in the test data
|
||||
# they do not correspond to the gain and pedestal files used in the actual analysis (otherwise we need to include several here as test data)
|
||||
intensity = [1712858.6,
|
||||
|
||||
Reference in New Issue
Block a user