Skip to main content

🐗 A portable collection of functions for scientific exploration

Project description

🐗 pykirill

Documentation

This is my personal Python package, pykirill, which includes a collection of utilities and functions that I frequently use during scientific exploration. This package is especially designed to be portable, making it suitable for environments like Google Colab where setup needs to be minimal.

Installation

To install pykirill, you can use pip directly from GitHub. This method ensures you always get the latest version. Here are the steps to follow:

pip install pykirill
pip install git+https://github.com/kirilledition/pykirill.git

Usage

Here are quick examples of how to use pykirill:

Plotting

from pykirill import plotting

plotting.setup()

axm = plotting.SubplotsManager(4)

for trajectory_fragment in range(4):
  frame_values = ...

  ax = axm.nextax()
  ax.hist(frame_values)
  ax.set_title(f"Histogram of intensity values of {trajectory_fragment}")
  ax.set_xlabel("Intensity")
  ax.set_ylabel("Frequency")

axm.show()

Transforms

from pykirill import transforms

# For NumPy arrays
x = np.array([1, 2, 3, 4], dtype=np.float32)
log_scaled_x = transforms.log_scale(x)

# For Pandas DataFrames
log_scaled_df = df.apply(transforms.log_scale)

License

pykirill is open-sourced under the MIT license. The details can be found in the LICENSE file.

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

pykirill-2024.2.0.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

pykirill-2024.2.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file pykirill-2024.2.0.tar.gz.

File metadata

  • Download URL: pykirill-2024.2.0.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for pykirill-2024.2.0.tar.gz
Algorithm Hash digest
SHA256 d079fef19589867a585dbbec797e3261e6b0403ac008d56a79f0291eb04102b1
MD5 3ea0173d289c3f206935856bb8f4ff6f
BLAKE2b-256 ca28c2e8ca0387cec6b2eea38fec71178728c7d8e161e787e8e9998e0ecb6dba

See more details on using hashes here.

File details

Details for the file pykirill-2024.2.0-py3-none-any.whl.

File metadata

  • Download URL: pykirill-2024.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for pykirill-2024.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3ae0ebe8c32e8666d23d24717006d0372eda9325358a23151047c3fc5987b06d
MD5 3fcf1f23ef66d99f7afae71fb8e45592
BLAKE2b-256 340e466935e3a00f437d523f532f1801aedd6e292b0cba69457b0109efd92e95

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