AutoPumping 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,72 @@
1
+ Metadata-Version: 2.4
2
+ Name: AutoPumping
3
+ Version: 0.1.0
4
+ Summary: A tool to automate pumping of vacuum systems
5
+ Author-email: Cameron Devine <cameron.devine@alleninstitute.org>
6
+ License-Expression: BSD-3-Clause
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Operating System :: OS Independent
9
+ Classifier: Intended Audience :: Science/Research
10
+ Classifier: Topic :: Scientific/Engineering :: Physics
11
+ Requires-Python: >=3.10
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE
14
+ Requires-Dist: pydantic
15
+ Requires-Dist: pyyaml
16
+ Requires-Dist: networkx
17
+ Requires-Dist: nicegui
18
+ Requires-Dist: pyvis
19
+ Provides-Extra: dev
20
+ Requires-Dist: pytest; extra == "dev"
21
+ Requires-Dist: bump-my-version; extra == "dev"
22
+ Provides-Extra: docs
23
+ Requires-Dist: jsonschema2md; extra == "docs"
24
+ Dynamic: license-file
25
+
26
+ # Auto Pumping
27
+
28
+ This Python package is meant to provide a generic system for automating high-vacuum pumping systems.
29
+
30
+ ## Config
31
+
32
+ To support arbitrary pumping systems, a configuration file format was created where all valid valve, pump, and stage[^1] transition can be enumerated. Using this configuration file, the safety of any given valve transition can be evaluated, and the system automated. This configuration file format is documented [here](docs/config.md).
33
+
34
+ ## Solver
35
+
36
+ To support automated pumping of the vacuum system a solver was implemented using the information in the configuration file. This information is used to build a directed graph of all valid pumping system states where discretized pressure is included. After this directed graph is built, Dijkstra's algorithm is used for find the optimal method for pumping or venting the system, or reaching any other state. The built graph can be viewed by running: `python -m auto_pumping -c config/config.yaml network`.
37
+
38
+ ## UI
39
+
40
+ A NiceGUI based UI is also included. It is automatically built based on the configuration file. A dummy pumping system is available as an example and can be run with: `python -m auto_pumping -c config/config.yaml run`.
41
+
42
+ ## Getting Started
43
+
44
+ To implement automated pumping for your system subclass the `AutoPumping` class and define the following methods:
45
+
46
+ * `get_valve_state(valve)`
47
+ * `actuate_valve(valve, state)`
48
+ * `get_pump_state(pump)`
49
+ * `set_pump(pump, state)`
50
+ * `get_pump_current(pump)`
51
+ * `get_pump_voltage(pump)`
52
+ * `get_pump_flow(pump)`
53
+ * `get_pump_speed(pump)`
54
+ * `get_gauge_pressure(gauge)`
55
+ * `get_stage_position()`
56
+ * `move_stage(position)`
57
+
58
+ If you would like to add more fields to the configuration file for your specific hardware, subclass the `Config` class and set the `AutoPumping.CONFIG_CLASS` variable to your new config class.
59
+
60
+ To allow the system to be easily started, you can use the provided `main()` function. Simply run `main(<your_auto_pumping_subclass>)`, for example:
61
+
62
+ ```python
63
+ from auto_pumping.__main__ import main
64
+
65
+
66
+ if __name__ == "__main__":
67
+ main(<your_auto_pumping_subclass>)
68
+ ```
69
+
70
+ Finally, a diagram can be added to the UI by setting the `AutoPumping.DIAGRAM_PATH` variable to the path to a diagram image of your system.
71
+
72
+ [^1]: this library was originally written for a custom microscope system.
@@ -0,0 +1,13 @@
1
+ auto_pumping/__init__.py,sha256=n_qKZcvuPqE_LTrNT-Q5OY2k_T1oejBa-3ZuEV4wzUQ,3116
2
+ auto_pumping/__main__.py,sha256=EiiYghP6LZ7pAitFG4rX4PkHmlFgUdoy5rjm7mKgS-g,995
3
+ auto_pumping/config.py,sha256=IMhCdM8j6Ylc3--qQAd2PB84kwg06ww1PLVtgb0tRqA,16207
4
+ auto_pumping/dummy.py,sha256=3tOhokI9HzM5fByX75vWCZHZUvfgMHN73o7iJjYp9Ck,1318
5
+ auto_pumping/executor.py,sha256=hAlrHPG_zrYtfd2x8gO3YpFBEsRXxTp1o_fKZsisiSk,6606
6
+ auto_pumping/graph.py,sha256=COU8MHNBp3oHuvC5boRWwC2_txRaG2JqXCbPI_h6W9I,14994
7
+ auto_pumping/safety.py,sha256=etZH-50Wn3Y9vzwsItnteR_5CcwW5LZb7Jg9RO394mM,3455
8
+ auto_pumping/ui.py,sha256=R1gWvYFyV72mEwZtJFPwIfiMhC5NWGy1NjntSrFoud4,30169
9
+ autopumping-0.1.0.dist-info/licenses/LICENSE,sha256=vUYBQ-l3oXhkyJfeP2Zy7RufJ2Md8RHWKQaVxh9oYm0,1502
10
+ autopumping-0.1.0.dist-info/METADATA,sha256=otaNRi6nT_JMGmV8EvDY1AVWq0RCdTeTsNy4lVff4C4,3121
11
+ autopumping-0.1.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
12
+ autopumping-0.1.0.dist-info/top_level.txt,sha256=SeZ5sWelSkTZ89QQX65re2wzw2Tuq4U2BcOPFgaKqs4,13
13
+ autopumping-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, Allen Institute
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1 @@
1
+ auto_pumping