wizata-dsapi 1.2.4__py3-none-any.whl → 1.2.6__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.
wizata_dsapi/request.py CHANGED
@@ -15,25 +15,6 @@ filter_map = {
15
15
  '!=': 'neq'
16
16
  }
17
17
 
18
-
19
- class RequestGroupMap:
20
- """
21
- Define a mapping between a set of datapoints and their corresponding event datapoint.
22
- :ivar event_hardware_id str: hardware id of the datapoint identifying event inside a group.
23
- :ivar event_datapoint: datapoint complete definition corresponding to event_hardware_id.
24
- :ivar datapoints_hardware_ids list: list of all related datapoints.
25
- :ivar datapoints dict: dict with key as hardware id and value datapoint for all mapped datapoints.
26
- """
27
-
28
- def __init__(self,
29
- event_hardware_id: str,
30
- datapoints_hardware_ids: list):
31
- self.event_hardware_id = event_hardware_id
32
- self.datapoints_hardware_ids = datapoints_hardware_ids
33
- self.event_datapoint = None
34
- self.datapoints = {}
35
-
36
-
37
18
  class RequestGroup:
38
19
  """
39
20
  Define a group statement within a structured query.
@@ -63,7 +44,7 @@ class RequestGroup:
63
44
  raise ValueError(f"please specify system_id in {my_dict}")
64
45
 
65
46
  group = RequestGroup(
66
- system_id=["system_id"]
47
+ system_id=my_dict["system_id"]
67
48
  )
68
49
 
69
50
  # set group_by
@@ -87,6 +68,26 @@ class RequestGroup:
87
68
  return group
88
69
 
89
70
 
71
+ class RequestGroupMap:
72
+ """
73
+ Define a mapping between a set of datapoints and their corresponding event datapoint.
74
+ :ivar event_hardware_id str: hardware id of the datapoint identifying event inside a group.
75
+ :ivar event_datapoint: datapoint complete definition corresponding to event_hardware_id.
76
+ :ivar datapoints_hardware_ids list: list of all related datapoints.
77
+ :ivar datapoints dict: dict with key as hardware id and value datapoint for all mapped datapoints.
78
+ """
79
+
80
+ def __init__(self,
81
+ event_hardware_id: str,
82
+ datapoints_hardware_ids: list,
83
+ group: RequestGroup = None):
84
+ self.event_hardware_id = event_hardware_id
85
+ self.datapoints_hardware_ids = datapoints_hardware_ids
86
+ self.event_datapoint = None
87
+ self.datapoints = {}
88
+ self.group = group
89
+
90
+
90
91
  class Request(ApiDto):
91
92
  """
92
93
  request defines how to fetch data from time-series database.
wizata_dsapi/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "1.2.4"
1
+ __version__ = "1.2.6"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wizata-dsapi
3
- Version: 1.2.4
3
+ Version: 1.2.6
4
4
  Summary: Wizata Data Science Toolkit
5
5
  Author: Wizata S.A.
6
6
  Author-email: info@wizata.com
@@ -23,7 +23,7 @@ wizata_dsapi/pipeline.py,sha256=WDJeOxPZJiYW1qwTNZUm3jom2epIxqrSoiUwcrTF9EE,3130
23
23
  wizata_dsapi/pipeline_deployment.py,sha256=grekBaxUK0EhL9w7lDB8vNuW_wzLnHVm9Mq8Lkbkguk,1722
24
24
  wizata_dsapi/pipeline_image.py,sha256=M3FOr45dJIAEvsmXPpMD8JZ09k5-YpW9PRYEWJqptcI,5272
25
25
  wizata_dsapi/plot.py,sha256=SPGKFWWYNcRvHcqvvnPIIIBKsd5UwhdsxLW7b2dG2rs,2360
26
- wizata_dsapi/request.py,sha256=uZCTNiDz8Y2vq2e1UEXcBaNSCn4m7JaIh8ZiqqmKq7I,26209
26
+ wizata_dsapi/request.py,sha256=WTwctIzHLLtSSixcXBsNyoyLqdZk8dZdaCTVbejSvIQ,26287
27
27
  wizata_dsapi/script.py,sha256=DeEciwVpuCYZetgJCoivw_bYe8ma52WuTaTQ_VkLEcg,12930
