ep-sdk-4pd 1.0.4__tar.gz → 1.0.6__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ep_sdk_4pd
3
- Version: 1.0.4
3
+ Version: 1.0.6
4
4
  Summary: 4paradigm Electricity Platform Service SDK Library for Python
5
5
  Home-page: https://gitlab.4pd.io/electricityproject/electricity-platform-sdk
6
6
  Author: 4paradigm Electricity Platform SDK
@@ -0,0 +1 @@
1
+ __version__ = '1.0.6'
@@ -23,7 +23,7 @@ class EpData:
23
23
 
24
24
  @staticmethod
25
25
  def get_history_data(
26
- scope=None,
26
+ scope="weather,plant,market",
27
27
  days=0
28
28
  ):
29
29
  # 最晚时间为系统时间 D-2
@@ -76,7 +76,7 @@ class EpData:
76
76
 
77
77
  @staticmethod
78
78
  def get_predict_data(
79
- scope,
79
+ scope="weather,plant,market",
80
80
  is_test=False,
81
81
  test_time=None,
82
82
  ):
@@ -147,8 +147,10 @@ class EpSystem:
147
147
  script_strategy_id: int = None
148
148
  ):
149
149
  if (strategy_id is None
150
- or script_strategy_id is None):
151
- return False
150
+ or script_strategy_id is None
151
+ ):
152
+ strategy_id = os.getenv('STRATEGY_ID')
153
+ script_strategy_id = os.getenv('SCRIPT_STRATEGY_ID')
152
154
 
153
155
  request = CallTrainDoneRequest(strategy_id=strategy_id,
154
156
  script_strategy_id=script_strategy_id)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ep_sdk_4pd
3
- Version: 1.0.4
3
+ Version: 1.0.6
4
4
  Summary: 4paradigm Electricity Platform Service SDK Library for Python
5
5
  Home-page: https://gitlab.4pd.io/electricityproject/electricity-platform-sdk
6
6
  Author: 4paradigm Electricity Platform SDK
@@ -8,7 +8,7 @@ DESCRIPTION = '4paradigm Electricity Platform Service SDK Library for Python'
8
8
  AUTHOR = '4paradigm Electricity Platform SDK'
9
9
  AUTHOR_EMAIL = ''
10
10
  URL = 'https://gitlab.4pd.io/electricityproject/electricity-platform-sdk'
11
- VERSION = '1.0.4'
11
+ VERSION = '1.0.6'
12
12
  REQUIRES = ['requests']
13
13
 
14
14
  LONG_DESCRIPTION = ''
@@ -4,7 +4,7 @@ from ep_sdk_4pd.ep_data import EpData
4
4
  def test_history_data():
5
5
  print('-------------test_history_data-------------')
6
6
 
7
- data = EpData.get_history_data(scope="weather", days=2)
7
+ data = EpData.get_history_data(days=2)
8
8
  print(data)
9
9
  print('-------------------------------------')
10
10
 
@@ -1 +0,0 @@
1
- __version__ = '1.0.4'
File without changes
File without changes