Skip to main content

A Python library to assist geologists with the analysis of rock core CT scans

Project description

Core-CT

The core-ct scan library was built to assist geologists with the visualization and analysis of the CT scans of rock cores.

Documentation

https://core-ct.readthedocs.io/en/latest/

Development Environment

  1. Install poetry using the instructions at https://python-poetry.org/docs/#installation
  2. Navigate to inside the repository
  3. Run poetry install to install the required dependencies
  4. Use poetry shell to activate the newly created virtual environment

Linting

To help maintain a clean codebase, this project makes use of the ruff linter. Due to settings in the GitHub repository, branches cannot be merged into main unless they pass linting checks.

Pre-Commit Hooks

As such, this repository also supports the Python pre-commit library, which can be used to install a git pre-commit hook that requires the code to pass a linting check before it can be committed. These pre-commit hooks are defined in the .pre-commit-config.yaml.

To set up this linting hook perform the following actions:

  1. Run poetry install to install pre-commit and ruff
  2. Run poetry run pre-commit install to install the commit hooks

Manually Run the Linter

If you would prefer to manually run a linting check, simply use the following command.

poetry run ruff .

Auto-Formatting

Additionally, the Python library black has been specified as a development dependency for this project and it can be used to automatically format code to match the linting rules.

Visual Studio Code

Finally, if Visual Studio Code is being used as a development IDE, it has support for both ruff and black extensions to help with catching linting errors and autoformatting code.

Testing

Just as with linting, due to settings in the GitHub repository, branches cannot be merged into main unless they pass all tests as specified in the tests repository.

To run these tests simply use the following command:

poetry run pytest

Resources

Credits

This software was built by the Golden Rocks team as a part of the Fall 2023 session of the Colorado School of Mines' CSCI-370 course.

Authors

Carla Ellefsen, Kira Hanson, Connor Sparks, Asa Sprow

Sponsors

Zane Jobe, Ryan Venturelli

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

core_ct-2.0.0.tar.gz (15.9 kB view details)

Uploaded Source

Built Distribution

core_ct-2.0.0-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file core_ct-2.0.0.tar.gz.

File metadata

  • Download URL: core_ct-2.0.0.tar.gz
  • Upload date:
  • Size: 15.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1018-azure

File hashes

Hashes for core_ct-2.0.0.tar.gz
Algorithm Hash digest
SHA256 5e8288469d545a79fcf0930164491aee9e23f51bc32affbd47c97d97a1c2e5c6
MD5 d6f9df42c8eb0825be1f836e469fa147
BLAKE2b-256 d981b4b3a51160aa5c517daff408d18ad1b95f0ad9c9fcc2b83e0292cd61a755

See more details on using hashes here.

File details

Details for the file core_ct-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: core_ct-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-1018-azure

File hashes

Hashes for core_ct-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a033733e1ae28f2d6cf6b541fdc1d7d05a09e9289696fb1d8a70e1da1488b858
MD5 51cd28ecd55b3bed4750ec98660f91cb
BLAKE2b-256 ce5d730c09fb2738c148f3b6c6fe75137f5498b75edb5849daf087ff72a2e35b

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