Skip to main content

craterslab

A library to simplify the analysis of crater data from depth maps.

QA Release Python 3.11+ License: MIT Docs PyPI
uv Ruff Checked with mypy

Installation · Usage · Troubleshooting · Development


A laboratory crater as a depth map and in 3D, with the ellipse craterslab fits to its rim

Installation

Craterslab requires Python 3.11+ for functioning. Make sure you have a compliant version of python installed in your system.

Craterslab is also available from pypi. You can install it by running:

$ pip install craterslab

We strongly encourage users using this method to create a virtual environment before installing the library.

Automatic classification

The core install has no machine learning dependencies. To classify surfaces with the bundled CNN, install the optional extra:

$ pip install 'craterslab[classification]'

It works on Python 3.11 to 3.13, because TensorFlow has no wheels for newer versions yet.

Installing craterslab from the repository using uv

Make sure you have uv in your system and then run:

$ git clone https://github.com/gvieralopez/craterslab.git
$ cd craterslab
$ uv sync

These will create an isolated virtual environment with craterslab installed on it. Run commands inside it with uv run.

Usage

You can find some examples on how to use the library in this repository:

$ git clone https://github.com/gvieralopez/craterslab.git
$ cd craterslab/examples

Before executing any example, you will need to download data from actual craters using the provided scripts:

$ python download_data.py

Then, you can execute any given example as:

$ python example1.py

See software documentation for more details.

Troubleshooting

Error running the examples

If you get a warning as such

UserWarning: FigureCanvasAgg is non-interactive, and thus cannot be shown

You may need to install tk on your operative system.

Development

Setup, QA, docs and releases: DEVELOPMENT.md.

Contributing

Issues and pull requests are welcome; make qa must pass.

License

MIT: see LICENSE.


🚀 Project starter provided by Cookie Pyrate v1.1.2

Metadata

Release files for craterslab 0.3.0

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

Source distribution (sdist)

Source distribution for craterslab 0.3.0
File Size Uploaded Provenance Actions
craterslab-0.3.0.tar.gz 24.4 MB Without provenance Details for craterslab-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 47.6 MB

Release files / craterslab-0.3.0.tar.gz

Download URL craterslab-0.3.0.tar.gz
Size 24.4 MB
Tags Source
SHA-256 checksum
How to use checksums
11d91584b92d1af4e3db7da5d83918f9fd47ed29dab558885118f483acb93c89
BLAKE2b-256 checksum
How to use checksums
21f65d8109a47c7108fd3a23e2a18548c85edf68157fcbfadd9647edb3be31b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / craterslab-0.3.0-py3-none-any.whl

Download URL craterslab-0.3.0-py3-none-any.whl
Size 23.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
2a81bdffe32c4dc9efb9e2074fe4c0e7c9b544d8668de72ff495958b73345023
BLAKE2b-256 checksum
How to use checksums
a5a37c8fad1770c44a63ded4fbaf25541f2457708b9f0500195ea2bfe767edc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for craterslab 0.3.0

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.

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