1 file was added to this release more than 14 days after its initial publication. Inspect the release files before installing.
Readme file
Author: Ben de Vries and Robin Lombaert
Contact: bldevries.science@gmail.com
Web: www.stjerke.com
Github: https://github.com/bldevries
Implementations and versions
- Implementations in the current version (Beta 0.1):
Grain shapes: Implemented CDE grains
Grain sizes: single grain size
Optical constants in database: olivine (amorph and crystalline), carbon, ices
Benchmarked with Michiels code (Min et al 2009)
- Next version (Beta 1.0)
Grain shapes: implement MIE and CDE grains
Grain sizes: single grain size
- Optical constants in database:
silicates (olivine and pyroxene, amorph and crystalline)
oxides
carbon
ices
Able to use your own optical constants
- Future versions:
Grain shapes: implement MIE, DHS, GRF and CDE grains
Grain sizes: single grain size and grain size distributions
- Optical constants in database:
Full JENA database avaliable in the SQLite database
Able to use your own optical constants
- Other functions:
Enable saving of the opacities in a local SQLite DB
Installation:
- PyPi:
run: pip install opacity_calculator
- Github
Download the files from github. Inside the opacity_calculator directory type (if you need permissions, with sudo): python setup.py install
To test if it works type python to go into python and then “import opacity_calculator”
Introduction
Coming…
Getting started: an example
- If you have the opacity_calculator installed and want to test how it works and plot a spectrum with the matplotlib package. Go into python and type:
import opacity_calculator as oc
opacitiesForsterite = oc.getOpacity(“fo050”, 1.0, print_console_output = True)
import matplotlib.pyplot as plt
plt.plot(opac.getX(), opac.getY())
plt.show)
- If you want to try another mineral, check the content of the database in the following way:
import opacity_calculator as oc
oc.printDatabase()
You can use the labels in the label column to generate opacities with the getOpacity function.
General code structure and classes
Classes & Files
- Package and python scripts
__init__.py
main.py
- DataClasses:
DataClass_SQLData.py
DataClass_OpticalConstants.py
DataClass_Opacity.py
- Calculators
Calculator_CDE.py
Calculator_MIE.py
Calculator_DHS.py
- Database files:
SQLITE_DATABASE.db
Databases and table structure
Filename: SQLITE_DATABASE.db
Table: OpticalConstantsTable
Metadata
Release files for opacity_calculator 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release files before installing.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| opacity_calculator-0.1.tar.gz | 6.2 MB | Without provenance | Details |
Release files / opacity_calculator-0.1.tar.gz
File added late
This file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
We recommend inspecting the release file before installing.
| Download URL | opacity_calculator-0.1.tar.gz |
|---|---|
| Size | 6.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34c02cc3a69cf8d82ce44bfa22dff95509e4f14907ab431ba14d92fb955e8c21
|
|
BLAKE2b-256 checksum How to use checksums |
b1fd984f5ac0bb9bcbf6624eb9fb3d37a7ca0a0cfd0ef4e7a034e7eacaa4acac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for opacity_calculator 0.1
Upload timing
File added late
1 file was uploaded more than 14 days after the first file in this release.
While project maintainers occasionally add legitimate files to an existing release, late additions can also indicate a security compromise.
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.