mammosunits
is a units package built on top of the powerful Astropy units.
It provides additional functionality for magnetic units.
Try mammosunits
without installing it locally by directly accessing it directly in the cloud
via Binder.
Simply click the badge to get started:
Sessions are temporary and may time out after a period of inactivity, and any files created or modified during your session will not be saved. To avoid losing your work, please remember to download any files you create or edit before your session ends.
To get started clone the mammosunits
repository via ssh
:
git clone git@github.com:MaMMoS-project/units.git
or https
if you don't have an ssh
key:
git clone https://github.com/MaMMoS-project/units.git
The enter into the repository:
cd units
-
install pixi
-
run
pixi shell
to create and activate an environment in whichunits
is installed (this will install python as well) -
Alternatively, to fire up the
example.ipynb
notebook, usepixi run example
.
If required install conda
. Suggestion: use miniforge.
conda create -n mammosunits python=3.12 pip
conda activate mammosunits
Install a local editable version of the code
pip install -e .