Code Monkey home page Code Monkey logo

fit's People

Contributors

rembish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fit's Issues

FitFile.open

Hi,

When I try to open a file (fin = FitFile.open("input.fit")), I receive the following error message:
" File "", line 1, in
fin = FitFile.open("input.fit")

File "/usr/local/lib/python2.7/dist-packages/fit/init.py", line 27, in open
body = Reader(ffd).body
File "/usr/local/lib/python2.7/dist-packages/fit/io/reader.py", line 60, in body
self._fd.seek(self.header.size)

File "/usr/local/lib/python2.7/dist-packages/fit/io/reader.py", line 33, in header
header_size = ord(self._fd.read(1))

TypeError: ord() expected a character, but string of length 0 found"

Any idea?
Thanks!

python 3 support

In [1]: from fit import FitFile
Traceback (most recent call last):

File "/mnt/c/Users/andre/Documents/FIT experiment/venv/lib/python3.6/site-packages/IPython/core/interactiveshell.py", line 3319, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)

File "", line 1, in
from fit import FitFile

File "/mnt/c/Users/andre/Documents/FIT experiment/venv/lib/python3.6/site-packages/fit/init.py", line 53
raise exc_type, exc_val, exc_tb
^
SyntaxError: invalid syntax

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.