ratal / mdfreader

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

Merge two files #157

Closed jayveesea closed 5 years ago

jayveesea commented 5 years ago

Python version

Please write here the output of printing sys.version '3.7.0 (default, Jun 28 2018, 08:04:48) [MSC v.1912 64 bit (AMD64)]'

Platform information

Please write here the output of printing platform.platform() 'Windows-7-6.1.7601-SP1'

Numpy version

Please write here the output of printing numpy.__version__ '1.15.1'

mdfreader version

Please write here the output of printing mdfreader.__version__ '2.7.8'

Description

trying to merge two files with:

yop=mdfreader.mdf(mdfFile)
yop.resample(0.1)
yop2=mdfreader.mdf(mdfFile2)
yop2.resample(0.1)
yop.merge_mdf(yop2)

but get this error: AttributeError: 'mdf' object has no attribute 'merge_mdf'

MDF Version

yop.MDFVersionNumber 410 yop2.MDFVersionNumber 410

ratal commented 5 years ago

I think you are using a dev branch with inconsistent refactoring I did for version 3.0. merge_mdf and .mdf (should be .Mdf) are not possible in the same package. Are you using pip ? if repositiory, can you make sure to pull latest version ?

jayveesea commented 5 years ago

I am using pip, installed with pip install mdfreader

Now I updated with pip install --upgrade mdfreader and I'm no longer getting the errors when merging (also had to change to .Mdf). I'm getting other errors, but I'll work through them (I think it's just syntax problems that I need to update to).

Also, mdfreader version is now '3.0'

ratal commented 5 years ago

Ok, I close this ticket then, thanks for informing.