dsf-python 3.6.0rc2__py3-none-any.whl → 3.6.0rc3__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.
dsf/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "3.6.0-rc2"
1
+ __version__ = "3.6.0-rc.3"
2
2
 
3
3
  import json
4
4
  import os
@@ -40,9 +40,9 @@ class Heater(ModelObject):
40
40
  # Current temperature of the heater (in C)
41
41
  self._current = -273.15
42
42
  # Current feedforward PWM boost applied to the heater
43
- self._extr_pwm_boost = 0.0
43
+ self._extr_pwm_boost = None
44
44
  # Current temperature boost applied to the heater
45
- self._extr_temp_boost = 0.0
45
+ self._extr_temp_boost = None
46
46
  # Maximum temperature allowed for this heater (in C)
47
47
  # This is only temporary and should be replaced by a representation of the heater protection as in RRF
48
48
  self._max = 285
@@ -94,22 +94,22 @@ class Heater(ModelObject):
94
94
  self._current = float(value)
95
95
 
96
96
  @property
97
- def extr_pwm_boost(self) -> float:
97
+ def extr_pwm_boost(self) -> Union[float, None]:
98
98
  """Current feedforward PWM boost applied to the heater"""
99
99
  return self._extr_pwm_boost
100
100
 
101
101
  @extr_pwm_boost.setter
102
- def extr_pwm_boost(self, value: float):
103
- self._extr_pwm_boost = float(value)
102
+ def extr_pwm_boost(self, value: Union[float, None]):
103
+ self._extr_pwm_boost = float(value) if value is not None else None
104
104
 
105
105
  @property
106
- def extr_temp_boost(self) -> float:
106
+ def extr_temp_boost(self) -> Union[float, None]:
107
107
  """Current temperature boost applied to the heater"""
108
108
  return self._extr_temp_boost
109
109
 
110
110
  @extr_temp_boost.setter
111
- def extr_temp_boost(self, value: float):
112
- self._extr_temp_boost = float(value)
111
+ def extr_temp_boost(self, value: Union[float, None]):
112
+ self._extr_temp_boost = float(value) if value is not None else None
113
113
 
114
114
  @property
115
115
  def max(self) -> float:
@@ -14,6 +14,8 @@ class TimesLeft(ModelObject):
14
14
  self._file = None
15
15
  # Time left based on the slicer reports (see M73, in s or null)
16
16
  self._slicer = None
17
+ # Time left before the next colour change is expected (see M73 C, in s or null)
18
+ self._to_pause = None
17
19
 
18
20
  @property
19
21
  def filament(self) -> Union[int, None]:
@@ -41,3 +43,12 @@ class TimesLeft(ModelObject):
41
43
  @slicer.setter
42
44
  def slicer(self, value):
43
45
  self._slicer = int(value) if value is not None else None
46
+
47
+ @property
48
+ def to_pause(self) -> Union[int, None]:
49
+ """Time left before the next colour change is expected (see M73 C, in s or null)"""
50
+ return self._to_pause
51
+
52
+ @to_pause.setter
53
+ def to_pause(self, value):
54
+ self._to_pause = int(value) if value is not None else None
@@ -38,13 +38,13 @@ class AnalogSensorType(str, Enum):
38
38
  BME280 = "bme280"
39
39
 
40
40
  # BME280 pressure sensor
41
- BME280Pressure = "bme280-pressure"
41
+ BME280Pressure = "bmepressure"
42
42
 
43
43
  # BME280 humidity sensor
44
- BME280Humidity = "bme280-humidity"
44
+ BME280Humidity = "bmehumidity"
45
45
 
46
46
  # Current loop sensor
47
- CurrentLoop = "currentloooppyro"
47
+ CurrentLoop = "currentlooppyro"
48
48
 
49
49
  # MCU temperature
50
50
  McuTemp = "mcutemp"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dsf-python
3
- Version: 3.6.0rc2
3
+ Version: 3.6.0rc3
4
4
  Summary: Python interface to access DuetSoftwareFramework
