Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/config/pathsim/blocks.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@
"ODE",
"DynamicalSystem",
"StateSpace",
"PT1",
"PT2",
"LeadLag",
"PID",
"AntiWindupPID",
"RateLimiter",
"Backlash",
"Deadband",
"TransferFunctionNumDen",
"TransferFunctionZPG",
"ButterworthLowpassFilter",
Expand Down
50 changes: 50 additions & 0 deletions scripts/generated/registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,32 @@
"initial_value"
]
},
"PT1": {
"blockClass": "PT1",
"importPath": "pathsim.blocks",
"params": [
"K",
"T"
]
},
"PT2": {
"blockClass": "PT2",
"importPath": "pathsim.blocks",
"params": [
"K",
"T",
"d"
]
},
"LeadLag": {
"blockClass": "LeadLag",
"importPath": "pathsim.blocks",
"params": [
"K",
"T1",
"T2"
]
},
"PID": {
"blockClass": "PID",
"importPath": "pathsim.blocks",
Expand All @@ -193,6 +219,30 @@
"limits"
]
},
"RateLimiter": {
"blockClass": "RateLimiter",
"importPath": "pathsim.blocks",
"params": [
"rate",
"f_max"
]
},
"Backlash": {
"blockClass": "Backlash",
"importPath": "pathsim.blocks",
"params": [
"width",
"f_max"
]
},
"Deadband": {
"blockClass": "Deadband",
"importPath": "pathsim.blocks",
"params": [
"lower",
"upper"
]
},
"TransferFunctionNumDen": {
"blockClass": "TransferFunctionNumDen",
"importPath": "pathsim.blocks",
Expand Down
8 changes: 4 additions & 4 deletions src/lib/constants/dependencies.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Auto-generated by scripts/extract.py - DO NOT EDIT
// Source: scripts/config/requirements-pyodide.txt, scripts/config/pyodide.json

export const PATHVIEW_VERSION = '0.4.5';
export const PATHVIEW_VERSION = '0.6.1';

export const PYODIDE_VERSION = '0.26.2';
export const PYODIDE_CDN_URL = `https://cdn.jsdelivr.net/pyodide/v${PYODIDE_VERSION}/full/pyodide.mjs`;

export const PYODIDE_PRELOAD = ["numpy", "scipy", "micropip"] as const;

/** Package versions extracted at build time (pinned for runtime) */
export const EXTRACTED_VERSIONS: Record<string, string> = {"pathsim": "0.16.5", "pathsim_chem": "0.2rc3.dev1"};
export const EXTRACTED_VERSIONS: Record<string, string> = {"pathsim": "0.16.8.dev3", "pathsim_chem": "0.2rc3"};

export interface PackageConfig {
pip: string;
Expand All @@ -21,13 +21,13 @@ export interface PackageConfig {
export const PYTHON_PACKAGES: PackageConfig[] =
[
{
"pip": "pathsim==0.16.5",
"pip": "pathsim",
"required": true,
"pre": true,
"import": "pathsim"
},
{
"pip": "pathsim-chem>=0.2rc2",
"pip": "pathsim-chem==0.2rc3",
"required": false,
"pre": true,
"import": "pathsim_chem"
Expand Down
Loading