neutrons / PyVDrive

A data reduction and analysis software for (SNS) VULCAN based on PyQt.
2 stars 0 forks source link

PyVDrive

A data reduction and analysis software for (SNS) VULCAN based on PyQt.

Format of Files

Time segment file

The format of the time segment file for data slicing is compose of two parts.

The first part is the comment lines started with #.
Two parameters have been defined.
They are Reference Run Number and Run Start Time.

The second part is for time segment. Each row must contain start and stop time for a time segment. The third item is optional to be the target workspace's ID. Two adjacent item must be separated by tab.

Example:

Ignored information

Reference Run Number = 12345

Run Start Time = 9999999.99999999

Ignore information

t0 t1 1 t2 t3 2

New Requests

  1. New project need a default name;
  2. Provide hint to user;
  3. If user gives IPTS as project name, then add all files to in that IPTS to project;
  4. Give user hint to add another IPTS to the project
  5. Give user to define filter to load run, such as
    • key word: alignment;
    • file size;
    • refer to AutoRecord.txt;
  6. Reduced scope of vanadium run matching.
    • Example: /SNS/VULCAN/IPTS-13587/shared/Instrument/ only 64927-s.gda exists;
  7. Add a separate window for viewing the reduced data
  8. Add tag to output GSAS file: 'normalized by current', 'normalized by vanadium', ...

Use cases

VDrive is an application that is driven by use cases.

PyVDrive Features

Configuration

Configuration file is search automatically under ~/.vdrve/config under Linux/MacOS or C:.vdrive\config;

A customized configuration file can be loaded as an option;

Calibration

Pair: -rw-rwxr-- 1 13489 49133 403704 Jun 16 16:43 70487-s.gda -rw-rwxr-- 1 13489 49133 3240 Jun 16 16:43 Vulcan-70487-s.prm

Time segment file

A test/xml file that contains the segments of time for slicing;

The time segments are either in relative time to the run start time or absolute time from 1990.01.01:00:00:00

Deprecated use cases

Reduction

Process vanadium run

  1. Compress events;
  2. SetSampleMaterial;
  3. MultipleScatteringCylinderAbsorption;
  4. Align and focus;
  5. StripVanadiumPeaks;
  6. FFTSmooth;
  7. SetUncertainties;

Features

Here is a detailed introduction on features that have been implemented.

Configuration

Configuration is a python module to load from current working directory. It is loaded and managed by a VDriveAPI object instantiated in either VDrivePlot or test scripts.

The order of loading configuration is

Scripts

Calibration scripts

New Features

(X) Set up a configuration file for VDrive!

(X) Create a class named 'VDriveConfig' (Empty)

  1. Load the selected VDrive logs to match in config