Skip to content

Commit

Permalink
From refs/heads/main ab6532e
Browse files Browse the repository at this point in the history
  • Loading branch information
thallor1 committed Feb 6, 2025
0 parents commit 7af55d3
Show file tree
Hide file tree
Showing 113 changed files with 26,979 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 4380c819bedbc942176f0465ba518747
tags: 645f666f9bcd5a90fca523b33c5a78b7
Empty file added .nojekyll
Empty file.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#GitHub Pages

Last update of sphinx html documentation from [ab6532e](https://github.com/thallor1/pyMACS/tree/ab6532ec8dfe46db341b6d223204bebf6ca45f31)
Binary file added _images/notebooks_MACS_User_notebook_6_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/notebooks_MACS_User_notebook_9_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/notebooks_cri3_plotting_example_3_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/notebooks_cri3_plotting_example_5_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/notebooks_cri3_plotting_example_7_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/notebooks_cri3_plotting_example_9_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/notebooks_emulate_MACS_data_7_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/notebooks_introduction_notebook_21_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/notebooks_introduction_notebook_24_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/notebooks_pbvopo4_simulation_11_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/notebooks_resolution_example_5_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added _images/notebooks_tio2_111_6_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions _sources/api.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
API Reference
-------------

.. toctree::
:glob:
:maxdepth: 1


51 changes: 51 additions & 0 deletions _sources/index.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
.. pyMACS documentation master file, created by
sphinx-quickstart on Fri May 10 17:02:58 2024.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to pyMACS's documentation!
==================================

**pyMACS** is a python interface to a mcStas simulation of the MACS instrument.
There are a few steps to get the package running, but most importantly this must be run on a *unix machine with a bash shell*. See :doc:`installation` for further information.

.. note::

This project is not under active development and is experimental.



Installation
-----------------

.. toctree::
installation


.. raw:: html

<hr>

Notebook Tutorials
-------------------

.. toctree::
notebooks/introduction_notebook
notebooks/emulate_MACS_data
notebooks/resolution_example
notebooks/tio2_111
notebooks/sqw4_simulation
notebooks/cri3_plotting_example
notebooks/MACS_User_notebook

Classes and Methods
-------------------

.. toctree::
virtualMACS
sample
kidney
monochromator
macsdata
scripting

42 changes: 42 additions & 0 deletions _sources/installation.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Installation
=======================

Configuration of McStas environment
------------------------------------

.. note::

pyMACS requires a bash terminal. It is untested on any platform except Ubuntu, so use at your own risk. Windows users should use the Windows subshell for Linux.

Windows users should refer to `the WSL documentation <https://learn.microsoft.com/en-us/windows/wsl/install>`_ to configure a local Ubuntu environment.

While Mac is not natively supported, it should work so long as the bash terminal is used. Internally, pyMACS uses a virtual disk on memory which in linux is located at

.. code-block:: console
/dev/shm/
This will need to be redefined to point to an alternate directory if using Mac - this step may be automated in a future update if needed, but for now please contact me if you need help with this. The software should run perfectly fine without this, but it may be bottlenecked by your hard disk.

Please refer to the `McStas documentation <https://github.com/McStasMcXtrace/McCode/blob/mccode-legacy/INSTALL-McStas-3.x/Linux/README.md>`_ to get a working McStas 3.X installation.

Install with *pip*
----------------------

It is highly recommended to use a seperate virtual environment to run pyMACS and install its dependencies. This can be done simply asssuming one has a conda installtion, here for example I create an environment called "mcstas"

.. code-block:: console
(base) $ conda create --name mcstas
(base) $ conda activate mcstas
To use pyMACS, simply install using pip:

.. code-block:: console
(mcstas) $ install git+https://github.com/thallor1/pyMACS
You will need to have a valid `git installation <https://git-scm.com/book/en/v2/Getting-Started-Installing-Git>`_ first.

There is one last step that is required which is the configuration of mcstasscript, which is a key dependency of pyMACS. Please refer to the `mcstasscript documentation <https://mads-bertelsen.github.io/getting_started/installation.html#configuration>`_ .
11 changes: 11 additions & 0 deletions _sources/kidney.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
kidney
-------------------


This is a python object that is the main wrapper for all of the methods of pyMACS. It requires only a few details to initialize - a .cif file to specify the sample being simulated, and a few instrumental settings.

.. autoclass:: pyMACS.kidney.Kidney
:members:
:show-inheritance:

Create a list of object parameters, like n_mono.
11 changes: 11 additions & 0 deletions _sources/macsdata.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
macsdata
-------------------


This is a python object that is the main wrapper for all of the methods of pyMACS. It requires only a few details to initialize - a .cif file to specify the sample being simulated, and a few instrumental settings.

.. autoclass:: pyMACS.macsdata.Data
:members:
:show-inheritance:

Create a list of object parameters, like n_mono.
7 changes: 7 additions & 0 deletions _sources/modules.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
pyMACS
======

.. toctree::
:maxdepth: 4

pyMACS
11 changes: 11 additions & 0 deletions _sources/monochromator.rst.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
monochromator
-------------------


This is a python object that is the main wrapper for all of the methods of pyMACS. It requires only a few details to initialize - a .cif file to specify the sample being simulated, and a few instrumental settings.

.. autoclass:: pyMACS.monochromator.Monochromator
:members:
:show-inheritance:

Create a list of object parameters, like n_mono.
396 changes: 396 additions & 0 deletions _sources/notebooks/MACS_User_notebook.ipynb.txt

Large diffs are not rendered by default.

312 changes: 312 additions & 0 deletions _sources/notebooks/cri3_plotting_example.ipynb.txt

Large diffs are not rendered by default.

Loading

0 comments on commit 7af55d3

Please sign in to comment.