Skip to main content

A computing library designed with engineers in mind..

Project description

scisuit

High performance, scientific computing library designed with engineers in mind..

 

Engineering Library

Designed mostly for process engineers.

Examples

1. Psychrometry:

Computation of properties of humid-air.

from scisuit.eng import psychrometry

r = psychrometry(P=101, Tdb=30, Twb=20)

#all of the properties
print(r)
P=101.0 kPa,
Tdb=30.0 C
Twb=20.0 C
Tdp=14.17 C
H=57.06 kJ/kg da
RH=39.82 %
W=0.0106 kg/kg da
V=0.876 m3/kg da

 

2. Food:

A rich class for not only computation of food properties but also to perform food arithmetic.

import scisuit.eng as eng

milk = eng.Food(water=88.13, protein=3.15, cho=4.80, lipid=3.25, ash=0.67)
water = eng.Food(water=100)

#removal of 87% water from milk
powder = milk - 0.87*water 
print(powder)
Type = Food
Weight (unit weight) = 0.13
Temperature (C) = 20.0
water (%) = 8.69
cho (%) = 36.92
protein (%) = 24.23
lipid (%) = 25.0
ash (%) = 5.15
aw = 0.194

   

Statistics Library

Statistical tests & distributions.

from scisuit.stats import linregress

#input values
temperature = [80, 93, 100, 82, 90, 99, 81, 96, 94, 93, 97, 95, 100, 85, 86, 87]
feedrate = [8, 9, 10, 12, 11, 8, 8, 10, 12, 11, 13, 11, 8, 12, 9, 12]
viscosity = [2256, 2340, 2426, 2293, 2330, 2368, 2250, 2409, 2364, 2379, 2440, 2364, 2404, 2317, 2309, 2328]

#note the order of input to factor
result = linregress(yobs=viscosity, factor=[temperature, feedrate])
print(result)

#Output
Multiple Linear Regression  
F=82.5, p-value=4.0997e-08, R2=0.93

Predictor        Coeff        StdError         T             p-value
X0               1566.078         61.59       25.43       9.504e-14
X1               7.621            0.62        12.32       3.002e-09
X2               8.585            2.44        3.52        3.092e-03

   

Numerics Library

Libraries for solving ODE, root finding, fitting, integration...

from scisuit.roots import bisect, brentq, itp

args = {"f":lambda x: x**2-5, "a":0, "b": 4} 

for func in [bisect, brentq, itp]:
    print(func(**args))
Bisection using brute-force method 
Root=2.23607, Error=3.35e-06 (18 iterations).

Brent's method (inverse quadratic interpolation)
Root=2.23607, (7 iterations).

ITP method
Root=2.23607, Error=3.43e-07 (7 iterations).

   

UI Library

For designing notebook-embedded apps, running in web workers, with Python. Requires js and pyodide-py libraries.
This is specifically designed for notebooks on https://www.pebytes.com

Available widgets:

  • button
  • Inputs (checkbox, radio, textbox)
  • label
  • layout managers (hpanel, vpanel, table)
  • output
  • select
  • textarea

Knowledge of HTML and CSS can be immensely helpful to modify widgets.

import scisuit.ui as ui
# Define the UI
app = ui.Body()

txt1 = ui.Textbox(value="")
txt2 = ui.Textbox(value="")
btnremove = ui.Button("rmove", style= "color: red; background: yellow")
btnadd = ui.Button("add")


panel = ui.VPanel([txt1, btnremove, txt2, btnadd], halign="start", style="padding: 1em")
app.add(panel)

# Mount the app to the target id
app.mount(target_id=_SYS_CELLID_)


def onBtnRemoveClick(event):
	panel.remove(txt1)

def onBtnAddClick(event):
	panel.add(txt1)
	panel.update()


btnremove.onClick(onBtnRemoveClick)
btnadd.onClick(onBtnAddClick)

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

scisuit-2.5.1-cp313-cp313-win_amd64.whl (457.0 kB view details)

Uploaded CPython 3.13Windows x86-64

scisuit-2.5.1-cp313-cp313-manylinux_2_39_x86_64.whl (766.8 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.39+ x86-64

scisuit-2.5.1-cp312-cp312-win_amd64.whl (457.0 kB view details)

Uploaded CPython 3.12Windows x86-64

scisuit-2.5.1-cp312-cp312-manylinux_2_39_x86_64.whl (766.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.39+ x86-64

File details

Details for the file scisuit-2.5.1-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: scisuit-2.5.1-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 457.0 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for scisuit-2.5.1-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 9917537f9f742d5142a06fc4c20d41cc44d83bca78947e56a9727ce73505ac6a
MD5 1d1eb13a13cb497d08ee1801624c5269
BLAKE2b-256 99275f801f2dc48aa481c2dd818c529ecc43038723088386b13a14e865baff80

See more details on using hashes here.

File details

Details for the file scisuit-2.5.1-cp313-cp313-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for scisuit-2.5.1-cp313-cp313-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 4be1b1f30b71a00aad5cd66d3cff13dd83a2ec3a56876d98eb3a10245176f575
MD5 b7801e2213063074a3178b2b192e5ada
BLAKE2b-256 bbb1f3984583f346498a9bfe21ca9229bae50b986d3f6de9579ed1c1136d2b15

See more details on using hashes here.

File details

Details for the file scisuit-2.5.1-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: scisuit-2.5.1-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 457.0 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for scisuit-2.5.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 0181456456c3e9a7174ac989f274188826e3ef9f1c30c05979627e2560faa064
MD5 a2f922036526d15e7fe95a6ffbb8f7e2
BLAKE2b-256 43cd6ba6c934ca0efffdc47e0bc5648fa7d8bb247c95e9a69c78d76b8fe05e46

See more details on using hashes here.

File details

Details for the file scisuit-2.5.1-cp312-cp312-manylinux_2_39_x86_64.whl.

File metadata

File hashes

Hashes for scisuit-2.5.1-cp312-cp312-manylinux_2_39_x86_64.whl
Algorithm Hash digest
SHA256 524627cad58fbf5b1aeb4b61f7ff2dc8125b2b991c03c866b086eb7aebacb5c5
MD5 964a077cd5cbc245c2f8516431faea77
BLAKE2b-256 2ed572c86b4f0295dcf58824dd4351fe7b98a80071a6e84a9f16a4ac3c06a104

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