🐗 A portable collection of functions for scientific exploration
Project description
🐗 pykirill
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
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
Built Distribution
File details
Details for the file pykirill-2024.1.0.tar.gz
.
File metadata
- Download URL: pykirill-2024.1.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ce2382f3d5c81121f9913c07e08b52529b252772e1d7c85160b443fa0b6a668 |
|
MD5 | ccaf147a82504b3b88bfba5d407485a7 |
|
BLAKE2b-256 | d7a62249fa296afccefc234736704ba97bd6c87ecce4402abc4bb8861e27017d |
File details
Details for the file pykirill-2024.1.0-py3-none-any.whl
.
File metadata
- Download URL: pykirill-2024.1.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a112a2e366065e8a40c6cdb31cd9b6a5cafdd2f70c5ed6677812a2e2337619d |
|
MD5 | 1c98ff98b5c77b93052da1391189faaf |
|
BLAKE2b-256 | 7349b387240babb0e39616b5a35c3391012d04a0fef26bdd7cc6e2e4f692ab81 |