5
5
  Home-page: https://github.com/Duet3D/dsf-python
6
6
  Author: Duet3D Ltd.
@@ -1,4 +1,4 @@
1
- dsf/__init__.py,sha256=PSH0_AG_sZoF9RjzuwyA7pjvfcg-ojw3qjcTVJ2e1Dw,783
1
+ dsf/__init__.py,sha256=XkcKSzylfJQQ7UCfEpSvfO1JX5_WtY8w-DRnigdz7WY,784
2
2
  dsf/exceptions.py,sha256=TIF-e0wAprfodFTfRD9chP6JZ97yA04dlaHN90mgGVI,93
3
3
  dsf/http.py,sha256=8itR1jlCx1QTusbbJP_RctuGBpV1pJcXssIKC4e0dDg,7266
4
4
  dsf/utils.py,sha256=9GfGUu0sbeoJBJ6RuRIpI-BZ-1PKIMWaemWliknt1v0,2571
@@ -57,7 +57,7 @@ dsf/object_model/fans/fan_thermostatic_control.py,sha256=9V5p-Ek3CHv0QyyykxNeGfs
57
57
  dsf/object_model/fans/fans.py,sha256=6FAmgBOA0uqd5RPuCJRcQ4q7Ts3UdtMMT8g8Rpefnnw,3235
58
58
  dsf/object_model/heat/__init__.py,sha256=iT38cPXNDOdXy0upTjKlF5J2z1aETRvZpEYwlf7yCdw,388
59
59
  dsf/object_model/heat/heat.py,sha256=-ZZ4rKIBss9Ax62dr5VIGbMSNzEI-iQbAvIp_rut3nM,1909
60
- dsf/object_model/heat/heater.py,sha256=0GI5IWS8_WNeKAdHtv38g0EIs0CAjxRPrsRxuyCRtU4,6316
60
+ dsf/object_model/heat/heater.py,sha256=dJR5S1K5jMMHs1Y9_uf2d-BQyyFRUz6X4qL0Jlj64q0,6432
61
61
  dsf/object_model/heat/heater_model.py,sha256=a3rXsNiPQ_xtdvNTXUBUHhxzZOmNlAoP-Im7lhV2l9E,3188
62
62
  dsf/object_model/heat/heater_model_pid.py,sha256=npGItqz2a6KMFhq2gsyLqWF16jZQbFk4GzOQLvqq1ys,1529
63
63
  dsf/object_model/heat/heater_monitor.py,sha256=H_nnEMCO3mZDY8PMtJuPhPonyH22yL6pg-VY_Q8I7VA,2899
@@ -74,7 +74,7 @@ dsf/object_model/job/gcode_fileinfo.py,sha256=A3_UKFhFZ4eoFSfT6TJMad7e91jBpt2LZ1
74
74
  dsf/object_model/job/job.py,sha256=xhn4DbKGQ5leH1YimLncr0_NRczZ5kqKpCJXt9RBLck,6825
75
75
  dsf/object_model/job/layer.py,sha256=s3Kt7xCrGGvjrtoYnQutcx_7UuycdiiNbHEk0gsvQSs,1660
76
76
  dsf/object_model/job/thumbnail_info.py,sha256=Hq3PrAMsm8Nl8mCCBOXzeCLJFPGXMsaZXxmeXUDzxps,2535
77
- dsf/object_model/job/times_left.py,sha256=qXuXejaJl1fwABEKFK8neN-Sf9Ypi3eEkH9Pxpm5MjE,1275
77
+ dsf/object_model/job/times_left.py,sha256=Rw3Y7HqG39Zy3erk2CU84Yn6ENSHsFO3-Fqg4-nUuDM,1694
78
78
  dsf/object_model/led_strips/__init__.py,sha256=NCG-jAQk7lao1OuILdhmuhQdN3sNArIspnq5Rs80k5I,46
