Skip to main content

optsys - Integrated toolkit for calculations of optical absorptions from MWAA or BLAnCA data

Project description

OPTSYS quick start guide

Installation

python(3) -m pip install optsys

Calculating the integrals for MWAA

You need an .xls(x) file for the loaded filters black.xlsx, an .xls(x) file for the blank reference white.xlsx, an .xlsx gain and dark file gd.xlsx (the files can have any name, the names I wrote here are just as an example). You also need to create a folder to store all the output of the calculations, results/. The black, white and gains files have to follow exactly the provided templates.

The command for this step is:

mpre -b black.xlsx -w white.xlsx -g gd.xlsx -o results/ --name analysis_name

The integrals for the black and white filters will be saved in the results/ folder, in a human-readable .csv format and in a machine-readable .json format (which the ABS calculation routine will use as input).

Calculating the integrals for BLAnCA

You need an .xlsx file for the loaded filters black.xlsx, with multiple tabs. Each tab contains the spectra for a filter, and its name corresponds to the filter name. Another file for the blank reference white.xlsx, with only one tab. If in doubt, check the provided templates.

The command for this step is:

bpre -b black.xlsx -w white.xlsx -o results/ --name analysis_name

where results/ is the folder for the output (it does not need to be created in advance, unlike the MWAA case). The integrals for the black and white filters will be saved in the results/ folder, in a human-readable .csv format and in a machine-readable .json format (which the ABS calculation routine will use as input).

ABS minimization

The integral calculation for MWAA and BLAnCA produce an output in the same exact format, so they can be both used for the same minimization procedure. Like previous versions, the configuration for this step is contained in a JSON file, that has to contain all the keywords as the provided template. Generally, the only options that you will need to change are the following:

key type explanation
b_integrals string The (relative) path to the black integrals file.
w_integrals string The (relative) path to the black integrals file.
out_folder string The (relative) path to the output folder.
name string The analysis name.
tolerance float The tolerance for the minimization. The default value of 1e-3 is good enough in most cases.

Start the analysis with

abs config.json

where config.json is the path to the configuration file.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

optsys-1.0.1.tar.gz (12.6 MB view details)

Uploaded Source

Built Distribution

optsys-1.0.1-py3-none-any.whl (89.6 kB view details)

Uploaded Python 3

File details

Details for the file optsys-1.0.1.tar.gz.

File metadata

  • Download URL: optsys-1.0.1.tar.gz
  • Upload date:
  • Size: 12.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for optsys-1.0.1.tar.gz
Algorithm Hash digest
SHA256 ba968527b242872a0c6656e634310fd19bbcebfe5ef49fca8aeb0b3c7444b099
MD5 70c60dd0b823971a5ec6f3c01db9ed3f
BLAKE2b-256 4a4c85f74dbcdd1b828aaa131b6b019203419260830a180bc6909287e554336e

See more details on using hashes here.

File details

Details for the file optsys-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: optsys-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 89.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.1

File hashes

Hashes for optsys-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc2faf01811c39ee2d3e5cfe9523665cfae002b7695f1e6cec004eea61126332
MD5 d722a0453decb258e80ff8c2f5e816e9
BLAKE2b-256 49b4bfb14e1580b0ec7579e4c992ad0d898c0e9f300cdb302b51e2d9ee65b60d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page