psr-factory 5.0.0b5__py3-none-win_amd64.whl → 5.0.0b7__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 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/cloud/cloud.py CHANGED
@@ -629,6 +629,7 @@ class Client:
629
629
  "lifecycle": case.repository_duration,
630
630
  "versaoInterface": interface_version,
631
631
  "pathPrograma": case.mymodel_program_files,
632
+ "arquivoSaida": case.mymodel_output_file,
632
633
  }
633
634
 
634
635
  if case.budget:
psr/cloud/data.py CHANGED
@@ -102,6 +102,9 @@ class Case:
102
102
  self.mymodel_program_files: Optional[str] = kwargs.get(
103
103
  "mymodel_program_files", None
104
104
  )
105
+ self.mymodel_output_file: Optional[str] = kwargs.get(
106
+ "mymodel_output_file", None
107
+ )
105
108
 
106
109
  @staticmethod
107
110
  def _validate_type(
psr/factory/__init__.py CHANGED
@@ -2,6 +2,6 @@
2
2
  # Unauthorized copying of this file, via any medium is strictly prohibited
3
3
  # Proprietary and confidential
4
4
 
5
- __version__ = "5.0.0b5"
5
+ __version__ = "5.0.0b7"
6
6
 
7
7
  from .api import *
psr/factory/factory.dll CHANGED
Binary file
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
- "MaximumGenerationCapacity": 20.0,
147
- "InstalledCapacity": 20.0,
148
- "SpecificConsumption(1:3,1)": 12.5,
149
- "RefFuels": [fuel2, ],
150
- "RefSystem": system,
151
- })
152
- study.add(plant3)
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.0b5
3
+ Version: 5.0.0b7
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 5.0.0b4)
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 psr-factory
62
+ pip install psr_factory-4.0.35-py3-none-win_amd64.whl
62
63
  ```
63
64
 
64
- Or, if the package directly from the wheel (whl) file:
65
+ Factory will be available to all Python scripts in your system after importing it:
65
66
 
66
- ```bash
67
- pip install psr_factory-5.0.0b4-py3-none-win_amd64.whl
67
+ ```python
68
+ import psr.factory
68
69
  ```
69
70
 
70
- Factory will be available to all Python scripts in your system after importing it:
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,26 +1,26 @@
1
1
  psr/apps/__init__.py,sha256=frSq1WIy5vIdU21xJIGX7U3XoAZRj0pcQmFb-R00b7I,228
2
- psr/apps/apps.py,sha256=8jVxTFZ73KFk_PbY-8rZDD8HBONdCjt-jzsDJyu2P50,6921
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
6
- psr/cloud/cloud.py,sha256=9Z342IJ-PVkiETyO5ksCDTgpT7CXj6Ec6g2S8fGhgTk,58670
7
- psr/cloud/data.py,sha256=nQVpCZhHlHI0HOpqsNhBpotLO37ha5Fl9txWABDnFwQ,4008
6
+ psr/cloud/cloud.py,sha256=BzglbMLufynqk5-A9XbIwDc9hytXGSJ7tiRlLHVnuoU,58725
7
+ psr/cloud/data.py,sha256=0EhiJSwmi-NiWRmxSmHSTMbo024u_7uUXL7bA9j6aFg,4123
8
8
  psr/cloud/desktop.py,sha256=JFroCMEFV1Nz3has74n7OVrGCg2lS7Ev5bcjdw2hRxY,2980
9
9
  psr/cloud/log.py,sha256=Dvhz1enIWlFWeaRK7JAAuZVPfODgoEIRNcHEmbEliyQ,1366
10
10
  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=9DhGFAIGUNDhqLbN4z8TJLUB50HvB8ELFIhcHojeQnA,218
14
+ psr/factory/__init__.py,sha256=PoaFit8kHU-Fr9vJ90s-9TkfHiTsZXja01icIbSLyP0,218
15
15
  psr/factory/api.py,sha256=N5153ZJmZjzLQ0AvRZnSlTu6UmHBQqbYw0UQ69sZHkE,98705
16
- psr/factory/factory.dll,sha256=7pN4nTPdo__8yzmz_Ke1XfTkSx-pMDvCBCl0C0pVSKc,18289488
16
+ psr/factory/factory.dll,sha256=eoXJmRZPa15y1UzwW6gPwIZiymSpEbLJLnDGn2HwkFM,18287440
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=Bx50eR62eK_p8DMmNlfV_mNNfxmEn5n6v78wOCPWGv8,5317968
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=jo71p9NN7dtRqMT76TEbD4S4Lut7p4ejbpu6SoSwg0Y,5034
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.0b5.dist-info/licenses/LICENSE.txt,sha256=N6mqZK2Ft3iXGHj-by_MHC_dJo9qwn0URjakEPys3H4,1089
34
- psr_factory-5.0.0b5.dist-info/METADATA,sha256=A7LHFv3xIen3lIIe467a4jEkSYQoEo8Tq_difrhduys,3104
35
- psr_factory-5.0.0b5.dist-info/WHEEL,sha256=ZjXRCNaQ9YSypEK2TE0LRB0sy2OVXSszb4Sx1XjM99k,97
36
- psr_factory-5.0.0b5.dist-info/top_level.txt,sha256=Jb393O96WQk3b5D1gMcrZBLKJJgZpzNjTPoldUi00ck,4
37
- psr_factory-5.0.0b5.dist-info/RECORD,,
33
+ psr_factory-5.0.0b7.dist-info/licenses/LICENSE.txt,sha256=N6mqZK2Ft3iXGHj-by_MHC_dJo9qwn0URjakEPys3H4,1089
34
+ psr_factory-5.0.0b7.dist-info/METADATA,sha256=gWTglTmUUJoceU5IbdZN4dLCD5O584T7D74zs8ntpNg,3308
35
+ psr_factory-5.0.0b7.dist-info/WHEEL,sha256=ZjXRCNaQ9YSypEK2TE0LRB0sy2OVXSszb4Sx1XjM99k,97
36
+ psr_factory-5.0.0b7.dist-info/top_level.txt,sha256=Jb393O96WQk3b5D1gMcrZBLKJJgZpzNjTPoldUi00ck,4
37
+ psr_factory-5.0.0b7.dist-info/RECORD,,