79
79
  dsf/object_model/led_strips/led_strip.py,sha256=MeryQ4jX7-DRnhsh1MP1pY22xnInYfA0vXHRqDIiX54,2142
80
80
  dsf/object_model/limits/__init__.py,sha256=h32hQ0bar4eRSytIaZJ8fZt5TSCGNEsRlLaMY-qGzPQ,49
@@ -135,7 +135,7 @@ dsf/object_model/sbc/dsf/user_sessions/session_type.py,sha256=_eBDauWwEoJdO4zUs5
135
135
  dsf/object_model/sbc/dsf/user_sessions/user_sessions.py,sha256=J76IEm-ZBAt8ZQf17OXpgkY0KX0Yn3daFArkCMB2FYg,2364
136
136
  dsf/object_model/sensors/__init__.py,sha256=Yb9OkMQI3jNF5Yx84UwMjQreckhraA8PRH0uLfaTAFg,283
137
137
  dsf/object_model/sensors/analog_sensor.py,sha256=Evwb6d1hq2bGz9oeMX7EQzntuUuLEQmkSIeQfbcDQWg,4430
138
- dsf/object_model/sensors/analog_sensor_type.py,sha256=IPB4--lexKFxi8_Ue8k6Cv_veHkWoGilvT2RJJucMbY,1152
138
+ dsf/object_model/sensors/analog_sensor_type.py,sha256=VohpHdZFiITazty_hyM0BRfgXX43OuUkPewdkzjYCRI,1143
139
139
  dsf/object_model/sensors/endstop.py,sha256=QqL4WJ-bmmvAYTf6keS_wlL7w3nkCXEs59UBqJVySxs,1527
140
140
  dsf/object_model/sensors/endstop_type.py,sha256=XvdO-aJtUGuqtJzOx7DStnzjT-WbbJWdbexDJHoxdJw,474
141
141
  dsf/object_model/sensors/gp_input_port.py,sha256=xNtBsEs8m7ws6nAAKqH_Wan9CNMY3RdeZ_jpBRNvcK8,413
@@ -173,8 +173,8 @@ dsf/object_model/tools/tools.py,sha256=0hc1xeCkjvB36kcW9N3_6fl0J3KnBJqeZOtKCTYbI
173
173
  dsf/object_model/volumes/__init__.py,sha256=XuRDty30gqn8jshASvclpxVTachXeAeJyo2-iHKEsKc,50
174
174
  dsf/object_model/volumes/volumes.py,sha256=gqbo5kUQo037A7Wv49vxnnaBhGlNjilJydjW8V2sKZ4,3073
175
175
  dsf/utility/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
176
- dsf_python-3.6.0rc2.dist-info/licenses/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
177
- dsf_python-3.6.0rc2.dist-info/METADATA,sha256=A4Yf2WUTNAP-00TOO5kU82bxbdPIQWa0ODjOMoDjJpQ,2337
178
- dsf_python-3.6.0rc2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
179
- dsf_python-3.6.0rc2.dist-info/top_level.txt,sha256=hrm-wnKtms7vAmVuHX6jIj3C6G5p3uKCiXZH4HwJ4LA,4
180
- dsf_python-3.6.0rc2.dist-info/RECORD,,
176
+ dsf_python-3.6.0rc3.dist-info/licenses/LICENSE,sha256=46mU2C5kSwOnkqkw9XQAJlhBL2JAf1_uCD8lVcXyMRg,7652
177
+ dsf_python-3.6.0rc3.dist-info/METADATA,sha256=5TvoAnkdUTy3JzXQZ-AsxJXU4bYf_Xf1c6ZGiLHtdwY,2337
178
+ dsf_python-3.6.0rc3.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
179
+ dsf_python-3.6.0rc3.dist-info/top_level.txt,sha256=hrm-wnKtms7vAmVuHX6jIj3C6G5p3uKCiXZH4HwJ4LA,4
180
+ dsf_python-3.6.0rc3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.0)
2
+ Generator: setuptools (80.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5