Skip to content

Commit bbd2d0e

Browse files
authored
Merge pull request #82 from introlab/dev
Main merge for 1.1.2 release
2 parents 920b59d + a7b280c commit bbd2d0e

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

python/env/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
pypiwin32==223; sys_platform == 'win32'
2-
PySide6==6.7.0
2+
PySide6==6.6.3
33
cython==3.0.10
44
numpy==1.26.4
55
scipy==1.11.4

python/libopenimu/importers/AppleWatchImporter.py

+5
Original file line numberDiff line numberDiff line change
@@ -1365,6 +1365,11 @@ def read_data_file(self, file, debug=False):
13651365
if debug:
13661366
print('setting_json : ', settings_json_str)
13671367

1368+
# Sort settings values
1369+
settings_json = json.loads(settings_json_str)
1370+
settings_json = dict(sorted(settings_json.items()))
1371+
settings_json_str = json.dumps(settings_json)
1372+
13681373
[end_header_id] = struct.unpack("<H", file.read(2))
13691374
if end_header_id != self.HEADER:
13701375
if debug:

python/libopenimu/qt/BackgroundProcess.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def timerEvent(self, a0: 'QTimerEvent'):
264264
self.work_speed_estimates.append(instant_speed)
265265
if len(self.work_speed_estimates) > min(10, int(self.total_work_load / 25)):
266266
mean_speed = sum(self.work_speed_estimates) / len(self.work_speed_estimates)
267-
remaining_time = int(mean_speed) * (self.total_work_load - self.total_work_done)
267+
remaining_time = int(mean_speed) * (self.total_work_load - self.total_work_done) - elapsed_time
268268
self.work_speed_estimates.pop(0)
269269
self.UI.lblRemainingValue.setText(self.format_time_display(remaining_time))
270270

python/libopenimu/qt/GPSView.py

-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ def __init__(self, parent):
3232
# Load file from qrc
3333
self.setUrl(QUrl('qrc:/OpenIMU/html/map.html'))
3434

35-
# 3IT = 45.3790193,-71.9430778
36-
# self.setCurrentPosition(45.3790193, -71.9430778)
37-
3835
# def closeEvent(self, QCloseEvent):
3936
# self.aboutToClose.emit(self)
4037

python/libopenimu/qt/RecordsetWindow.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ def load_sensors(self):
265265
self.sensors_menu.addSection(sensor.location)
266266
if sensor.id_sensor not in self.sensors:
267267
self.sensors[sensor.id_sensor] = sensor
268-
sensor_item = QAction(sensor.name + ' [' + str(sensor.sampling_rate) + ' Hz]')
268+
sensor_item = QAction(sensor.name + ' [' + "{:.1f}".format(sensor.sampling_rate) + ' Hz]')
269269
sensor_item.setCheckable(True)
270270
sensor_item.setProperty("sensor_id", sensor.id_sensor)
271271
self.sensors_items[sensor.id_sensor] = sensor_item
@@ -449,7 +449,8 @@ def draw_sensors_names(self):
449449
for sensor_id in sensors:
450450
sensor = self.sensors[sensor_id]
451451
# Sensor names
452-
label = self.timeSensorsScene.addText(sensor.name + ' [' + str(sensor.sampling_rate) + ' Hz]')
452+
label = self.timeSensorsScene.addText(sensor.name + ' [' + "{:.1f}".format(sensor.sampling_rate)
453+
+ ' Hz]')
453454
label.setPos(0, pos)
454455
label.setDefaultTextColor(Qt.black)
455456
# label.setFont(QFont("Times", 10, QFont.Bold))
@@ -622,7 +623,8 @@ def query_sensor_data(self, sensor: Sensor, start_time: datetime, end_time: date
622623
def sensor_graph_selected(self, sensor_item):
623624
sensor_id = sensor_item.property("sensor_id")
624625
sensor = self.sensors[sensor_id]
625-
sensor_label = sensor.name + " (" + sensor.location + ")" + ' [' + str(sensor.sampling_rate) + ' Hz]'
626+
sensor_label = (sensor.name + " (" + sensor.location + ")" + ' [' + "{:.1f}".format(sensor.sampling_rate) +
627+
' Hz]')
626628

627629
if sensor_item.isChecked():
628630
# Choose the correct display for each sensor
@@ -707,7 +709,7 @@ def sensor_graph_selected(self, sensor_item):
707709
# self.UI.displayContents.layout().insertWidget(0,graph)
708710

709711
graph_window.show()
710-
QApplication.instance().processEvents()
712+
# QApplication.instance().processEvents()
711713

712714
graph_window.aboutToClose.connect(self.graph_was_closed)
713715
graph_window.requestData.connect(self.query_sensor_data)

python/resources/ui/StartDialog.ui

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ in database</string>
385385
</font>
386386
</property>
387387
<property name="text">
388-
<string notr="true">1.1.1</string>
388+
<string notr="true">1.1.2</string>
389389
</property>
390390
</widget>
391391
</item>

0 commit comments

Comments
 (0)