Skip to main content

Welcome to LUCI

In this document, you will find a brief description of what LUCI is, how to install it (her), where to go to find examples, documentation, and more!

What is LUCI

LUCI is a general purpose fitting pipeline built specifically with SITELLE IFU data cubes in mind; however, if you need to fit any emission line spectra, LUCI will be able to help! Although other codees exist, we built LUCI specifically with the user in mind. Thanks to the clear coding practices used in creating LUCI and her detailed documentation, users can modify the code easily by changing numerical solvers. Additionally, we implemented a Bayesian Inference algorithm using MCMC (using emcee) to derive uncertainty estimates.

Installing LUCI

We have tried to make the installation of LUCI as smooth and painless as possible; however, if you have suggestions, please reach out to us. Below are our instructions for installing on a linux/MacOS-based distribution.

  1. Clone this repository . I suggest cloning it in Documents or Applications. git clone https://github.com/crhea93/LUCI.git
  2. Enter repository wherever you cloned it. cd LUCI
  3. Create luci environment using the following command: conda env create -f luci.yml. Now, whenever you wish to use LUCI, you can load the environment by simply typing the following into your terminal: conda activate luci.

Now you are all set to use Luci! To load the module into a python file or jupyter notebook simply add the following lines:

import sys
sys.path.insert(0, '/the/path/to/LUCI/')
import Luci

What to use LUCI for

LUCI is, of course, first and foremost a fitting algorithm. In order to ease the pain of fitting IFU data cubes, we have built several wrappers for the fitting functions (these can be found in Luci/LuciFit.py). These functionalities include, but are not limited to, reading in a data cube in the HDF5 format (LUCI()), fitting the entire data cube (LUCI.fit_entire_cube), fitting a region or masked region of the cube (LUCI.fit_region()), extracting and fitting an integrated region (LUCI.fit_spectrum_region, creating a deep image (LUCI.create_deep_image), and building a Signal-to-Noise ratio map of the cube (LUCI.create_snr_map).

You can also access the fitting directly by circumventing the LUCI wrappers and directly accesing the fitting algorithms (Luci.LuciFitting). With this, you can fit any spectrum using the Luci.LuciFitting.fit and Luci.LuciFitting.bayes_fit algorithms. We also provide basic plotting functionality which can be found in Luci.LuciPlotting.

Where to find examples

Examples are paramount to the success of any open source code. Therefore, we have tried to make our examples as complete as possible. That said, we surely have forgotten something! If you wish to see an example that does not exist (or for an example to be better explained), please shoot us an email or open up an issue!

All examples can be found in two locations. Read-through examples can be found on our read the docs (https://crhea93.github.io/LUCI/index.html) page while jupyter notebooks can be found in the Examples folder. I suggest starting with https://crhea93.github.io/LUCI/example_basic_lite.html.

Where to find documentation

Documentation can also be found on our read the docs (https://luci-fitting.readthedocs.io/en/latest/) page. In addition to documentation on each function in LUCI, you can also find a description of what LUCI calculates and how she does what she does!

Contributing

If you wish to contribute, that's awesome! Please shoot me an email at carter.rhea@umontreal.ca. The easiest way to get involved is to make an issue or fork the repo, make your changes, and submit a well-documented pull request.

Contact

If you have any questions about how to install, use, or modify LUCI, please send an email to Carter Rhea.

2021 Carter Rhea (carter.rhea@umontreal.ca)

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see https://www.gnu.org/licenses/.

Metadata

Release files for LUCI-package 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for LUCI-package 0.0.3
File Interpreter ABI Platform Actions
LUCI_package-0.0.3-py3-none-any.whl Python 3 none any Details for LUCI_package-0.0.3-py3-none-any.whl

Release files / LUCI_package-0.0.3-py3-none-any.whl

Download URL LUCI_package-0.0.3-py3-none-any.whl
Size 26.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f9850358aea95a185e70b4fdceac2922569a798c157ab20a7189c1ade05e51b1
BLAKE2b-256 checksum
How to use checksums
9abdcd52d555f5bb75165a9a151cef99505641fdebc1befda62897fd4f81019e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.1

Security for LUCI-package 0.0.3

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.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page