Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

Mantid VESUVIO

Coverage Status

This repository contains:

  • mvesuvio package containing the Optimized NCP analysis procedures, published nightly.
  • Vesuvio calibration script

Install mvesuvio package

For stand-alone (non-conda) Mantid installation

Currently this method is tested up until Mantid 6.8.

The easiest way to install the package is to install it through pip. To pip install mvesuvio, follow these instructions and replace <insert_package_name> with mvesuvio.

Then open mantid workbench and in the editor run the following script:

import mvesuvio as mv
mv.set_config()

You will see that the output shows two directories: one for the inputs file and another for the instrument parameters (IP) file.

Both of these directories sit inside a default location of a .mvesuvio folder.

The . in front of the directory name means this folder might be hidden by your OS, so you might have to turn on the option of showing hidden folders.

You should place of your IP files inside this IP directory, you will notice that I have placed some example files in there already.

The other directory in the output of the config command tells you which inputs file is being used for running the analysis.

You should go to the directory of the inputs file and copy-and-paste this file into any directory inside your desktop where you want to run the analysis for a given sample.

And that's the end of the installation and setup!

Using mvesuvio

The easiest way to run the analysis scripts is to start with an inputs file and run it from inside mantid workbench.

Open mantid workbench and navigate to the directory of the inputs file you copy-and-pasted in the last section.

Warning: Do not run the analysis routine on the default location for the inputs file. This will clutter the default .mvesuvio folder and may cause problems later down the line.

Now you can alter the inputs of the file as you see fit. When you are finished, press run. This will run the routine and create a new directory for the output files inside the parent directory of the inputs file.

To run a new sample, simply copy-and-paste one of the inputs file into any directory you see fit, change the inputs and press run.

Alternative Installation and Usage (Conda and CLI)

We also provide an alternative conda installation for users wanting to use mantid workbench inside a conda environment.

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 mantidworkbench and 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>

Install mantid workbench (the version is pinned to 6.8 for now):

  • mamba install mantidworkbench=6.8

Finally, install mvesuvio through the mantid channel:

  • mamba install -c mantid/label/nightly mvesuvio

Start workbench using the command line:

  • workbench

Using mvesuvio via the command line (CLI)

If using a conda installation, the Command Line Interface (CLI) of the mvesuvio package becomes an attractive feature.

This allows for setting the inputs file or the IP folder through terminal commands and run the analysis in the terminal (without the need for opening mantid workbench).

You can use mvesuvio via the command line. There are two commands available: config and run.

config

The config command has two optional arguments:

  • --set-inputs - Sets the location of the inputs python file.
  • --set-ipfolder - Sets the directory in which mvesuvio will look for instrument parameter files.

If any of these arguments are not provided a default location will be selected. These will be output on the running of mvesuvo config

Usage examples:

  • mvesuvio config --set-ipfolder C:\IPFolder - Set instrument parameters folder.
  • mvesuvio config --set-inputs C:\Vesuvio\experiment\inputs.py - Set inputs file.

run

The run command has one optional argument:

  • --yes - If provided, this argument automatically inputs Y when prompted for user input.

Usage example:

  • mvesuvio run --yes - Run the vesuvio analysis, automatically providing Y when prompted.
  • mvesuvio run- Run the vesuvio analysis, will wait for user input when prompted.

Importing mvesuvio in workbench

If you wish to write a small script using the mvesuvio package and have it run inside workbench, mvesuvio can be directly imported into the 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(inputs_file='C:\Vesuvio\experiment\inputs.py', 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)

Metadata

Release files for mvesuvio 0.0.0.dev215

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mvesuvio 0.0.0.dev215
File Size Uploaded
mvesuvio-0.0.0.dev215.tar.gz 50.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mvesuvio 0.0.0.dev215
File Interpreter ABI Platform
mvesuvio-0.0.0.dev215-py3-none-any.whl Python 3 none any Details

Total release size: 106.3 kB

Release files / mvesuvio-0.0.0.dev215.tar.gz

Download URL mvesuvio-0.0.0.dev215.tar.gz
Size 50.4 kB
Tags Source
SHA-256 checksum
How to use checksums
80799cbde1b9796787369a801de96569e6caffa8167607fa56b56938666a3acd
BLAKE2b-256 checksum
How to use checksums
9dfad18ad5406fbe8ec06b78235c4d7094a21dd7f92435617603762d1d21d969
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release files / mvesuvio-0.0.0.dev215-py3-none-any.whl

Download URL mvesuvio-0.0.0.dev215-py3-none-any.whl
Size 56.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b687cda413e10248fd998ccf0f461107ba48994162e91a0d58a8c881ba2e63ca
BLAKE2b-256 checksum
How to use checksums
388889bfab6cabae8c6739af8bc4216f614750c74c7b5efcc22fb71dd2c21d39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.14

Release history Release notifications | RSS feed

1.0.13

2 release files

1.0.10

2 release files

1.0.9

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.2

2 release files

1.0

2 release files

0.1.26

2 release files

This release

0.0.0.dev215 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page