psr-factory 5.0.0b24__py3-none-win_amd64.whl → 5.0.0b25__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/factory/__init__.py +1 -1
- psr/factory/api.py +1 -1
- psr/factory/factory.dll +0 -0
- psr/factory/factory.pmd +1 -2
- psr/factory/libcurl-x64.dll +0 -0
- {psr_factory-5.0.0b24.dist-info → psr_factory-5.0.0b25.dist-info}/METADATA +67 -1
- {psr_factory-5.0.0b24.dist-info → psr_factory-5.0.0b25.dist-info}/RECORD +10 -10
- {psr_factory-5.0.0b24.dist-info → psr_factory-5.0.0b25.dist-info}/WHEEL +0 -0
- {psr_factory-5.0.0b24.dist-info → psr_factory-5.0.0b25.dist-info}/licenses/LICENSE.txt +0 -0
- {psr_factory-5.0.0b24.dist-info → psr_factory-5.0.0b25.dist-info}/top_level.txt +0 -0
psr/factory/__init__.py
CHANGED
psr/factory/api.py
CHANGED
@@ -673,7 +673,7 @@ class Value(_BaseObject):
|
|
673
673
|
_err.handler())
|
674
674
|
if _err.code != 0:
|
675
675
|
raise FactoryException(_err.what)
|
676
|
-
return int(
|
676
|
+
return int(long_value.value)
|
677
677
|
elif var_type == ValueType.FLOAT32.value:
|
678
678
|
float_value = ctypes.c_float()
|
679
679
|
factorylib.lib.psrd_value_get_float32(self._hdr,
|
psr/factory/factory.dll
CHANGED
Binary file
|
psr/factory/factory.pmd
CHANGED
@@ -5533,7 +5533,6 @@ DEFINE_MODEL MODL:SDDP_Execution_Options
|
|
5533
5533
|
PARM INTEGER PENV
|
5534
5534
|
PARM INTEGER PLSS
|
5535
5535
|
PARM INTEGER ITAL
|
5536
|
-
PARM INTEGER GSNP
|
5537
5536
|
PARM INTEGER GSFI DEFAULT 0
|
5538
5537
|
PARM INTEGER WMPS
|
5539
5538
|
PARM INTEGER WSVF
|
@@ -6338,7 +6337,7 @@ DEFINE_MODEL MODL:SDDP_LineShunt
|
|
6338
6337
|
DIMENSION block
|
6339
6338
|
VECTOR DATE Data @addyear_modification
|
6340
6339
|
VECTOR INTEGER Existing INDEX Data DEFAULT 0
|
6341
|
-
VECTOR INTEGER Decommissioned DEFAULT 0 INDEX Data
|
6340
|
+
VECTOR INTEGER Decommissioned DEFAULT 0 INDEX Data
|
6342
6341
|
VECTOR REAL Gfrom INDEX Data DEFAULT 0
|
6343
6342
|
VECTOR REAL Bfrom INDEX Data DEFAULT 0
|
6344
6343
|
VECTOR REAL Gto INDEX Data DEFAULT 0
|
psr/factory/libcurl-x64.dll
CHANGED
Binary file
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: psr-factory
|
3
|
-
Version: 5.0.
|
3
|
+
Version: 5.0.0b25
|
4
4
|
Summary: PSR database management module.
|
5
5
|
Author-email: "PSR Inc." <psrfactory@psr-inc.com>
|
6
6
|
License-Expression: MIT
|
@@ -55,3 +55,69 @@ Requires-Dist: pefile; extra == "all"
|
|
55
55
|
Requires-Dist: boto3; extra == "all"
|
56
56
|
Requires-Dist: botocore; extra == "all"
|
57
57
|
Dynamic: license-file
|
58
|
+
|
59
|
+
PSR Factory (version 4.0.38)
|
60
|
+
============================
|
61
|
+
|
62
|
+
Factory is a library that helps to manage SDDP cases.
|
63
|
+
It contains functions that create, load, and save studies, and also functions that create,
|
64
|
+
access, and modify objects in a study.
|
65
|
+
|
66
|
+
|
67
|
+
Installation
|
68
|
+
------------
|
69
|
+
|
70
|
+
### System-wide installation
|
71
|
+
|
72
|
+
Open the command prompt and run the following command:
|
73
|
+
|
74
|
+
```bash
|
75
|
+
pip install psr_factory-4.0.38-py3-none-win_amd64.whl
|
76
|
+
```
|
77
|
+
|
78
|
+
Factory will be available to all Python scripts in your system after importing it:
|
79
|
+
|
80
|
+
```python
|
81
|
+
import psr.factory
|
82
|
+
```
|
83
|
+
|
84
|
+
### Local/project-specific usage
|
85
|
+
|
86
|
+
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:
|
87
|
+
|
88
|
+
```python
|
89
|
+
import sys
|
90
|
+
sys.path.append(r"C:\path\to\factory")
|
91
|
+
import psr.factory
|
92
|
+
```
|
93
|
+
|
94
|
+
|
95
|
+
Usage sample
|
96
|
+
------------
|
97
|
+
|
98
|
+
```python
|
99
|
+
import psr.factory
|
100
|
+
|
101
|
+
study = psr.factory.load_study(r"C:\temp\my\study")
|
102
|
+
system_1 = study.find("System.*")[0]
|
103
|
+
|
104
|
+
battery = psr.factory.create("Battery")
|
105
|
+
battery.code = 1
|
106
|
+
battery.name = "Battery 1"
|
107
|
+
battery.set("InstalledCapacity", 10.0)
|
108
|
+
battery.set("RefSystem", system_1)
|
109
|
+
study.add(battery)
|
110
|
+
|
111
|
+
study.save(r"C:\temp\my\updated_study")
|
112
|
+
```
|
113
|
+
|
114
|
+
|
115
|
+
Full documentation
|
116
|
+
------------------
|
117
|
+
|
118
|
+
The full documentation and reference is available at [https://docs.psr-inc.com/factory/](https://docs.psr-inc.com/manual/factory/).
|
119
|
+
|
120
|
+
Releases
|
121
|
+
--------
|
122
|
+
|
123
|
+
New releases can be found in the release notes at [https://psrenergy-docs.github.io/factory/releases.html](https://psrenergy-docs.github.io/factory/releases.html).
|
@@ -16,13 +16,13 @@ psr/execqueue/config.py,sha256=3KVwASOgRlymOSPeabotgBdLVB5sPKnPQ9og2q3LQfw,1418
|
|
16
16
|
psr/execqueue/db.py,sha256=sNr_StNEgZZQCKcyCWiB1WrQJIhE9UvLUxPA2tWiXGs,8498
|
17
17
|
psr/execqueue/server.py,sha256=nW-Hi5zWHgPeLicASKJND7u6rz6eqwC16k91tUUQPxk,15741
|
18
18
|
psr/execqueue/watcher.py,sha256=7dZZm9TiYVF7SdU0c_6Vq2_SZRobxgcspfBMzKFSsjQ,5637
|
19
|
-
psr/factory/__init__.py,sha256=
|
20
|
-
psr/factory/api.py,sha256=
|
21
|
-
psr/factory/factory.dll,sha256=
|
22
|
-
psr/factory/factory.pmd,sha256=
|
19
|
+
psr/factory/__init__.py,sha256=eivqKs206U-hkQ9QEwzWdTqDXyZweY_iabqv4sNiJa4,219
|
20
|
+
psr/factory/api.py,sha256=_M0eJs4JmQ57QxUtbIPQPvmd9y7ddLyketpFJZkzgL8,104266
|
21
|
+
psr/factory/factory.dll,sha256=88biWRjQLIMfs6tmWX8LDzK0GDXXRUdhABn0JVNApfs,18316624
|
22
|
+
psr/factory/factory.pmd,sha256=kr5xf2knYu_SJeyCsmoyYVgFwd4-VURi28rno40GIRY,250936
|
23
23
|
psr/factory/factory.pmk,sha256=THhHxBKTBchru3fxTCos-pBAPJJnuug8T2dw0xniDfQ,580185
|
24
24
|
psr/factory/factorylib.py,sha256=o5Irbw6k-yIOJVUtDu2YYqw2x16P2LmCdouImwSssdw,28290
|
25
|
-
psr/factory/libcurl-x64.dll,sha256=
|
25
|
+
psr/factory/libcurl-x64.dll,sha256=2wmYqNoIpP8kkfgqUQLA2Q3xUizFi7ws5T1_QQGihA0,5317968
|
26
26
|
psr/factory/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
27
27
|
psr/factory/samples/__init__.py,sha256=xxOch5Fokzjy571a6OHD87FWM17qKgvfcbr8xn-n36I,80
|
28
28
|
psr/factory/samples/sddp_case01.py,sha256=eLhtOAS2STl9-H7Nr5VUG4ATO0bVcn-CJtCn3Rf-vpI,5044
|
@@ -33,8 +33,8 @@ psr/psrfcommon/tempfile.py,sha256=5S13wa2DCLYTUdwbLm_KMBRnDRJ0WDlu8GO2BmZoNdg,39
|
|
33
33
|
psr/runner/__init__.py,sha256=kI9HDX-B_LMQJUHHylFHas2rNpWfNNa0pZXoIvX_Alw,230
|
34
34
|
psr/runner/runner.py,sha256=hCVH62HAZK_M9YUiHQgqCkMevN17utegjfRIw49MdvM,27542
|
35
35
|
psr/runner/version.py,sha256=mch2Y8anSXGMn9w72Z78PhSRhOyn55EwaoLAYhY4McE,194
|
36
|
-
psr_factory-5.0.
|
37
|
-
psr_factory-5.0.
|
38
|
-
psr_factory-5.0.
|
39
|
-
psr_factory-5.0.
|
40
|
-
psr_factory-5.0.
|
36
|
+
psr_factory-5.0.0b25.dist-info/licenses/LICENSE.txt,sha256=N6mqZK2Ft3iXGHj-by_MHC_dJo9qwn0URjakEPys3H4,1089
|
37
|
+
psr_factory-5.0.0b25.dist-info/METADATA,sha256=kIu717-ZWePvHSmbCA-pC0qL4vI6CCZlmKMT3KLLwOw,3957
|
38
|
+
psr_factory-5.0.0b25.dist-info/WHEEL,sha256=ZjXRCNaQ9YSypEK2TE0LRB0sy2OVXSszb4Sx1XjM99k,97
|
39
|
+
psr_factory-5.0.0b25.dist-info/top_level.txt,sha256=Jb393O96WQk3b5D1gMcrZBLKJJgZpzNjTPoldUi00ck,4
|
40
|
+
psr_factory-5.0.0b25.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|