...
- semistable_model/: The main Python package containing the mathematical logic.
- notebooks/: Interactive Jupyter notebooks demonstrating the usage of the project.
- documentation/: Contains supplementary documentation.
This project depends on the MCLF library. You must install it before using this package.
sage -pip install git+https://github.com/MCLF/mclfChoose the option that best fits your needs.
Best if: You just want to use the semistable_model in your owm scripts and do not need to run the provided notebooks or edit the source code.
You can install the package directly from GitHub without cloning the full repository:
sage -pip intall git+https://github.com/kst3rn/StabilityFunction(Note: You do not need to configure nbstripout for this method.)
Best if: You want to run the interactive notebooks or contribute to the code.
git clone https://github.com/kst3rn/StabilityFunction.git
cd StabilityFunctionThis repository uses a .gitattributes file to automatically strip outputs from Jupyter Notebooks to keep the git history clean. You must configure this locally, or Git may report errors.
First, install the nbstripout tool:
pipx install nbstripoutTo activate the filter, run the following command once inside the repository root:
nbstripout --install(This sets up the necessary filter definitions in your local .git/config)
Run the following command from the repository root to install the project in "editable" mode. This allows you to edit the source and see changes immediately without reinstalling.
sage -pip install -e .To run the notebooks, you must start the Jupyter server from the repository root directory to ensure file paths resolve correctly.
- Navigate to the repository root:
cd StabilityFunction- Start Jupyter via Sage:
sage -n jupyter- Open a Notebook: In the browser file tree, click on the
notebooksfolder and open the desired.ipynbfile.