A lightweight and versitile McStas Python Wrapper for console and jupyter notebook


Keywords
mcstas, jupyter, wrapper
License
MIT
Install
pip install mcpw==0.5.1

Documentation

McStas Python Wrapper (mcpw)

Content

Why jet an other python wrapper

Installation

Key Functionalites

Jupyter Notebook

Command Usage

Function overview

Change log

Quick start

Requirements

  • mcstas
  • gcc
  • numpy
  • matplotlib

Instalatlion

  • Install with pip install mcpw

First setup

  • Enter the directory with your mcstas instrument
  • run mcpw_setup -I 'your_instrument.instr' -m 'path_to_mcstas_executable'

Final step

  • run mcpw_manager -p 'your_instrument.py' full

For more detailed instructions see the Install section and the rest of the Wiki at github.