nmmn package
Tools for astronomy, data analysis, time series, numerical simulations, gamma-ray astronomy and more! These are modules I wrote which I find useful—for whatever reason—in my research.
List of modules available (more info here):
astro: astronomydsp: signal processinglsd: misc. operations on arrays, lists, dictionaries and setsstats: statistical methodssed: spectral energy distributionsplots: custom plotsfermi: Fermi LAT analysis methodsbayes: Bayesian tools for dealing with posterior distributionsgrmhd: tools for dealing with GRMHD numerical simulations
Very basic documentation for the package. Generated with Sphinx.
Installation
You have a couple of options to install the module:
1. Install using pip:
pip install nmmn
2. Install the module on the system’s python library path:
git clone https://github.com/rsnemmen/nmmn.git
cd nmmn
python setup.py install
3. Install the package with a symlink, so that changes to the source files will be immediately available:
git clone https://github.com/rsnemmen/nmmn.git
cd nmmn
python setup.py develop
This last method is preferred if you want the latest, bleeding-edge updates in the repo. You may need to run the last command with sudo.
Updating
If you installed with pip (method 1), to upgrade the package to the latest stable version use
pip install --upgrade nmmn
If you installed with the setup.py script and the develop option (method 3), use
cd /path/to/nmmn
git pull
Usage
First import the specific module that you want to use:
import nmmn.lsd
Then call the method you need. For example, to remove all nan and inf elements from a numpy array:
import numpy as np
# generates some array with nan and inf
x=np.array([1,2,np.nan,np.inf])
# removes strange elements
xok=nmmn.lsd.delweird(x)
For more examples, please refer to the examples doc.
TODO
- need more examples of how to use the modules
- add IFU data cubes method (refer to ifscube)
License
See LICENSE file.
If you have suggestions of improvements, by all means please contribute with a pull request! :)
The MIT License (MIT). Copyright (c) 2020 Rodrigo Nemmen
Visit the author's web page and/or follow him on twitter (@nemmen).
Metadata
Release files for nmmn 1.3.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nmmn-1.3.6.tar.gz | 77.2 kB | Without provenance | Details for nmmn-1.3.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nmmn-1.3.6-py3-none-any.whl | Python 3 | none | any | Details for nmmn-1.3.6-py3-none-any.whl |
Total release size: 157.2 kB
Release files / nmmn-1.3.6.tar.gz
| Download URL | nmmn-1.3.6.tar.gz |
|---|---|
| Size | 77.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8d08e5aef0b608298e506aa6182bf1b7b2f944450a23835b59960b3033a93fa
|
|
BLAKE2b-256 checksum How to use checksums |
259add1b528bcfb17a12ec125a9444e6eb92bf46866282df414555e8b27b1848
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / nmmn-1.3.6-py3-none-any.whl
| Download URL | nmmn-1.3.6-py3-none-any.whl |
|---|---|
| Size | 80.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c3e1833a5b38360a54f9334bbbc2e8db2f46643613d5a912755d1e7a1dba4525
|
|
BLAKE2b-256 checksum How to use checksums |
7d3659c50966ed9d500251abee9ab7c1653c9cd711d903c3c18ab576193a0ddd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Security for nmmn 1.3.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.