Tools for improved experience with cadCAD
Project description
cadCAD-tools
Tools for improving the cadCAD user experience. This library contains wrappers for executing simulations easily as well as tools for profiling and typing.
How to use
The best way is by looking into the example notebooks on the notebooks/
folder
Setup
Just use pip.
python -m pip install cadCAD-tools
Features
Easy execution of cadCAD models
Easy enough:
from cadCAD_tools import easy_run
df = easy_run(initial_conditions,
params,
partial_state_update_blocks,
TIMESTEPS,
SAMPLES,
use_labels=True,
assign_params=True,
drop_substeps=False)
cadCAD specific types
from cadCAD_tools.types import StateVariable, Parameter, StateUpdateBlock
Profiling tools & visualizations
cadCAD-tools includes wrappers for automatically decorating the PSUBs with time measuring functions. Through the usage of metadata, it is possible to obtain a clear view of what SUBs are being more expensive.
from cadCAD_tools import profile_run
df = profile_run(initial_conditions,
params,
partial_state_update_blocks,
TIMESTEPS,
SAMPLES,
use_labels=True,
assign_params=True)
from cadCAD_tools.profiling.visualizations import visualize_substep_impact
visualize_substep_impact(df, relative=True)
from cadCAD_tools.profiling.visualizations import visualize_elapsed_time_per_ts
visualize_elapsed_time_per_ts(df, relative=False)
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
cadCAD_tools-0.0.1.0.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for cadCAD_tools-0.0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f11689706e316d3e5e7cdfb5c6cf2d43873cc9b5692859f396ba02a742e779a6 |
|
MD5 | e598e3c771bbcf3b0546fa8bc10b3db0 |
|
BLAKE2b-256 | c5244a9861da2c8e19b54f45e03d9153d1032d7be7334ceda762903f8cb48cca |