Coder Social home page Coder Social logo

jayjaybillings / pyrs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neutrons/pyrs

0.0 1.0 0.0 158.42 MB

Reduction and visualization software for Stress Residual (HB2B)

License: GNU General Public License v3.0

Shell 0.16% Python 98.81% Jupyter Notebook 1.03%

pyrs's Introduction

https://travis-ci.org/neutrons/PyRS.svg?branch=master

Developer Quick Start

If you've never used PyRS before, you can get started quickly by doing the following.

  1. Install basic dependencies: Conda, Python, and PyQt
  2. Create a new Conda environment with additional dependencies:
$ conda create -n pyrs -c mantid -c mantid/label/nightly mantid-workbench -c conda-forge
  1. Activate the conda environment
$ conda activate pyrs
  1. From the PyRS directory, run the setup script in developer mode
$ python setup.py develop
  1. From the PyRS directory, start the user interface
$ python scripts/pyrsplot

Data reduction workflow

The workflow is as follows. The word "script" is used to denote a distict step in processing the data rather than actual script.

  1. Start with a nexus file. As in, /HFIR/HB2B/IPTS-22731/nexus/HB2B_439.nxs.h5
  2. This is read in by something that will split into sub-scans and create a project file [script 1 - currently convert_nexus_to_hidra.py]
  3. This is read in by something that will create powder patterns and add them to the project file [script 2 - currently reduce_HB2B.py]
  4. This is read in by the gui to do the peak fitting and add the results to the project file [script 3 - currently somewhere in the gui]
  5. This is read in by the gui and used to create the summary .csv file [script 4 - currently being written]

Some other things to note * scripts 1-2 will be refactored/combined to create a new reduce_HB2B.py that can be run by autoreduction * scripts 2-4 (more like functionality 2-4) will all live in the gui in some way * going back any number of steps will delete the following steps from the project file. This is to prevent users from having a project file with powder patterns that are not associated with the peak fitting from the project file.

Running and developing PyRS

To start main window from analysis machine

$ PYTHONPATH=$PWD:$PYTHONPATH QT_API=pyqt python scripts/pyrsplot

To develop

$ pyrsdev.sh

To run the tests

$ pyrstest.sh

pyrs's People

Contributors

fahima-islam avatar fanchercm avatar jeanbilheux avatar peterfpeterson avatar quantumsteve avatar rosswhitfield avatar wdzhou avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.