From ac53c04cc136c81d604577ee9fead4442754c0e0 Mon Sep 17 00:00:00 2001 From: PriyankaKetkarBNL <155195376+PriyankaKetkarBNL@users.noreply.github.com> Date: Sat, 22 Feb 2025 14:00:07 -0500 Subject: [PATCH] Removed .timestamps() attribute and also removed duplicate instance where epoch defined. --- src/PyHyperScattering/SST1RSoXSDB.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/PyHyperScattering/SST1RSoXSDB.py b/src/PyHyperScattering/SST1RSoXSDB.py index c20fb94..c2cafb0 100644 --- a/src/PyHyperScattering/SST1RSoXSDB.py +++ b/src/PyHyperScattering/SST1RSoXSDB.py @@ -1113,7 +1113,7 @@ def loadMd(self, run): ) md[phs] = None ## Modification so that each image has a distinct time - md["epoch"] = md["image_time"].timestamp() + md["epoch"] = md["image_time"] #md["epoch"] = md["meas_time"].timestamp() # looking at exposure tests in the stream and issuing warnings @@ -1155,9 +1155,6 @@ def loadMd(self, run): warnings.warn( "'Wide Angle CCD Detector_saturated' not found in stream." ) - ## Modification so that each image has a distinct time - md["epoch"] = md["image_time"].timestamp() - #md["epoch"] = md["meas_time"].timestamp() try: md["wavelength"] = 1.239842e-6 / md["energy"]