Analyse Vesuvio instrument data
Project description
VESUIVO REPOSITORY
This repository contains:
mvesuviopackage containing the Optimized NCP analysis procedures, published nightly.- Vesuvio calibration script
mvesuvio package
Install mamba
To use the mvesuvio package you will need to use the conda package manager (or preferably mamba, a much faster implementation of conda).
This is also the recommended best practice way of using the mantid packages.
To download and install mamba:
Create and activate an environment for mvesuvio
Firstly create a conda environment where mvesuvio is going to be installed:
mamba create -n <environment_name>
Next activate the environment you created:
mamba activate <environment_name>
Finally, install mvesuvio through the mantid channel:
mamba install -c mantid/label/nightly mvesuvio
Using mvesuvio via the command line
You can use mvesuvio via the command line. There are two commands available: config and run.
config
The config command has three optional arguments:
--set-cache- Sets the locationmvesuviowill set up the experiment directory.--set-experiment- Sets the current experiment. This creates a new directory in the experiment directory (if not existing) which contains an input file.mvesuviocaches and outputs workspaces here.--set-ipfolder- Sets the directory in whichmvesuviowill look for instrument parameter files.
If any of these arguments are not provided a default location/experiment will be selected. These will be output on the running of mvesuvo config
Usage examples:
mvesuvio config --set-cache C:\Vesuvio --set-experiment example1 --set-ipfolder C:\IPFolder- Set cache and IP folder, create a new experiment directory calledexample1.mvesuvio config --set-experiment example2- Creates a new experiment directory inC:\Vesuviocalledexample2.
run
The run command has one optional argument:
--yes- If provided, this argument automatically inputsYwhen prompted for user input.
Usage example:
mvesuvio run --yes- Run the vesuvio analysis, automatically providingYwhen prompted.mvesuvio run- Run the vesuvio analysis, will wait for user input when prompted.
Using mvesuvio via workbench
You can also use mvesuvio via mantidworkbench if you desire a higher degree of interaction with the output workspaces.
To do this, install workbench into your existing vesuvio conda environment:
mamba install mantidworkbench
Start workbench using the command line:
workbench
In the workbench script editor you must first import mvesuvio:
import mvesuvio as mv
After this you can set the config if desired, as above in the command line example. All arguments are optional.
mv.set_config(cache_directory='C:\Vesuvio', experiment_id='example3', ip_folder='C:\IPFolder')
Following the setting of the config, you can use workbench to open and edit the analysis input file created in the relevant experiment directory. Once the inputs have been ammended and the file saved, run the analysis:
mv.run(yes_to_all=True)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mvesuvio-0.0.0.dev161.tar.gz.
File metadata
- Download URL: mvesuvio-0.0.0.dev161.tar.gz
- Upload date:
- Size: 66.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5aa5ac18e1df79737c0562944c61792f9b479a2475b06eb5e11b4d7b445219e8
|
|
| MD5 |
07f40196d86b5e2eadd903130b16ef41
|
|
| BLAKE2b-256 |
f563671ac1cbdd0bca0a188e774948c039a40d520f00f50874db425465cc81f8
|
File details
Details for the file mvesuvio-0.0.0.dev161-py3-none-any.whl.
File metadata
- Download URL: mvesuvio-0.0.0.dev161-py3-none-any.whl
- Upload date:
- Size: 80.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3bb9de597739fae6a2902f12017b0fd08d13c41721bb04d3470929eb949abca1
|
|
| MD5 |
e546deb4e9ae11e8b6a76c8dfda4efb2
|
|
| BLAKE2b-256 |
221cc45d92c34e814c282ec89dd7c57b631bbf51f88e9cfa5aa3d9f905b54c38
|