Skip to main content

marslab

DOI tests codecov

A library of Python utilities for working with observational data of Mars, especially multispectral image data from rovers. This library does not contain discrete user-facing applications; if you're looking for a clock, a plotter, or an image generator, you've found one of its dependencies.

Feedback is welcomed and encouraged. If the content of your feedback might be covered by the MSL or M2020 Team Guidelines, please email: chase@millionconcepts.com Otherwise, please file an Issue.

installation

We recommend that you use the conda package manager to control your Python environment for this library. We do not officially support use of non-conda Python environments (the setup.py file is included for convenience and install hooks only). If you're already equipped with conda, please create an env for this package using the following commands:

conda env create -f environment.yml
conda activate marslab

Otherwise, please follow the rest of the instructions in this file.

step 1: install conda and support software

If you already have Anaconda or Miniconda installed on your computer, you can skip this step. If it's very old and not working well, you should uninstall it first. We definitely don't recommend installing multiple versions of conda unless you have a really strong need to do so.

You can get conda here as part of the Miniconda distribution of Python. Download the 64-bit version of the installer for your operating system and follow the instructions on that website to set up your environment. Make sure you download Miniconda3, not Miniconda2. marslab is not compatible with Python 2.

On Windows, depending on what else you have installed in your environment, you may also need to install Build Tools for Visual Studio, which you can find on this page: https://visualstudio.microsoft.com/downloads/

step 2: create conda environment

Now that you have conda installed, you can set up a Python environment to use marslab. Open up a terminal: Anaconda Prompt on Windows, Terminal on macOS, or your console emulator of choice on Linux. Navigate to the directory where you put the repository. Make sure you have git installed in your base conda environment:

conda install -n base git

After that completes, run:

conda env create -f environment.yml

Say yes at the prompts and let the installation finish. Then run:

conda env list

You should see marslab in the list of environments. Now run:

conda activate marslab

and you will be in a Python environment that contains all the packages marslab needs.

This library has an additional dependency on Windows that is not currently accounted for in the environment.yml file. Run pip install windows-curses to install it.

Important: now that you've created this environment, you should always have it active whenever you work with marslab.

If you can't activate the environment, see 'common gotchas' below.

common gotchas

  • If you get error messages when running a Notebook or other marslab code, make sure you have activated theconda environment by running conda activate marslab.
  • If you use multiple shells on macOS or Linux, conda will only automatically set up the one it detects as your system default. If you can't activate the environment, check a different shell.
  • If you've already got an installed version of conda on your system, installing an additional version without uninstalling the old one may make environment setup very challenging. We do not recommend installing multiple versions of conda at once unless you really need to.

Metadata

Release files for marslab 0.9.27

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

Source distribution (sdist)

Source distribution for marslab 0.9.27
File Size Uploaded
marslab-0.9.27.tar.gz 89.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for marslab 0.9.27
File Interpreter ABI Platform
marslab-0.9.27-py3-none-any.whl Python 3 none any Details

Total release size: 192.5 kB

Release files / marslab-0.9.27.tar.gz

Download URL marslab-0.9.27.tar.gz
Size 89.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a2b8c946ac1d3441c74d3fe02ef4cd577a12a24196b9abaadd14bede26ab2387
BLAKE2b-256 checksum
How to use checksums
33908da08744f38d6c25ab69e947aa99cb277d4d44281102e019047a323b3665
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.14

Release files / marslab-0.9.27-py3-none-any.whl

Download URL marslab-0.9.27-py3-none-any.whl
Size 102.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e790eb09d43d0e35ecd30c8ff07f664a0e7fdbf10494a7ef5edd2af95ed53b52
BLAKE2b-256 checksum
How to use checksums
6bf1bd7b9eb8506ccfa15b27daeeb399f2652318ccea65637f2aca77d9fd7012
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.9.27 This release

2 release files

0.9.26

2 release files

0.9.25

2 release files

0.9.24

2 release files

0.9.23

2 release files

0.9.12

2 release files

0.9.11

2 release files

0.9.10

2 release files

0.9.2

2 release files

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