Skip to main content

Useful tools and utilities I use for scientific programming

Project description

keino

Useful tools and utilities I use for scientific programming.

Installation

pip install keino, or clone this repo, cd into and pip install . to run the master version.

Summary of utilities

  • Params: Handy class for containing parameters.
  • RoundedPolygon: Matplotlib patch object corresponding to a rectangle with rounded corners.
  • add_colourbar: Create a matplotlib colourbar, with the orientation, scale, and position tunable.
  • build_axes_grid: Create a grid of matplotlib axes, with the spacings, offsets, and aspect ratios tunable.
  • colours: Various colourmaps and related utilities.
  • copy_artist: Copy a matplotlib artist.
  • hash_dict: Creates a unique hash for a dict
  • int_path: Creates a list of indices between the given points.
  • kpath: Discretises the Brillouin zone between certain momenta points.
  • ndindex: Similar to numpy.ndindex, but allows also for specifying the lower as well as upper point of the iterators.
  • pprint: Prints a matrix nicely in a Jupyter notebook.
  • vectorize_parallel: Decorator which allows a function to take vector arguments, and also enables parallel processing with caching to disk.
  • versioned_import: Allows for importing a library function, with a particular version enforced.

Licences

rounded_polygon.py: CC BY-SA 4.0

vectorize_parallel.py: AGPL v2

All other code: GPL v3+

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

keino-1.0.3.tar.gz (34.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

keino-1.0.3-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

File details

Details for the file keino-1.0.3.tar.gz.

File metadata

  • Download URL: keino-1.0.3.tar.gz
  • Upload date:
  • Size: 34.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for keino-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e88196b75a9799485f5bfd76316a0f88fe71ed8ad43b9e23fa123fa1c75cdb5e
MD5 f0b7130ca7040ac748c4f7778df60062
BLAKE2b-256 d166dbb6989f0fe993502cc2ede2e0f7c2161aff377daba9c9183f6c136ccc96

See more details on using hashes here.

File details

Details for the file keino-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: keino-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 41.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for keino-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2b6b4fd3e627b4ec22dde19be95f350fdeed5f4fc451a95a4f93f99695e08090
MD5 5d603c8d49d2a38235940773b6939022
BLAKE2b-256 550a2405240511230f418eb2b84c4f49fb26925f93cdff0c80aff140829c9fb8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page