From 4896a129df8418b98f8f48e08b0a5f5e02c65d6d Mon Sep 17 00:00:00 2001 From: Daniel Caballero Date: Mon, 25 Nov 2024 14:23:51 -0500 Subject: [PATCH] Added use of RemoveLogs to make run even smaller --- .../ultralite/create_ultralite_data.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/snapred/resources/ultralite/create_ultralite_data.py b/src/snapred/resources/ultralite/create_ultralite_data.py index 2126598aa..21f427938 100644 --- a/src/snapred/resources/ultralite/create_ultralite_data.py +++ b/src/snapred/resources/ultralite/create_ultralite_data.py @@ -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__v#.h5 file, this gets saved at the end of a diffcal run LoadDiffCal( InputWorkspace=groceries[0], @@ -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",