General utility scripts for Quetzal projects
Project description
Quetzal-CRUMBS
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
Release history Release notifications | RSS feed
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.7.tar.gz
(19.9 kB
view details)
Built Distribution
File details
Details for the file quetzal_crumbs-0.0.7.tar.gz
.
File metadata
- Download URL: quetzal_crumbs-0.0.7.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fd80551ffc43b2afd044e34ede4de85e7d1ac25b9a711eaf3827e3751e5f1bf |
|
MD5 | b7dbea29630eab9181aeff7c5edbf667 |
|
BLAKE2b-256 | 35b3f5e31f71c188f7298df31b471267c38f2bd93d462278eb65bccd61664db9 |
File details
Details for the file quetzal_crumbs-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: quetzal_crumbs-0.0.7-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ce5ebfbcd3d9a98010855677a280f80c2ccdbb51cac00f179708e087f67a2cf |
|
MD5 | 476641b454054308d3e94505da41d80f |
|
BLAKE2b-256 | 8398ad5646b0a8d482963429c1f49fcb7af5edf847ae70109672f1bb64cca3b8 |