Skip to content

Commit

Permalink
Added AppleWatch RawMotion importer.
Browse files Browse the repository at this point in the history
Added config settings management - now using correct sampling rates for sensors recorded with file version 2.
  • Loading branch information
SBriere committed Sep 14, 2018
1 parent dc0c35c commit e7ffcf8
Show file tree
Hide file tree
Showing 2 changed files with 278 additions and 113 deletions.
6 changes: 3 additions & 3 deletions python/libopenimu/db/DBManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def delete_group(self, group):

# Check if we have orphan items dandling around
self.clean_db()
#self.engine.execute("VACUUM")
# self.engine.execute("VACUUM")

def get_group(self, id_group):
query = self.session.query(Group).filter(Group.id_group == id_group)
Expand Down Expand Up @@ -173,8 +173,7 @@ def delete_participant(self, part):

# Check if we have orphan items dandling around
self.clean_db()

#self.engine.execute("VACUUM")
# self.engine.execute("VACUUM")

#####################
def add_sensor(self, _id_sensor_type, _name, _hw_name, _location, _sampling_rate, _data_rate):
Expand Down Expand Up @@ -295,6 +294,7 @@ def clean_db(self):
self.delete_orphan_channels()
self.delete_orphan_sensors()
self.delete_orphan_processed_data()
self.engine.execute("VACUUM")

def get_all_recordsets(self, participant=Participant()):

Expand Down
Loading

0 comments on commit e7ffcf8

Please sign in to comment.