Skip to content

Commit

Permalink
Merge pull request #162 from usnistgov/161-sst1rsoxsdb-new-instrument…
Browse files Browse the repository at this point in the history
…-variables-break-dimension-auto-hinting

SST1RSoXSDB: Fix #161 by removing Energy and EPU60 from hinted dimension names
  • Loading branch information
delongchamp authored Dec 3, 2024
2 parents 03556a0 + 658446d commit 2204024
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/PyHyperScattering/SST1RSoXSDB.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,10 @@ def loadRun(
axis_list = [x for x in axis_list if "saturated" not in x]
axis_list = [x for x in axis_list if "under_exposed" not in x]

# remove hinted Energy and EPU60 items #161
axis_list = [x for x in axis_list if "EPU60" not in x]
axis_list = [x for x in axis_list if "Energy" not in x]

# knock out any known names of scalar counters
axis_list = [x for x in axis_list if "Beamstop" not in x]
axis_list = [x for x in axis_list if "Current" not in x]
Expand Down

0 comments on commit 2204024

Please sign in to comment.