Skip to content

TriMagnetix/nmag-python-3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NMAG Python 3

This is an in-progress port of nmag that updates old dependencies and packages nmag as a standalone python 3 module.

The Python 3 port is intended to be standalone and must not require OCaml at runtime. See PARITY_COMPLETION.md for the Section 4 parity record and validation gate.

Installation

  • Create a virtual environment: python -m venv venv
  • Activate the virtual environment:
    • On Windows: venv\Scripts\activate
    • On macOS/Linux: source venv/bin/activate
  • To initialize the project and install dependencies: pip install -e .

Testing

  • To install the optional test dependencies run pip install -e ".[test]"
  • Once the project has been initialized simply run pytest to run your tests
  • To generate modern nmesh parity scenario outputs run python tools/nmesh_parity_compare.py --output-dir parity/new
  • To compare against legacy .nmesh artifacts run python tools/nmesh_parity_compare.py --legacy-dir parity/legacy
  • To view coverage open htmlcov/index.html in your browser
  • Specifying what tests to run

About

A port of nmag to python3. We are attempting to upgrade old dependencies and make nmag available as a standalone python 3 module.

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages