pyDMS-sorption 0.9.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.
pyDMS/__init__.py ADDED
@@ -0,0 +1,56 @@
1
+ r"""
2
+ pyDMS.dms
3
+ ____ __ ________
4
+ ____ __ __/ __ \/ |/ / ___/
5
+ / __ \/ / / / / / / /|_/ /\__ \
6
+ / /_/ / /_/ / /_/ / / / /___/ /
7
+ / .___/\__, /_____/_/ /_//____/
8
+ /_/ /____/
9
+
10
+ Copyright 2026 Massachusetts Institute of Technology
11
+
12
+ Licensed under the BSD 3-Clause License
13
+
14
+ Redistribution and use in source and binary forms, with or without modification, are permitted
15
+ provided that the following conditions are met:
16
+
17
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions
18
+ and the following disclaimer.
19
+
20
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of
21
+ conditions and the following disclaimer in the documentation and/or other materials provided with
22
+ the distribution.
23
+
24
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to
25
+ endorse or promote products derived from this software without specific prior written permission.
26
+
27
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR
28
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
29
+ FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
30
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
31
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
32
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
33
+ IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
34
+ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
35
+ """
36
+
37
+ import warnings
38
+
39
+ # TODO: streamline versioning
40
+ __version__ = "0.9.0"
41
+
42
+
43
+ def error_in_red(message):
44
+ """
45
+ Red error message
46
+ """
47
+ print("\033[91m" + message + "\033[0m")
48
+ warnings.warn(message, UserWarning)
49
+
50
+
51
+ def warning_in_orange(message):
52
+ """
53
+ Orange warning message
54
+ """
55
+ print("\033[38;2;255;165;0m" + message + "\033[0m")
56
+ warnings.warn(message, UserWarning)