Skip to main content

General utility scripts for Quetzal projects

Project description

Quetzal-CRUMBS

Becheler License: GPL v3 Website becheler.github.io PyPI version

General utility scripts for the Quetzal framework projects

Usage in bash

Sampling parameters in prior distribution

  • Sampling integers (eg population size): N=$(python3 -m crumbs.sample "uniform_integer" 10 1000)
  • Sampling double (eg probability): p=$(python3 -m crumbs.sample "uniform_real" 0.0001 0.1)
  • Sampling a coordinate uniformly at random in a geotiff file:
    • latlon=($(python3 -m crumbs.sample "uniform_latlon" "file.tif" | tr -d '[],'))
    • get latitude with ${latlon[0]}
    • get longitude with ${latlon[1]}

Updating the package

  • Create a feature branch, make updates to it.
  • Test the feature
  • Bump the version in setup.cfg
  • Bump the version of the whl file in .circleci/config.yml
  • Update the ChangeLog
  • Push to GitHub

When you have a successful build on https://app.circleci.com/pipelines/github/Becheler/quetzal-CRUMBS:

  • create a Pull Request (PR) to the develop branch
  • Merge the PR if it looks good.
  • When that build succeeds, create a PR to the main branch, review it, and merge.
  • Go get a beer and bless this new version with some luuuv.

Workflow from https://circleci.com/blog/publishing-a-python-package/.

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

quetzal_crumbs-0.0.9.tar.gz (20.0 kB view hashes)

Uploaded Source

Built Distribution

quetzal_crumbs-0.0.9-py3-none-any.whl (22.1 kB view hashes)

Uploaded Python 3

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