Skip to content

Instantly share code, notes, and snippets.

@gazzar
Created December 19, 2022 04:16
Show Gist options
  • Save gazzar/d625e39285829f15ab17337b1411daf2 to your computer and use it in GitHub Desktop.
Save gazzar/d625e39285829f15ab17337b1411daf2 to your computer and use it in GitHub Desktop.
Jupyter notebook for plotting 3D Compton+Rayleigh scatter intensity

A Jupyter notebook for plotting the 3D Compton+Rayleigh scatter intensity for a specified energy and compound

Installation instructions

  • Install miniconda or anaconda

  • Copy the accompanying files into a folder (call it path)

  • In a terminal/shell

    > cd path
    > conda env create -n compton environment.yml
    

Running

  > conda activate compton
  (compton) PS C:\path> jupyter lab
  • In Jupyter, open misc_tomopy_mayavi_compton-energy_simplified.ipynb

Note: The mayavi plots will open in their own separate window

name: compton
channels:
- conda-forge
- defaults
dependencies:
- xraylib
- mayavi
- jupyterlab
- matplotlib
- scipy
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment