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 web UI's with Python. Requires js and pyodide-py libraries.

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.App()

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

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


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

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


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

# Render and inject into the page
app.run(target_id="mydiv")

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.4.0-cp313-cp313-win_amd64.whl (442.7 kB view details)

Uploaded CPython 3.13Windows x86-64

scisuit-2.4.0-cp312-cp312-win_amd64.whl (442.7 kB view details)

Uploaded CPython 3.12Windows x86-64

scisuit-2.4.0-cp311-cp311-win_amd64.whl (442.7 kB view details)

Uploaded CPython 3.11Windows x86-64

File details

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

File metadata

  • Download URL: scisuit-2.4.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 442.7 kB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for scisuit-2.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 1c48648a4563e7adf761d45a3c90ad94f8271af65f398b3ddba6806c29105687
MD5 d36999d4c0f489998071d5cdae11f22b
BLAKE2b-256 be02467c2b4c543187181c44b769a579ceb394b31cd9b2e661060bd7d0dcb4d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scisuit-2.4.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 442.7 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for scisuit-2.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 a13dc790ad29a73cdbe52a000a6e2c480d9d4f43e0eaf3a928c33f4e5774260b
MD5 fd99aeb2acac1108ac54e6996a899287
BLAKE2b-256 badd9b3f900549044e606d7f888a7499a67a856e5d2ea91bb7490032e6f8ee87

See more details on using hashes here.

File details

Details for the file scisuit-2.4.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: scisuit-2.4.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 442.7 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.6

File hashes

Hashes for scisuit-2.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 00fce03e4dea72d13d44f4902a4c0e565079bf744cddd1f0f46fc34ae2d4d3a6
MD5 3bc7f6f911b3b9a6c0ca0b2677e78c52
BLAKE2b-256 6f849c413ad379de3d4ef7e6202f3f990ffcc4ad0a6979e07f5920a0b2b93b55

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