Skip to content

Commit

Permalink
Merge pull request #79 from usnistgov/27-datetimes-not-supported-in-l…
Browse files Browse the repository at this point in the history
…oaders-as-indices

Fixes #27 by creating non-varying params in a more reasonable way
  • Loading branch information
BijalBPatel authored Aug 3, 2023
2 parents 8e56991 + 0a78267 commit 4b36feb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PyHyperScattering/SST1RSoXSDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ def subtract_dark(img, pedestal=100, darks=None):
dims_to_join.append(md[dim])
dim_names_to_join.append(dim)
except TypeError:
dims_to_join.append(np.ones(run.start["num_points"]) * md[dim])
dims_to_join.append([md[dim]] * run.start["num_points"])
dim_names_to_join.append(dim)

for key, val in coords.items():
Expand Down

0 comments on commit 4b36feb

Please sign in to comment.