readvars 0.0.1__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.
readvars/__about__.py ADDED
@@ -0,0 +1,56 @@
1
+ # EnergyPlus, Copyright (c) 1996-present, The Board of Trustees of the
2
+ # University of Illinois, The Regents of the University of California, through
3
+ # Lawrence Berkeley National Laboratory (subject to receipt of any required
4
+ # approvals from the U.S. Dept. of Energy), Oak Ridge National Laboratory,
5
+ # managed by UT-Battelle, Alliance for Energy Innovation, LLC, and other
6
+ # contributors. All rights reserved.
7
+ #
8
+ # NOTICE: This Software was developed under funding from the U.S. Department of
9
+ # Energy and the U.S. Government consequently retains certain rights. As such,
10
+ # the U.S. Government has been granted for itself and others acting on its
11
+ # behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
12
+ # Software to reproduce, distribute copies to the public, prepare derivative
13
+ # works, and perform publicly and display publicly, and to permit others to do
14
+ # so.
15
+ #
16
+ # Redistribution and use in source and binary forms, with or without
17
+ # modification, are permitted provided that the following conditions are met:
18
+ #
19
+ # (1) Redistributions of source code must retain the above copyright notice,
20
+ # this list of conditions and the following disclaimer.
21
+ #
22
+ # (2) Redistributions in binary form must reproduce the above copyright notice,
23
+ # this list of conditions and the following disclaimer in the documentation
24
+ # and/or other materials provided with the distribution.
25
+ #
26
+ # (3) Neither the name of the University of California, Lawrence Berkeley
27
+ # National Laboratory, the University of Illinois, U.S. Dept. of Energy nor
28
+ # the names of its contributors may be used to endorse or promote products
29
+ # derived from this software without specific prior written permission.
30
+ #
31
+ # (4) Use of EnergyPlus(TM) Name. If Licensee (i) distributes the software in
32
+ # stand-alone form without changes from the version obtained under this
33
+ # License, or (ii) Licensee makes a reference solely to the software
34
+ # portion of its product, Licensee must refer to the software as
35
+ # "EnergyPlus version X" software, where "X" is the version number Licensee
36
+ # obtained under this License and may not use a different name for the
37
+ # software. Except as specifically required in this Section (4), Licensee
38
+ # shall not use in a company name, a product name, in advertising,
39
+ # publicity, or other promotional activities any name, trade name,
40
+ # trademark, logo, or other designation of "EnergyPlus", "E+", "e+" or
41
+ # confusingly similar designation, without the U.S. Department of Energy's
42
+ # prior written consent.
43
+ #
44
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
45
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
46
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
47
+ # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
48
+ # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
49
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
50
+ # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
51
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
52
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
53
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
54
+ # POSSIBILITY OF SUCH DAMAGE.
55
+
56
+ __version__ = "0.0.1"
readvars/__init__.py ADDED
@@ -0,0 +1,76 @@
1
+ # EnergyPlus, Copyright (c) 1996-present, The Board of Trustees of the
2
+ # University of Illinois, The Regents of the University of California, through
3
+ # Lawrence Berkeley National Laboratory (subject to receipt of any required
4
+ # approvals from the U.S. Dept. of Energy), Oak Ridge National Laboratory,
5
+ # managed by UT-Battelle, Alliance for Energy Innovation, LLC, and other
6
+ # contributors. All rights reserved.
7
+ #
8
+ # NOTICE: This Software was developed under funding from the U.S. Department of
9
+ # Energy and the U.S. Government consequently retains certain rights. As such,
10
+ # the U.S. Government has been granted for itself and others acting on its
11
+ # behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
12
+ # Software to reproduce, distribute copies to the public, prepare derivative
13
+ # works, and perform publicly and display publicly, and to permit others to do
14
+ # so.
15
+ #
16
+ # Redistribution and use in source and binary forms, with or without
17
+ # modification, are permitted provided that the following conditions are met:
18
+ #
19
+ # (1) Redistributions of source code must retain the above copyright notice,
20
+ # this list of conditions and the following disclaimer.
21
+ #
22
+ # (2) Redistributions in binary form must reproduce the above copyright notice,
23
+ # this list of conditions and the following disclaimer in the documentation
24
+ # and/or other materials provided with the distribution.
25
+ #
26
+ # (3) Neither the name of the University of California, Lawrence Berkeley
27
+ # National Laboratory, the University of Illinois, U.S. Dept. of Energy nor
28
+ # the names of its contributors may be used to endorse or promote products
29
+ # derived from this software without specific prior written permission.
30
+ #
31
+ # (4) Use of EnergyPlus(TM) Name. If Licensee (i) distributes the software in
32
+ # stand-alone form without changes from the version obtained under this
33
+ # License, or (ii) Licensee makes a reference solely to the software
34
+ # portion of its product, Licensee must refer to the software as
35
+ # "EnergyPlus version X" software, where "X" is the version number Licensee
36
+ # obtained under this License and may not use a different name for the
37
+ # software. Except as specifically required in this Section (4), Licensee
38
+ # shall not use in a company name, a product name, in advertising,
39
+ # publicity, or other promotional activities any name, trade name,
40
+ # trademark, logo, or other designation of "EnergyPlus", "E+", "e+" or
41
+ # confusingly similar designation, without the U.S. Department of Energy's
42
+ # prior written consent.
43
+ #
44
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
45
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
46
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
47
+ # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
48
+ # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
49
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
50
+ # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
51
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
52
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
53
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
54
+ # POSSIBILITY OF SUCH DAMAGE.
55
+
56
+ """Read and convert EnergyPlus ESO and MTR output files."""
57
+
58
+ from .__about__ import __version__
59
+ from .process import (
60
+ DictionaryRecord,
61
+ ReadVarsFatal,
62
+ convert,
63
+ list_variables,
64
+ readvarseso,
65
+ run,
66
+ )
67
+
68
+ __all__ = [
69
+ "DictionaryRecord",
70
+ "ReadVarsFatal",
71
+ "__version__",
72
+ "convert",
73
+ "list_variables",
74
+ "readvarseso",
75
+ "run",
76
+ ]
readvars/__main__.py ADDED
@@ -0,0 +1,59 @@
1
+ # EnergyPlus, Copyright (c) 1996-present, The Board of Trustees of the
2
+ # University of Illinois, The Regents of the University of California, through
3
+ # Lawrence Berkeley National Laboratory (subject to receipt of any required
4
+ # approvals from the U.S. Dept. of Energy), Oak Ridge National Laboratory,
5
+ # managed by UT-Battelle, Alliance for Energy Innovation, LLC, and other
6
+ # contributors. All rights reserved.
7
+ #
8
+ # NOTICE: This Software was developed under funding from the U.S. Department of
9
+ # Energy and the U.S. Government consequently retains certain rights. As such,
10
+ # the U.S. Government has been granted for itself and others acting on its
11
+ # behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
12
+ # Software to reproduce, distribute copies to the public, prepare derivative
13
+ # works, and perform publicly and display publicly, and to permit others to do
14
+ # so.
15
+ #
16
+ # Redistribution and use in source and binary forms, with or without
17
+ # modification, are permitted provided that the following conditions are met:
18
+ #
19
+ # (1) Redistributions of source code must retain the above copyright notice,
20
+ # this list of conditions and the following disclaimer.
21
+ #
22
+ # (2) Redistributions in binary form must reproduce the above copyright notice,
23
+ # this list of conditions and the following disclaimer in the documentation
24
+ # and/or other materials provided with the distribution.
25
+ #
26
+ # (3) Neither the name of the University of California, Lawrence Berkeley
27
+ # National Laboratory, the University of Illinois, U.S. Dept. of Energy nor
28
+ # the names of its contributors may be used to endorse or promote products
29
+ # derived from this software without specific prior written permission.
30
+ #
31
+ # (4) Use of EnergyPlus(TM) Name. If Licensee (i) distributes the software in
32
+ # stand-alone form without changes from the version obtained under this
33
+ # License, or (ii) Licensee makes a reference solely to the software
34
+ # portion of its product, Licensee must refer to the software as
35
+ # "EnergyPlus version X" software, where "X" is the version number Licensee
36
+ # obtained under this License and may not use a different name for the
37
+ # software. Except as specifically required in this Section (4), Licensee
38
+ # shall not use in a company name, a product name, in advertising,
39
+ # publicity, or other promotional activities any name, trade name,
40
+ # trademark, logo, or other designation of "EnergyPlus", "E+", "e+" or
41
+ # confusingly similar designation, without the U.S. Department of Energy's
42
+ # prior written consent.
43
+ #
44
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
45
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
46
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
47
+ # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
48
+ # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
49
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
50
+ # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
51
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
52
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
53
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
54
+ # POSSIBILITY OF SUCH DAMAGE.
55
+
56
+ if __name__ == "__main__":
57
+ from .process import readvarseso
58
+
59
+ readvarseso()
@@ -0,0 +1,61 @@
1
+ # EnergyPlus, Copyright (c) 1996-present, The Board of Trustees of the
2
+ # University of Illinois, The Regents of the University of California, through
3
+ # Lawrence Berkeley National Laboratory (subject to receipt of any required
4
+ # approvals from the U.S. Dept. of Energy), Oak Ridge National Laboratory,
5
+ # managed by UT-Battelle, Alliance for Energy Innovation, LLC, and other
6
+ # contributors. All rights reserved.
7
+ #
8
+ # NOTICE: This Software was developed under funding from the U.S. Department of
9
+ # Energy and the U.S. Government consequently retains certain rights. As such,
10
+ # the U.S. Government has been granted for itself and others acting on its
11
+ # behalf a paid-up, nonexclusive, irrevocable, worldwide license in the
12
+ # Software to reproduce, distribute copies to the public, prepare derivative
13
+ # works, and perform publicly and display publicly, and to permit others to do
14
+ # so.
15
+ #
16
+ # Redistribution and use in source and binary forms, with or without
17
+ # modification, are permitted provided that the following conditions are met:
18
+ #
19
+ # (1) Redistributions of source code must retain the above copyright notice,
20
+ # this list of conditions and the following disclaimer.
21
+ #
22
+ # (2) Redistributions in binary form must reproduce the above copyright notice,
23
+ # this list of conditions and the following disclaimer in the documentation
24
+ # and/or other materials provided with the distribution.
25
+ #
26
+ # (3) Neither the name of the University of California, Lawrence Berkeley
27
+ # National Laboratory, the University of Illinois, U.S. Dept. of Energy nor
28
+ # the names of its contributors may be used to endorse or promote products
29
+ # derived from this software without specific prior written permission.
30
+ #
31
+ # (4) Use of EnergyPlus(TM) Name. If Licensee (i) distributes the software in
32
+ # stand-alone form without changes from the version obtained under this
33
+ # License, or (ii) Licensee makes a reference solely to the software
34
+ # portion of its product, Licensee must refer to the software as
35
+ # "EnergyPlus version X" software, where "X" is the version number Licensee
36
+ # obtained under this License and may not use a different name for the
37
+ # software. Except as specifically required in this Section (4), Licensee
38
+ # shall not use in a company name, a product name, in advertising,
39
+ # publicity, or other promotional activities any name, trade name,
40
+ # trademark, logo, or other designation of "EnergyPlus", "E+", "e+" or
41
+ # confusingly similar designation, without the U.S. Department of Energy's
42
+ # prior written consent.
43
+ #
44
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
45
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
46
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
47
+ # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
48
+ # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
49
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
50
+ # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
51
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
52
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
53
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
54
+ # POSSIBILITY OF SUCH DAMAGE.
55
+
56
+ from readvars.process import readvarseso
57
+
58
+
59
+ def readvars() -> None:
60
+ """Run the ReadVarsESO-compatible command-line interface."""
61
+ readvarseso()