Skip to main content

License: MIT build workflow codecov

little_helpers

Some helpful functions that keep being used in various of my repositories, install via:

pip install little_helpers

array_tools.py

  • y_at_y: Find values in y_values that belongs to the values in x_values clostest to x.
  • closest_index: Find the index of a value in array x_values that is clostest to x.
  • segment_xy_values: Segment the x_values and y_values according to segment borders.

geometry.py

hydrogel_conversions.py

math_functions.py

  • langmuir_isotherm: Calculate the q_e values of a simple Langmuir isotherm.
  • langmuir_isotherm_hydrogel: Calculate the adsotpion inside a hydrogel based on a Langmuir model taking the swelling into account.
  • langmuir_comp: Calculate the q_e values of a Langmuir isotherm taking into account competetive adsorption of two species.
  • triangle: Calculate a triangle function.
  • gaussian: Calculate one or a superposition of Gaussian normal distributions.
  • boxcar: Calculate a boxcar function.
  • boxcar_convolution: Calculate the convolution of a boxcar function with another function.
  • piecewise_polynomial: Calculate the y values of a piecewise polynomial.
  • flory_rehner: Calculate 1/M_c according to the Flory-Rehner equation.
  • Herschel_Bulkley: Calculate the stress according tot he Herschel-Bulkley model.
  • cum_dist_normal: Cumulative distribution function for the normal distribution.
  • cum_dist_normal_with_rise: Superposition of cum_dist_normal and a linear function through the origin.

math_to_word.py

num_derive.py

A simple method to calculate the derivative of discrete data.

statsmodel_wrapper.py

A universal sklearn-style wrapper for statsmodels regressors.

table_of_elements.py

A table containing information about chemical elements, currently the atomic number, the atomic weight, the element name and element symbol.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

little_helpers-0.0.7.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

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

little_helpers-0.0.7-py3-none-any.whl (20.8 kB view details)

Uploaded Python 3

File details

Details for the file little_helpers-0.0.7.tar.gz.

File metadata

  • Download URL: little_helpers-0.0.7.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for little_helpers-0.0.7.tar.gz
Algorithm Hash digest
SHA256 5a0db95bd2d26d48cd2bde7410702549efc59df15ac2ce7ab24b898e00a2c8b4
MD5 7781457c0f8449438cbf22cae880c3f1
BLAKE2b-256 d6f5ee2927eb1d98c2fcb9e01e75535639da0024afbe980591a5502cec45dc21

See more details on using hashes here.

File details

Details for the file little_helpers-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: little_helpers-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 20.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for little_helpers-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 102a146540c7d9a41f940e8df07c3c022f0a8d32b0c4a3a6d5e04b82d0103d6f
MD5 cd73f93fa56e06b66e2fdfefb8d72378
BLAKE2b-256 ba8a0e2f52b3777d945eeb608164c1df756b0a9c1a8e1779e8c36856055458d0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page