Skip to content

Commit

Permalink
Removed .timestamps() attribute and also removed duplicate instance w…
Browse files Browse the repository at this point in the history
…here epoch defined.
  • Loading branch information
PriyankaKetkarBNL authored Feb 22, 2025
1 parent 4c47923 commit ac53c04
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/PyHyperScattering/SST1RSoXSDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"]
Expand Down

0 comments on commit ac53c04

Please sign in to comment.