Skip to content

Commit

Permalink
Correction to pass test
Browse files Browse the repository at this point in the history
  • Loading branch information
GuiMacielPereira committed Nov 11, 2024
1 parent b76b59c commit a6ca82f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/mvesuvio/analysis_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ def subtractAllMassesExceptFirst(ic, ws, ncpForEachMass):

wsSubMass = CloneWorkspace(InputWorkspace=ws, OutputWorkspace=ws.name() + "_Mass0")
passDataIntoWS(dataX, dataY, dataE, wsSubMass)
# MaskDetectors(Workspace=wsSubMass, WorkspaceIndexList=ic.maskedDetectorIdx)
MaskDetectors(Workspace=wsSubMass, SpectraList=ic.maskedSpecAllNo)
wsMask, maskList = ExtractMask(ws)
MaskDetectors(Workspace=wsSubMass, MaskedWorkspace=wsMask)
SumSpectra(
InputWorkspace=wsSubMass.name(), OutputWorkspace=wsSubMass.name() + "_Sum"
)
Expand Down
7 changes: 4 additions & 3 deletions src/mvesuvio/main/run_routine.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ def setup(self):
self.input_ws_path = self.experiment_path / "input_ws"
self.input_ws_path.mkdir(parents=True, exist_ok=True)

# TODO: Output paths should probably not be set like this
self._set_output_paths(self.bckwdIC)
self._set_output_paths(self.fwdIC)

# TODO: remove this by fixing circular import
self.fwdIC.name = name_for_starting_ws(self.fwdIC)
self.bckwdIC.name = name_for_starting_ws(self.bckwdIC)
Expand Down Expand Up @@ -227,9 +231,6 @@ def _create_analysis_algorithm(self, load_ai, ai):

ipFilesPath = Path(handle_config.read_config_var("caching.ipfolder"))

# TODO: Output paths should probably not be set here
self._set_output_paths(ai)

kwargs = {
"InputWorkspace": cropedWs.name(),
"InputProfiles": profiles_table.name(),
Expand Down

0 comments on commit a6ca82f

Please sign in to comment.