hephy-dd / diode-measurement

IV/CV measurements for silicon sensors.
GNU General Public License v3.0
0 stars 2 forks source link

Occasional TypeError with QDateTime.fromMSecsSinceEpoch #18

Closed arnobaer closed 2 years ago

arnobaer commented 2 years ago

QDateTime.fromMSecsSinceEpoch raises a TypeError one some occasions albeit the assigned float value is cast to an integer.

TypeError: arguments did not match any overloaded call:
  fromMSecsSinceEpoch(int): argument 1 has unexpected type 'float'
  fromMSecsSinceEpoch(int, Qt.TimeSpec, offsetSeconds: int = 0): argument 1 has unexpected type 'float'
  fromMSecsSinceEpoch(int, QTimeZone): argument 1 has unexpected type 'float'

This issue seems to affect only on Windows OS.