-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed recursively_load to correctly handle paths and their children…
… to restrictively load only certain trees from hdf5
- Loading branch information
Showing
9 changed files
with
92 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,5 @@ | |
/ron.py | ||
/CADET.egg-info | ||
/dist | ||
/build/lib/cadet | ||
/cadet/__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
Metadata-Version: 2.1 | ||
Name: CADETPython | ||
Version: 0.2 | ||
Summary: CADET is a python interface to the CADET chromatography simulator | ||
Home-page: https://github.com/modsim/CADET-Python | ||
Author: William Heymann | ||
Author-email: [email protected] | ||
License: UNKNOWN | ||
Description: CADET python is a file based python interface for CADET | ||
CADET still must be downloaded and built from https://github.com/modsim/CADET | ||
|
||
CADET python almost exactly maps to the documented CADET interface except that all dataset names | ||
are lowercase. This simplifies useing the interface. | ||
|
||
This package includes the Cadet class and H5 class. H5 can be used as a simple generic HDF5 interface. | ||
|
||
As an example look at setting column porosity for column 1. From the CADET manual the path for this is | ||
/input/model/unit_001/COL_POROSITY | ||
|
||
In the python interface this becomes | ||
|
||
sim = Cadet() | ||
sim.root.input.model.unit_001.col_porosity = 0.33 | ||
|
||
Once the simulation has been created it must be saved before it can be run | ||
|
||
sim.filename = "/path/to/where/you/want/the/file.hdf5" | ||
sim.save() | ||
|
||
#Next the path to cadet needs to be set before a simulation can be run, if running on windows you need the path to cadet-cli.exe | ||
|
||
sim.cadet_path = '/path/to/cadet-cli' | ||
|
||
#next run the simulation | ||
|
||
print(sim.run()) | ||
|
||
#load the data | ||
sim.load() | ||
|
||
|
||
At this point any data can be read | ||
|
||
If you have a file you want to read that has already been simulated this is also easy to do | ||
|
||
sim = Cadet() | ||
sim.filename = "/path/to/where/you/want/the/file.hdf5" | ||
sim.load() | ||
|
||
Platform: UNKNOWN | ||
Classifier: Programming Language :: Python :: 3 | ||
Classifier: License :: OSI Approved :: BSD License | ||
Classifier: Operating System :: OS Independent | ||
Requires-Python: >=3.6 | ||
Description-Content-Type: text/markdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
README.md | ||
setup.cfg | ||
setup.py | ||
CADETPython.egg-info/PKG-INFO | ||
CADETPython.egg-info/SOURCES.txt | ||
CADETPython.egg-info/dependency_links.txt | ||
CADETPython.egg-info/requires.txt | ||
CADETPython.egg-info/top_level.txt | ||
cadet/__init__.py | ||
cadet/cadet.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
addict | ||
numpy | ||
h5py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
cadet |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setuptools.setup( | ||
name="CADET", | ||
version="0.2", | ||
version="0.3", | ||
author="William Heymann", | ||
author_email="[email protected]", | ||
description="CADET is a python interface to the CADET chromatography simulator", | ||
|