28
28
  wizata_dsapi/solution_component.py,sha256=8gbZWx2h_xUqI_pAXa3goqAnR5Y-GDMii8MeGlaK1IE,9531
29
29
  wizata_dsapi/streamlit_utils.py,sha256=sXBdygktbixV828Zg01Nl27_a4F8zGFc4RY0C8g-1bc,1942
@@ -31,7 +31,7 @@ wizata_dsapi/template.py,sha256=h2f3dLduJ4WhreVxJXuFIB3pinnI3c39WxBms0bCgos,1300
31
31
  wizata_dsapi/trigger.py,sha256=w3BZYP-L3SUwvaT0oCTanh_Ewn57peZvlt7vxzHv9J8,5129
32
32
  wizata_dsapi/twin.py,sha256=OFDFg2CsTxOUOVOf6kkDUEK9A3ED7yuPpN9TqodGruo,6581
33
33
  wizata_dsapi/twinregistration.py,sha256=Mi6-YuwroiEXc0c1hgrOaphh4hNVoHupxOnXedVtJtE,13377
34
- wizata_dsapi/version.py,sha256=XBKH8E1LmDxv06U39yqMBbXZapOERFgICEDYZs_kRso,22
34
+ wizata_dsapi/version.py,sha256=vMQK58X8_YZGKzRm0ThvPAKFtpfyejGmUnDrY9RQ13w,22
35
35
  wizata_dsapi/wizard_function.py,sha256=RbM7W7Gf-6Rhp_1dU9DBYkHaciknGAGvuAndhAS_vyo,942
36
36
  wizata_dsapi/wizard_request.py,sha256=v6BaqKLKvTWmUSo0_gda9FabAQz5x_-GOH1Av50GzFo,3762
37
37
  wizata_dsapi/wizata_dsapi_client.py,sha256=Qz54vYoxRLBUa21Q55K5Oo1qtZpW9ucuXi4BX1N85oE,78716
@@ -42,8 +42,8 @@ wizata_dsapi/plots/__init__.py,sha256=qgnSFqrjOPur-807M8uh5awIfjM1ZHXUXcAqHc-r2l
42
42
  wizata_dsapi/plots/common.py,sha256=jdPsJqLHBwSKc6dX83BSGPqSRxzIVNHSYO5yI_8sjGk,6568
43
43
  wizata_dsapi/scripts/__init__.py,sha256=hAxiETSQf0qOHde1si1tEAJU48seqEgHrchCzS2-LvQ,80
44
44
  wizata_dsapi/scripts/common.py,sha256=efwq-Rd0lvYljIs3gSFz9izogBD7asOU2cTK-IvHTkM,4244
45
- wizata_dsapi-1.2.4.dist-info/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
46
- wizata_dsapi-1.2.4.dist-info/METADATA,sha256=mTEgSlDDw2Y6uEMkiF-EBNStOQhMmJ-4hvewz0tiMEw,2187
47
- wizata_dsapi-1.2.4.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
48
- wizata_dsapi-1.2.4.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
49
- wizata_dsapi-1.2.4.dist-info/RECORD,,
45
+ wizata_dsapi-1.2.6.dist-info/LICENSE.txt,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
46
+ wizata_dsapi-1.2.6.dist-info/METADATA,sha256=gghYKA1y29GCop-vWf9zC68niDmPfjkmfRZRWyQSg_E,2187
47
+ wizata_dsapi-1.2.6.dist-info/WHEEL,sha256=2wepM1nk4DS4eFpYrW1TTqPcoGNfHhhO_i5m4cOimbo,92
48
+ wizata_dsapi-1.2.6.dist-info/top_level.txt,sha256=-OeTJbEnh5DuWyTOHtvw0Dw3LRg3G27TNS6W4ZtfwPs,13
49
+ wizata_dsapi-1.2.6.dist-info/RECORD,,