Skip to content

Commit

Permalink
Added use of RemoveLogs to make run even smaller
Browse files Browse the repository at this point in the history
  • Loading branch information
dlcaballero16 committed Nov 25, 2024
1 parent e94db78 commit 4896a12
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/snapred/resources/ultralite/create_ultralite_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def superID(nativeID, xdim, ydim):
clerk.neutron(x).native().add()
groceries = GroceryService().fetchGroceryList(clerk.buildList())


# The FileName should point to a "diffract_consts_<runNumber>_v#.h5 file, this gets saved at the end of a diffcal run
LoadDiffCal(
InputWorkspace=groceries[0],
Expand Down Expand Up @@ -115,6 +116,23 @@ def superID(nativeID, xdim, ydim):
)
uws = mtd[ultralite]
Rebin(InputWorkspace=ultralite, OutputWorkspace=ultralite, Params=(uws.getTofMax() - uws.getTofMin()))
logs = (
"BL3:Det:TH:BL:Frequency",
"BL3:Mot:OpticsPos:Pos",
"BL3:Chop:Gbl:WavelengthReq",
"BL3:Chop:Skf1:WavelengthUserReq",
"BL3:Chop:Gbl:WavelengthReq",
"BL3:Chop:Skf1:WavelengthUserReq",
"det_arc1",
"det_arc2",
"BL3:Det:TH:BL:Frequency",
"BL3:Mot:OpticsPos:Pos",
"det_lin1",
"det_lin2",
"proton_charge",
"gd_prtn_chrg",
)
RemoveLogs(Workspace=ultralite, KeepLogs=logs)
SaveNexusProcessed(
InputWorkspace=ultralite,
Filename=f"~/Documents/ultralite/{ultralite}.nxs.h5",
Expand Down

0 comments on commit 4896a12

Please sign in to comment.