Skip to content

Commit

Permalink
Fixed AppleWatch Importer of file version 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
SBriere committed Sep 14, 2018
1 parent 6fa894f commit 0f1a174
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
30 changes: 20 additions & 10 deletions python/env/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,18 @@ if(WIN32)
PyQtChart
PyQt3D
pypiwin32
# PyInstaller
PyInstaller
# Warning, development version for now to fix OSX package
https://github.com/pyinstaller/pyinstaller/tarball/develop
#https://github.com/pyinstaller/pyinstaller/tarball/develop
)

set (conda_packages
PyInstaller
cython
numpy
scipy
jupyter
sqlalchemy
)
else(WIN32)
set (pip_packages
Expand All @@ -34,16 +43,17 @@ else(WIN32)
# Warning, development version for now to fix OSX package
https://github.com/pyinstaller/pyinstaller/tarball/develop
)
set (conda_packages
# PyInstaller
cython
numpy
scipy
jupyter
sqlalchemy
)
endif(WIN32)

set (conda_packages
# PyInstaller
cython
numpy
scipy
jupyter
sqlalchemy
)


if(WIN32)
# Create environment, will produce python executable
Expand Down
3 changes: 2 additions & 1 deletion python/libopenimu/importers/AppleWatchImporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,8 @@ def import_to_database(self, result):

def get_sampling_rate_from_header(self, sensor_id, header): #header = string of json
sample_rate = 0
json_settings = json.loads(header) # converts to json
if header != "":
json_settings = json.loads(header) # converts to json

if sensor_id == self.BATTERY_ID:
sample_rate = 1 / 3 # Default value (if file version = 1)
Expand Down
2 changes: 1 addition & 1 deletion setup/setup_windows.iss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "OpenIMU"
#define MyAppVersion "0.2.0"
#define MyAppVersion "0.3.0"
#define MyAppPublisher "IntroLab - CDRV"
#define MyAppURL "http://www.cdrv.ca"
#define MyAppExeName "OpenIMUApp.exe"
Expand Down

0 comments on commit 0f1a174

Please sign in to comment.