psr-factory 5.0.0b5__py3-none-win_amd64.whl → 5.0.0b6__py3-none-win_amd64.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.
- psr/apps/apps.py +1 -8
- psr/factory/__init__.py +1 -1
- psr/factory/factory.dll +0 -0
- psr/factory/libcurl-x64.dll +0 -0
- psr/factory/samples/sddp_case01.py +10 -8
- {psr_factory-5.0.0b5.dist-info → psr_factory-5.0.0b6.dist-info}/METADATA +13 -8
- {psr_factory-5.0.0b5.dist-info → psr_factory-5.0.0b6.dist-info}/RECORD +10 -10
- {psr_factory-5.0.0b5.dist-info → psr_factory-5.0.0b6.dist-info}/WHEEL +0 -0
- {psr_factory-5.0.0b5.dist-info → psr_factory-5.0.0b6.dist-info}/licenses/LICENSE.txt +0 -0
- {psr_factory-5.0.0b5.dist-info → psr_factory-5.0.0b6.dist-info}/top_level.txt +0 -0
psr/apps/apps.py
CHANGED
@@ -66,14 +66,6 @@ def get_latest_version_and_path(program_name: str) -> Tuple[str, str]:
|
|
66
66
|
|
67
67
|
def get_latest_version(program_name: str) -> "AppRunner":
|
68
68
|
program_name_lower = program_name.lower()
|
69
|
-
facade_names = {
|
70
|
-
"sddp": SDDP,
|
71
|
-
"optgen": OptGen,
|
72
|
-
"ncp": NCP,
|
73
|
-
"graph": Graph,
|
74
|
-
"psrcloud": PSRCloud,
|
75
|
-
"tsl": TSL,
|
76
|
-
}
|
77
69
|
version, path = get_latest_version_and_path(program_name)
|
78
70
|
if program_name_lower == "sddp":
|
79
71
|
return SDDP(path)
|
@@ -188,6 +180,7 @@ class TSL(AppRunner):
|
|
188
180
|
def version(self) -> str:
|
189
181
|
return self._version
|
190
182
|
|
183
|
+
|
191
184
|
class PSRCloud(AppRunner):
|
192
185
|
def __init__(self, psrcloud_path: str, version: str):
|
193
186
|
super().__init__()
|
psr/factory/__init__.py
CHANGED
psr/factory/factory.dll
CHANGED
Binary file
|
psr/factory/libcurl-x64.dll
CHANGED
Binary file
|
@@ -142,14 +142,16 @@ def create_case01(legacy: bool) -> psr.factory.Study:
|
|
142
142
|
plant3 = plant2.clone()
|
143
143
|
plant3.code = 3
|
144
144
|
plant3.name = "Thermal 3"
|
145
|
-
plant3.from_dict({
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
145
|
+
# plant3.from_dict({
|
146
|
+
# "MaximumGenerationCapacity": 20.0,
|
147
|
+
# "InstalledCapacity": 20.0,
|
148
|
+
# "SpecificConsumptionSegment(1)": 100.0,
|
149
|
+
# "SpecificConsumptionSegment(2:3)": 0.0,
|
150
|
+
# "SpecificConsumption(1:3,1)": 12.5,
|
151
|
+
# "RefFuels": [fuel2, ],
|
152
|
+
# "RefSystem": system,
|
153
|
+
# })
|
154
|
+
# study.add(plant3)
|
153
155
|
|
154
156
|
return study
|
155
157
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: psr-factory
|
3
|
-
Version: 5.0.
|
3
|
+
Version: 5.0.0b6
|
4
4
|
Summary: PSR database management module.
|
5
5
|
Author-email: "PSR Inc." <psrfactory@psr-inc.com>
|
6
6
|
License-Expression: MIT
|
@@ -43,7 +43,7 @@ Requires-Dist: boto3; extra == "all"
|
|
43
43
|
Requires-Dist: botocore; extra == "all"
|
44
44
|
Dynamic: license-file
|
45
45
|
|
46
|
-
PSR Factory (version
|
46
|
+
PSR Factory (version 4.0.35)
|
47
47
|
============================
|
48
48
|
|
49
49
|
Factory is a library that helps to manage SDDP cases.
|
@@ -57,19 +57,24 @@ Installation
|
|
57
57
|
### System-wide installation
|
58
58
|
|
59
59
|
Open the command prompt and run the following command:
|
60
|
+
|
60
61
|
```bash
|
61
|
-
pip install
|
62
|
+
pip install psr_factory-4.0.35-py3-none-win_amd64.whl
|
62
63
|
```
|
63
64
|
|
64
|
-
|
65
|
+
Factory will be available to all Python scripts in your system after importing it:
|
65
66
|
|
66
|
-
```
|
67
|
-
|
67
|
+
```python
|
68
|
+
import psr.factory
|
68
69
|
```
|
69
70
|
|
70
|
-
|
71
|
+
### Local/project-specific usage
|
72
|
+
|
73
|
+
Copy the folder `psr` and its contents to your project folder or a specific folder (e.g., `C:\path\to\factory`). Then, in your Python script, add the following lines:
|
71
74
|
|
72
75
|
```python
|
76
|
+
import sys
|
77
|
+
sys.path.append(r"C:\path\to\factory")
|
73
78
|
import psr.factory
|
74
79
|
```
|
75
80
|
|
@@ -97,7 +102,7 @@ study.save(r"C:\temp\my\updated_study")
|
|
97
102
|
Full documentation
|
98
103
|
------------------
|
99
104
|
|
100
|
-
The full documentation and reference is available at [https://docs.psr-inc.com/factory/](https://docs.psr-inc.com/factory/).
|
105
|
+
The full documentation and reference is available at [https://docs.psr-inc.com/factory/](https://docs.psr-inc.com/manual/factory/).
|
101
106
|
|
102
107
|
Releases
|
103
108
|
--------
|
@@ -1,5 +1,5 @@
|
|
1
1
|
psr/apps/__init__.py,sha256=frSq1WIy5vIdU21xJIGX7U3XoAZRj0pcQmFb-R00b7I,228
|
2
|
-
psr/apps/apps.py,sha256=
|
2
|
+
psr/apps/apps.py,sha256=V8Ewht7P1I-3sSkV3dnbxbLjF2slxPjcmtzmVaLjiNY,6746
|
3
3
|
psr/apps/version.py,sha256=vs459L6JsatAkUxna7BNG-vMCaXpO1Ye8c1bmkEx4U4,194
|
4
4
|
psr/cloud/__init__.py,sha256=inZMwG7O9Fca9hg1BhqYObOYtTTJOkpuTIuXnkHJZkI,246
|
5
5
|
psr/cloud/aws.py,sha256=ro8kBNVxpGDXgZ5haceqX-MAD-0F5KFDJJ4M6rRvwS8,9915
|
@@ -11,16 +11,16 @@ psr/cloud/status.py,sha256=vcI4B9S6wCt9maT5NNrVwYaEgGIvy6kkC1UVpJjYbtw,3607
|
|
11
11
|
psr/cloud/tempfile.py,sha256=1IOeye0eKWnmBynK5K5FMWiTaEVhn4GbQ8_y0THEva0,3893
|
12
12
|
psr/cloud/version.py,sha256=Wxm5oXHAe8U9QoQpN5WIlzAhFR9bGfvIITFeq8QPBLw,192
|
13
13
|
psr/cloud/xml.py,sha256=ac2lyflOQm8khPvJn0zmI26I4sfUDY6A_OTsxzbMQEs,1896
|
14
|
-
psr/factory/__init__.py,sha256=
|
14
|
+
psr/factory/__init__.py,sha256=oolMtQ0Q6rI2H8HW-cKvYa41n7Er-_u1l-icCzgGVTI,218
|
15
15
|
psr/factory/api.py,sha256=N5153ZJmZjzLQ0AvRZnSlTu6UmHBQqbYw0UQ69sZHkE,98705
|
16
|
-
psr/factory/factory.dll,sha256=
|
16
|
+
psr/factory/factory.dll,sha256=nxpF9Gy-kz88uvnZ9XuJPTMv83RY8TTjy59gZ4PuyvE,18286416
|
17
17
|
psr/factory/factory.pmd,sha256=gZnS1mnb1iA1XtNA1JfALM9rKdFLFBbwAJHF2_PxKAk,243405
|
18
18
|
psr/factory/factory.pmk,sha256=3xDhU0fpUz6dSn29E8GkXEmCOSadnq7cJPcNPbEyFfI,579203
|
19
19
|
psr/factory/factorylib.py,sha256=xnhCFTo4DpU0e5oHtIWMmc-kk6ThtNAUI3cxpDXrBKE,27497
|
20
|
-
psr/factory/libcurl-x64.dll,sha256=
|
20
|
+
psr/factory/libcurl-x64.dll,sha256=02koNrrHmQQQiFrOjK33fbuNdlYgBBMyU8LJksmN0fs,5317968
|
21
21
|
psr/factory/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
22
22
|
psr/factory/samples/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
23
|
-
psr/factory/samples/sddp_case01.py,sha256=
|
23
|
+
psr/factory/samples/sddp_case01.py,sha256=u_91kfbTwZRnMuiXllEi7nmIdWw720CavaqKwufivEw,5152
|
24
24
|
psr/factory/samples/sddp_case21.py,sha256=-9Wk2ntjIC1-PrQDXDcnWUjV0OF9Xi_IREFb2pUWSi4,8797
|
25
25
|
psr/factory/samples/sddp_sample_case01.py,sha256=49C7w86EQT5IuguaNvt7mz7OqbVRhov5c3zb7_l12FE,4994
|
26
26
|
psr/factory/samples/sddp_sample_case21.py,sha256=La9I6PcyEUCXDJMB0Mtn98Pl2V0RGPMEHAhGpboPvU8,8757
|
@@ -30,8 +30,8 @@ psr/psrfcommon/tempfile.py,sha256=5S13wa2DCLYTUdwbLm_KMBRnDRJ0WDlu8GO2BmZoNdg,39
|
|
30
30
|
psr/runner/__init__.py,sha256=kI9HDX-B_LMQJUHHylFHas2rNpWfNNa0pZXoIvX_Alw,230
|
31
31
|
psr/runner/runner.py,sha256=esfZbyxN_32p_ufZi7azZwmUKE3fTMrXyoyFkuZX3dI,26938
|
32
32
|
psr/runner/version.py,sha256=mch2Y8anSXGMn9w72Z78PhSRhOyn55EwaoLAYhY4McE,194
|
33
|
-
psr_factory-5.0.
|
34
|
-
psr_factory-5.0.
|
35
|
-
psr_factory-5.0.
|
36
|
-
psr_factory-5.0.
|
37
|
-
psr_factory-5.0.
|
33
|
+
psr_factory-5.0.0b6.dist-info/licenses/LICENSE.txt,sha256=N6mqZK2Ft3iXGHj-by_MHC_dJo9qwn0URjakEPys3H4,1089
|
34
|
+
psr_factory-5.0.0b6.dist-info/METADATA,sha256=eEFkU8iAXWUWdtZVdPMEKpIjWODH677zVF-Qj7AaXcI,3308
|
35
|
+
psr_factory-5.0.0b6.dist-info/WHEEL,sha256=ZjXRCNaQ9YSypEK2TE0LRB0sy2OVXSszb4Sx1XjM99k,97
|
36
|
+
psr_factory-5.0.0b6.dist-info/top_level.txt,sha256=Jb393O96WQk3b5D1gMcrZBLKJJgZpzNjTPoldUi00ck,4
|
37
|
+
psr_factory-5.0.0b6.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|