Unbundle pathsim-chem so it installs as a runtime toolbox via the man… · pathsim/pathview@e15cd7c · GitHub
Skip to content

Commit e15cd7c

Browse files
committed
Unbundle pathsim-chem so it installs as a runtime toolbox via the manager
1 parent 8b5762e commit e15cd7c

9 files changed

Lines changed: 25 additions & 873 deletions

File tree

‎pathview/data/registry.json‎

Lines changed: 0 additions & 142 deletions

‎pyproject.toml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ dependencies = [
2020
"flask-cors>=4.0",
2121
"numpy",
2222
"waitress>=3.0",
23-
"pathsim",
24-
"pathsim-chem>=0.2.0",
23+
"pathsim==0.20.0",
2524
]
2625

2726
[project.optional-dependencies]

‎scripts/config/pathsim-chem/blocks.json‎

Lines changed: 0 additions & 23 deletions
This file was deleted.

‎scripts/config/requirements-pyodide.txt‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,3 @@
44
# For Pyodide runtime: "# optional" means installation failure won't block app
55

66
pathsim
7-
pathsim-chem>=0.2.0 # optional

‎scripts/generated/registry.json‎

Lines changed: 0 additions & 142 deletions
Original file line numberDiff line numberDiff line change
@@ -579,148 +579,6 @@
579579
"blockClass": "Interface",
580580
"importPath": "pathsim.blocks",
581581
"params": []
582-
},
583-
"Process": {
584-
"blockClass": "Process",
585-
"importPath": "pathsim_chem",
586-
"params": [
587-
"tau",
588-
"initial_value",
589-
"source_term"
590-
]
591-
},
592-
"ResidenceTime": {
593-
"blockClass": "ResidenceTime",
594-
"importPath": "pathsim_chem",
595-
"params": [
596-
"tau",
597-
"betas",
598-
"gammas",
599-
"initial_value",
600-
"source_term"
601-
]
602-
},
603-
"Splitter": {
604-
"blockClass": "Splitter",
605-
"importPath": "pathsim_chem",
606-
"params": [
607-
"fractions"
608-
]
609-
},
610-
"Bubbler4": {
611-
"blockClass": "Bubbler4",
612-
"importPath": "pathsim_chem",
613-
"params": [
614-
"conversion_efficiency",
615-
"vial_efficiency",
616-
"replacement_times"
617-
]
618-
},
619-
"GLC": {
620-
"blockClass": "GLC",
621-
"importPath": "pathsim_chem",
622-
"params": [
623-
"P_in",
624-
"L",
625-
"D",
626-
"T",
627-
"BCs",
628-
"g",
629-
"initial_nb_of_elements"
630-
]
631-
},
632-
"CSTR": {
633-
"blockClass": "CSTR",
634-
"importPath": "pathsim_chem",
635-
"params": [
636-
"V",
637-
"F",
638-
"k0",
639-
"Ea",
640-
"n",
641-
"dH_rxn",
642-
"rho",
643-
"Cp",
644-
"UA",
645-
"C_A0",
646-
"T0"
647-
]
648-
},
649-
"PFR": {
650-
"blockClass": "PFR",
651-
"importPath": "pathsim_chem",
652-
"params": [
653-
"N_cells",
654-
"V",
655-
"F",
656-
"k0",
657-
"Ea",
658-
"n",
659-
"dH_rxn",
660-
"rho",
661-
"Cp",
662-
"C0",
663-
"T0"
664-
]
665-
},
666-
"HeatExchanger": {
667-
"blockClass": "HeatExchanger",
668-
"importPath": "pathsim_chem",
669-
"params": [
670-
"N_cells",
671-
"F_h",
672-
"F_c",
673-
"V_h",
674-
"V_c",
675-
"UA",
676-
"rho_h",
677-
"Cp_h",
678-
"rho_c",
679-
"Cp_c",
680-
"T_h0",
681-
"T_c0"
682-
]
683-
},
684-
"FlashDrum": {
685-
"blockClass": "FlashDrum",
686-
"importPath": "pathsim_chem",
687-
"params": [
688-
"holdup",
689-
"antoine_A",
690-
"antoine_B",
691-
"antoine_C",
692-
"N0"
693-
]
694-
},
695-
"Mixer": {
696-
"blockClass": "Mixer",
697-
"importPath": "pathsim_chem",
698-
"params": []
699-
},
700-
"Valve": {
701-
"blockClass": "Valve",
702-
"importPath": "pathsim_chem",
703-
"params": [
704-
"Cv"
705-
]
706-
},
707-
"Heater": {
708-
"blockClass": "Heater",
709-
"importPath": "pathsim_chem",
710-
"params": [
711-
"rho",
712-
"Cp"
713-
]
714-
},
715-
"PointKinetics": {
716-
"blockClass": "PointKinetics",
717-
"importPath": "pathsim_chem",
718-
"params": [
719-
"n0",
720-
"Lambda",
721-
"beta",
722-
"lam"
723-
]
724582
}
725583
},
726584
"events": {

‎src/lib/constants/dependencies.ts‎

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// Auto-generated by scripts/extract.py - DO NOT EDIT
22
// Source: scripts/config/requirements-pyodide.txt, scripts/config/pyodide.json
33

4-
export const PATHVIEW_VERSION = '0.8.0';
4+
export const PATHVIEW_VERSION = '0.8.9';
55

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

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

1111
/** Package versions extracted at build time (pinned for runtime) */
12-
export const EXTRACTED_VERSIONS: Record<string, string> = {"pathsim": "0.17.3.dev12", "pathsim_chem": "0.2rc4.dev6"};
12+
export const EXTRACTED_VERSIONS: Record<string, string> = {"pathsim": "0.20.0"};
1313

1414
export interface PackageConfig {
1515
pip: string;
@@ -21,15 +21,9 @@ export interface PackageConfig {
2121
export const PYTHON_PACKAGES: PackageConfig[] =
2222
[
2323
{
24-
"pip": "pathsim",
24+
"pip": "pathsim==0.20.0",
2525
"required": true,
2626
"pre": false,
2727
"import": "pathsim"
28-
},
29-
{
30-
"pip": "pathsim-chem>=0.2.0",
31-
"required": false,
32-
"pre": false,
33-
"import": "pathsim_chem"
3428
}
3529
];

‎src/lib/events/generated/events.ts‎

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)