Skip to content

Commit

Permalink
files/inp: refactored code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
BitterB0NG0 committed Nov 24, 2024
1 parent 8051e05 commit 21d92e0
Show file tree
Hide file tree
Showing 120 changed files with 27,131 additions and 4,007 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PyMCNP source code is accessable for contributions, suggestions, and bug reports
pip install -e .


If you plan to contribute, you should also enable `pre-commit`
If you plan to contribute, you should also enable `pre-commit`:

pip install pre-commit
# cd into repo
Expand All @@ -42,6 +42,12 @@ After instaling `pytest`, test the `pymcnp` package by calling the following com
cd PyMCNP
python -m pytest

## Metaprogramming

To regenerate the autogenerated files in `files/inp/subclasses_cell_option`, `files/inp/subclasses_data`, and `files/inp/subclasses_surfaces`, run the following Python scripts:

parallel python3 {} ::: scripts/build_cell_options.py scripts/build_surfaces.py scripts/build_data.py

## Copyright and License

For copyright and license infromation, see the `COPYRIGHT` and `LICENSE` files in the top level directory.
Loading

0 comments on commit 21d92e0

Please sign in to comment.