Comments (2)
I had the same issue and for some reason it didn't go away when I removed the forward slash part; however, I've written a pretty straightforward Python function to automatically modify the full path into an equivalent relative path. You just need to write the proper path to the cwa-convert build in CWA_CONVERT_CMD_PATH
:
import os
import subprocess
# note: first, openmovement git repo has to be cloned, then the C library must be built.
CWA_CONVERT_CMD_PATH = '/path/to/openmovement/Software/AX3/cwa-convert/c/cwa-convert'
# note: C code has a bug where it can't read an argument starting with '/' as a file
# so we need to specify the number of "../" prefixes to put...
def convert_cwa_to_csv(input_filename, output_filename):
# make sure that we have gotten full path to input_file
if input_filename[0] != '/':
# TODO{try to handle non-full-paths by using glob.iglob and inferring the proper path.}
raise Exception('Must specify full path. i.e. /path/to/file.ext')
filename = input_filename.split('/')[-1]
pwd = os.getcwd()
num_directory_levels_up_to_go = len(pwd.split('/')) - 2
input_dir_prefix = '../' * num_directory_levels_up_to_go
full_input_path = input_dir_prefix + filename
subprocess.run([CWA_CONVERT_CMD_PATH, full_input_path, '-out', output_filename])
from openmovement.
Sorry this took so long to fix. Thanks for the original report @NarayanSchuetz and recent comment @adamcatto that notified me that this was still an issue. Fixed in a82452f
from openmovement.
Related Issues (20)
- Not enough data for this WTV_sd method Sampling frequency must be finite.!! HOT 2
- Cannot connect to AX3 device in AX3 GUI but OK in firmware update HOT 2
- Discharged error, but has charge. HOT 6
- Running Python script error HOT 2
- Need urgent information HOT 1
- APDS-9007 light sensor range HOT 3
- Feature suggestion: Datetime placeholder in filename HOT 2
- Not working : Export resampled WAV HOT 1
- Over Sampling Rate per second HOT 1
- resampling by OMGUI
- Axivity AX3 drift in data after using export CSV HOT 1
- timestamp calculated correctly?
- jomapi does not work with AX6 HOT 1
- Software/AX3/cwa-convert/java output is not matching with Software/AX3/cwa-convert/c/ HOT 1
- Software/AX3/cwa-convert/java output is not matching with Software/AX3/cwa-convert/c HOT 1
- Import of .csv file
- Novice
- temperature HOT 1
- Unable to download data and start recording HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openmovement.