ratal / mdfreader

Read Measurement Data Format (MDF) versions 3.x and 4.x file formats in python
Other
169 stars 74 forks source link

import problem in mdfreader.py, readinfo #41

Closed jontis closed 7 years ago

jontis commented 7 years ago

suggested change (inline with how you did some other imorts): try: from .mdfinfo3 import info3 except: from mdfinfo3 import info3

ratal commented 7 years ago

Indeed more consistent, thanks for the proposal. You had issues at these lines ?

jontis commented 7 years ago

I had problems with the import. I think this post is detailing the issue and suggest nicer solutions, by completely removing the relative imports ans using absolute imports. I'm just suggesting and not fixing and reorganizing the code as I'm not very good at writing modules... http://stackoverflow.com/questions/16981921/relative-imports-in-python-3

ratal commented 7 years ago

Thanks for the proposal and the link, good idea. I will try to implement absolute import.

ratal commented 7 years ago

Should be done in latest commit.