mantid icon indicating copy to clipboard operation
mantid copied to clipboard

PEARL output file requests - Nice to have

Open DanielMurphy22 opened this issue 3 years ago • 3 comments

Original reporter: Nick Funnell

    1. With focus_mode=‘All’, all file names are appended with a “-0”. The -0 signifies merged banks 1-9, so perhaps the -0 could be dropped when it’s a single bank, e.g. XXXXXX_tof_xye-10-0.dat
    1. Also could the _xye bit be removed and .dat’ replaced with .xye. e.g. e.g. XXXXXX_tof_xye-10-0.dat -> e.g. XXXXXX_tof-10-0.xye. This would mirror the filename behaviour of focus_mode=“Trans”.
    1. At the moment, all our focussed files go into a single folder. It would be nice if we could separate these into sub-folders named by file type. I’m envisaging folders for ‘ToF’, ‘d’, and ‘GSAS’ and then the .nxs files would continue to just go into the current directory as normal. I think it’s done on some of the other instruments.

DanielMurphy22 avatar Mar 12 '21 17:03 DanielMurphy22

Also look at reproducing this crash. Daniel had a go on Ubuntu and didn't see it: I think Chris originally mentioned cycle 19_1 as being problematic due to the HRPD cards/absorption correction. Though I think that problem has now gone away for the standard frame, I’m unable to create_vanadium for long_mode=True. Tt modes 77 and 88 both crash, and tt35 runs to completion but no data are shown. I don’t seem to have this problem in other cycles.

DannyHindson avatar Mar 30 '21 11:03 DannyHindson

Script to run a PEARL reduction. The C:\PEARL\ folder will need changing to wherever your config files are stored:

# import mantid algorithms, numpy and matplotlib
from mantid.simpleapi import *
import matplotlib.pyplot as plt
import numpy as np

from isis_powder.pearl import Pearl

pearl = Pearl(user_name="Danny",
                    output_directory=r"C:\PEARL",   #directory above cycle number 
                    config_file=r"C:\PEARL\User_experiment.yaml",
                    calibration_directory=r"C:\PEARL\calib_critical_files",
                    calibration_mapping_file=r"C:\PEARL\calib_critical_files\pearl_run_mapping.yaml")

pearl.create_vanadium(run_in_cycle=116374, do_absorb_corrections=True)

pearl.focus(run_number="116374", file_ext=".s02", perform_attenuation=False, 
                  subtract_empty_instrument=False, focus_mode="all")

In addition to the script above you'll also need a zip file with some config (.yaml) files in it and a couple of data files (eg a .nxs file). This is too big to attach to this issue so I'll put it in \\olympic\Babylon5\Public\DannyHindson\PEARLExampleForSarah.zip

DannyHindson avatar Aug 09 '22 14:08 DannyHindson

Running this script I get the following output files produced from the pearl.focus line. So item ii) has already been done: image

Fixed in https://github.com/mantidproject/mantid/commit/7e5bfbe7cce16a982903e4880fd6bf6d3d83e9a9

DannyHindson avatar Aug 09 '22 14:08 DannyHindson