Skip to content

Commit

Permalink
Using primary timestamps instead of start document time for images
Browse files Browse the repository at this point in the history
  • Loading branch information
PriyankaKetkarBNL authored Feb 22, 2025
1 parent c63d446 commit 2c4b3f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/PyHyperScattering/SST1RSoXSDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class SST1RSoXSDB:
"polarization": "en_polarization_setpoint",
"energy": "en_energy_setpoint",
"exposure": "RSoXS Shutter Opening Time (ms)", # md['detector']+'_cam_acquire_time'
"image_time": "time" ## Modification so that each image has a distinct time
}

md_secondary_lookup = {
Expand Down Expand Up @@ -1152,7 +1153,8 @@ def loadMd(self, run):
warnings.warn(
"'Wide Angle CCD Detector_saturated' not found in stream."
)
md["epoch"] = md["meas_time"].timestamp()
## 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 2c4b3f6

Please sign in to comment.