Closed GuiMacielPereira closed 7 months ago
We really need to get Matthew using conda, as it’s our primary supported installation method!
The risk with installing the package this way is that there’s no guarantee that pip won’t break the mantid install, or that the mvesuvio package will work correctly.
When I run analysis_inputs.py there is a pop-up window in the end asking whether to clean up all the workspaces. Entering n
gives the following error message: ```
KeyboardInterrupt: Run of procedure canceled.
File "C:/Users/eoc57742/testmvesuvio/copy_analysis_inputs.py", line 173, in
Is this behaviour intended?
The folders are created as expected, by the way, both with the original script and also after renaming.
Ah, yes, this is intended, although I should probably change this in the future. The first time you run the script, the user should go with 'y' and delete the workspaces that were just loaded into mantid. This will reload the same workspaces but from a local path. In general I put this warning so that the user does not overwrite workspaces accidentally but this is an edge case where this warning should probably not be displayed.
I've repeated step 6. to 14. with a folder on one drive and it also worked as expected.
Description of work: After meeting with Matthew, it was clear that a different way of interacting with the code was needed, as described in #104. The main changes this PR introduces are the following:
analysis_inputs.py
scriptcache
,experiment
andipfolder
to justinputs
andipfolder
. This makes it harder to set up experiments through the terminal but makes it simpler to set up experiments when running ananalysis_inputs.py
script.To test:
conda create -n mvesuvio-test
conda activate mvesuvio-test
mamba install mantidworkbench==6.8
cd
into the repository with this PR and install package by runningpip install -e .
mvesuvio config
to set up default configuration~/.mvesuvio
and copyanalysis_inputs.py
fileanalysis_inputs.py
file inside it.workbench
)analysis_inputs.py
file you just pasted.analysis_inputs
is created alongside the fileanalysis_inputs.py
.analysis_inputs.py
file in the same directory but this time rename it to something differentFixes #104.