Closed finsberg closed 4 years ago
If I run the demo from IPython I got the following error
from gaitpy.demo import demo demo.run_demo() Please provide a path to a results director Your previous entry was not appropriate. It should follow a format similar to /Users/username/Desktop/Results Please provide a path to a results directory: result Classifying bouts of gait... Bout classification complete! Extracting features... Feature extraction complete! Plotting contacts... Plot complete! total run time: 7.53 seconds Checking extract_features endpoints... --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) <ipython-input-1-4761150b8fe1> in <module> 1 from gaitpy.demo import demo ----> 2 demo.run_demo() /home/shared/env/lib/python3.6/site-packages/gaitpy-1.5-py3.6.egg/gaitpy/demo/demo.py in run_demo() 58 # Confirm expected results 59 print("Checking extract_features endpoints...") ---> 60 expected_gait_features = pd.read_csv(__file__.split(".py")[0] + '_gait_features.csv') 61 obtained_gait_features = pd.read_csv(os.path.join(dst, 'gait_features.csv')) 62 assert_frame_equal(expected_gait_features, obtained_gait_features) /home/shared/env/lib/python3.6/site-packages/pandas-0.20.3-py3.6-linux-x86_64.egg/pandas/io/parsers.py in parser_f(filepath_or_buffer, sep, delimiter, header, names, index_col, usecols, squeeze, prefix, mangle_dupe_cols, dtype, engine, converters, true_values, false_values, skipinitialspace, skiprows, nrows, na_values, keep_default_na, na_filter, verbose, skip_blank_lines, parse_dates, infer_datetime_format, keep_date_col, date_parser, dayfirst, iterator, chunksize, compression, thousands, decimal, lineterminator, quotechar, quoting, escapechar, comment, encoding, dialect, tupleize_cols, error_bad_lines, warn_bad_lines, skipfooter, skip_footer, doublequote, delim_whitespace, as_recarray, compact_ints, use_unsigned, low_memory, buffer_lines, memory_map, float_precision) 653 skip_blank_lines=skip_blank_lines) 654 --> 655 return _read(filepath_or_buffer, kwds) 656 657 parser_f.__name__ = name /home/shared/env/lib/python3.6/site-packages/pandas-0.20.3-py3.6-linux-x86_64.egg/pandas/io/parsers.py in _read(filepath_or_buffer, kwds) 403 404 # Create the parser. --> 405 parser = TextFileReader(filepath_or_buffer, **kwds) 406 407 if chunksize or iterator: /home/shared/env/lib/python3.6/site-packages/pandas-0.20.3-py3.6-linux-x86_64.egg/pandas/io/parsers.py in __init__(self, f, engine, **kwds) 762 self.options['has_index_names'] = kwds['has_index_names'] 763 --> 764 self._make_engine(self.engine) 765 766 def close(self): /home/shared/env/lib/python3.6/site-packages/pandas-0.20.3-py3.6-linux-x86_64.egg/pandas/io/parsers.py in _make_engine(self, engine) 983 def _make_engine(self, engine='c'): 984 if engine == 'c': --> 985 self._engine = CParserWrapper(self.f, **self.options) 986 else: 987 if engine == 'python': /home/shared/env/lib/python3.6/site-packages/pandas-0.20.3-py3.6-linux-x86_64.egg/pandas/io/parsers.py in __init__(self, src, **kwds) 1603 kwds['allow_leading_cols'] = self.index_col is not False 1604 -> 1605 self._reader = parsers.TextReader(src, **kwds) 1606 1607 # XXX pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader.__cinit__ (pandas/_libs/parsers.c:4209)() pandas/_libs/parsers.pyx in pandas._libs.parsers.TextReader._setup_parser_source (pandas/_libs/parsers.c:8873)() FileNotFoundError: File b'/home/shared/env/lib/python3.6/site-packages/gaitpy-1.5-py3.6.egg/gaitpy/demo/demo_gait_features.csv' does not exist
This just adds gaitpy/demo/demo_gait_features.csv too MANIFEST.in
gaitpy/demo/demo_gait_features.csv
If I run the demo from IPython I got the following error
This just adds
gaitpy/demo/demo_gait_features.csv
too MANIFEST.in