ratio1 3.4.112__py3-none-any.whl → 3.4.114__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.
ratio1/_ver.py CHANGED
@@ -1,4 +1,4 @@
1
- __VER__ = "3.4.112"
1
+ __VER__ = "3.4.114"
2
2
 
3
3
  if __name__ == "__main__":
4
4
  with open("pyproject.toml", "rt") as fd:
@@ -70,10 +70,18 @@ class _MachineMixin(object):
70
70
  for name, entries in temps.items():
71
71
  for entry in entries:
72
72
  key = f"{name}.{entry.label or 'N/A'}"
73
+ original_high = entry.high
74
+ original_critical = entry.critical
75
+ high = entry.high if isinstance(entry.high, (int, float)) else 65536
76
+ critical = entry.critical if isinstance(entry.critical, (int, float)) else 65536
77
+ high = max(95, high)
78
+ critical = max(100, critical)
73
79
  transformed[key] = {
74
80
  "current": entry.current if entry.current is not None else 0,
75
- "high": entry.high if entry.high is not None else 65536,
76
- "critical": entry.critical if entry.critical is not None else 65536,
81
+ "high": high,
82
+ "critical": critical,
83
+ "original_high": original_high,
84
+ "original_critical": original_critical,
77
85
  }
78
86
  #end for
79
87
  #end for
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ratio1
3
- Version: 3.4.112
3
+ Version: 3.4.114
4
4
  Summary: `ratio1` or Ration1 SDK is the Python SDK required for client app development for the Ratio1 ecosystem
5
5
  Project-URL: Homepage, https://github.com/Ratio1/ratio1_sdk
6
6
  Project-URL: Bug Tracker, https://github.com/Ratio1/ratio1_sdk/issues
@@ -1,5 +1,5 @@
1
1
  ratio1/__init__.py,sha256=YimqgDbjLuywsf8zCWE0EaUXH4MBUrqLxt0TDV558hQ,632
2
- ratio1/_ver.py,sha256=UaAll1V9ATVcKDW5czEzwk8JtTZEci319P9RxztEE20,332
2
+ ratio1/_ver.py,sha256=UE66Z2B4zyXQ2QOlnafCp34OYwb9DY_ThqnrsjBmD3k,332
3
3
  ratio1/base_decentra_object.py,sha256=iXvAAf6wPnGWzeeiRfwLojVoan-m1e_VsyPzjUQuENo,4492
4
4
  ratio1/plugins_manager_mixin.py,sha256=X1JdGLDz0gN1rPnTN_5mJXR8JmqoBFQISJXmPR9yvCo,11106
5
5
  ratio1/base/__init__.py,sha256=hACh83_cIv7-PwYMM3bQm2IBmNqiHw-3PAfDfAEKz9A,259
@@ -92,7 +92,7 @@ ratio1/logging/logger_mixins/datetime_mixin.py,sha256=ORqOW4bxaI0UKLtII8-QhOiHvI
92
92
  ratio1/logging/logger_mixins/download_mixin.py,sha256=ZZ1QuQ7kDcUkxhu65odD2pvBRlogsb8mvEEViIYV_L0,18668
93
93
  ratio1/logging/logger_mixins/general_serialization_mixin.py,sha256=bNM-6AsYhKD56v79hvJDgO8un5rHH4IKv1XJ3yksseQ,7424
94
94
  ratio1/logging/logger_mixins/json_serialization_mixin.py,sha256=JnfVOdQQTlx10sTLjQv8d7DO-1lNKuK4E8vMSE_t--Q,15198
95
- ratio1/logging/logger_mixins/machine_mixin.py,sha256=VoGijSjj0CwfbSo_jjp3uvs_aovWwQHNDEqu5jzmWJE,3640
95
+ ratio1/logging/logger_mixins/machine_mixin.py,sha256=BOk7nHThRG6nNVK8atM5TrBfuHuaeLwb2sheLvE357o,3985
96
96
  ratio1/logging/logger_mixins/pickle_serialization_mixin.py,sha256=tmdmoRz38iJGfK4J37oEghbRizN4BdZs7F2kObZ2ldQ,11391
97
97
  ratio1/logging/logger_mixins/process_mixin.py,sha256=eI0izBAhStPOant2SZv2ZuTDH10s2ON_CkuGQEEFew4,1888
98
98
  ratio1/logging/logger_mixins/resource_size_mixin.py,sha256=nH0R9RmhJxatX_qSQu_CtkLD6sH2stMOylpp_Ym6mHI,2281
@@ -109,8 +109,8 @@ ratio1/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_LtMyCY,10
109
109
  ratio1/utils/config.py,sha256=Elfkl7W4aDMvB5WZLiYlPXrecBncgTxb4hcKhQedMzI,10111
110
110
  ratio1/utils/dotenv.py,sha256=_AgSo35n7EnQv5yDyu7C7i0kHragLJoCGydHjvOkrYY,2008
111
111
  ratio1/utils/oracle_sync/oracle_tester.py,sha256=aJOPcZhtbw1XPqsFG4qYpfv2Taj5-qRXbwJzrPyeXDE,27465
112
- ratio1-3.4.112.dist-info/METADATA,sha256=fwU8VEAShFw5e0VlSDW_ZBnuWaG0KamcmCoAFaQGo_0,12256
113
- ratio1-3.4.112.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
114
- ratio1-3.4.112.dist-info/entry_points.txt,sha256=DR_olREzU1egwmgek3s4GfQslBi-KR7lXsd4ap0TFxE,46
115
- ratio1-3.4.112.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
116
- ratio1-3.4.112.dist-info/RECORD,,
112
+ ratio1-3.4.114.dist-info/METADATA,sha256=A5yjdTEJjpV-O6vi5L0occVYEoWWqeQTYTxrX0IzuEM,12256
113
+ ratio1-3.4.114.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
114
+ ratio1-3.4.114.dist-info/entry_points.txt,sha256=DR_olREzU1egwmgek3s4GfQslBi-KR7lXsd4ap0TFxE,46
115
+ ratio1-3.4.114.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
116
+ ratio1-3.4.114.dist-info/RECORD,,