Exposure time calculation tools for JANUS instrument
Project description
Install
This repository is based purely on notebooks and creates the installation package following below described development procedure.
pip install janusexp
How to use this repo without code development
- example notebooks can be stored in
notebooks
, they then will be added to the automatically generated documentation.- I will soon add an example
example
notebook, so that you can see the best layout for it. :)
- I will soon add an example
How to develop
One time installation procedure for the required tools
- change to environment you are developing in (conda/venv/whatever)
pip install nbdev
- cd janus-nbexposure
nbdev_install_hooks
# to enable automatic cleaning of notebooks at commit for this reponbdev_install_quarto
to install the quarto documentation tools (or install it yourself, see https://quarto.org/docs/get-started/index.html )- This requires
sudo
, you can either trust it, I checked it, or install the quarto tools yourself from above link, e.g. via a tarball that doesn’t require sudo).
- This requires
pip install -e .
# to install the source codes into your current Python env in ‘editable mode’
Regular develop procedure
- Make changes in notebooks in the
notebooks folder only
, following the rules of nbdev- Things we want to offer as an API for the tool users should go to
notebooks/api
folder.
- Things we want to offer as an API for the tool users should go to
nbdev_prepare
# to export notebooks into python library, and clean notebooks- If any new files were added:
git add *
git commit -m "commit message"
git push
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
janusexp-0.1.0.tar.gz
(1.8 MB
view details)
Built Distribution
File details
Details for the file janusexp-0.1.0.tar.gz
.
File metadata
- Download URL: janusexp-0.1.0.tar.gz
- Upload date:
- Size: 1.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7143feb64aa929bace6f34336915bda5c0b20432589dedc71d9797121d0f3f1a |
|
MD5 | 7c638fd20089a6eb94e36922f98a148f |
|
BLAKE2b-256 | e010b3c752589b5da54065d96e3646adfb37a3484f0eb63f3d5713e80df8de0f |
File details
Details for the file janusexp-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: janusexp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e86bf2c5470c9c976f407ef5c6b96a4721057b01b250199a5a97aef80138ff2 |
|
MD5 | 4bab7e1b6bc6d906d67bd84b960585f8 |
|
BLAKE2b-256 | 48833c82915a2347146123d7965405e741255348ce612a926e00accc905b3728 |