Skip to content

Commit

Permalink
update to 0.1.6 : fixed mdfconverter packaging for pip
Browse files Browse the repository at this point in the history
  • Loading branch information
ratal committed May 31, 2015
1 parent 173079f commit 835fce6
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 14 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
mdfreader is a tool written in pyhon to read mdf (Measured Data Format) files version 3.x and 4.x

Copyright (C) 2014 Aymeric Rateau
Copyright (C) 2015 Aymeric Rateau

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
10 changes: 5 additions & 5 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The structure of the mdf dictionary, for each channel: mdf[channelName]
- master : vector name corresponding to master channel
- masterType : type of master channel (time, angle, distance, etc.)
- description : physical meaning of channel
- conversion: (optional) dictionary describing how to convert raw data in data to meaningful/physical data
- conversion: (optional) dictionary describing how to convert raw data into meaningful/physical data

Mdfreader module methods:
=========================
Expand Down Expand Up @@ -42,15 +42,15 @@ Reading channels defined by a formula will require sympy.
Export requirements (optional): scipy, csv, h5py, xlwt(3), openpyxl, pandas
Mdfconverter user interface requires pyQT

User interface:
===============
User interface in PyQT(4.6) to convert batch of files is also written. You can launch it with command "python mdfconverter.py" By right clicking a channel in the interface list, you can plot it. You can also drag-drop channels between columns to tune import list. Channel list from a .lab text file can be imported. You can optionally merge several files into one and even resample all them.
User interface: mdfconverter (PyQt4)
==================================
User interface in PyQT4 to convert batch of files is also written. You can launch it with command mdfconverter. By right clicking a channel in the interface list, you can plot it. You can also drag-drop channels between columns to tune import list. Channel list from a .lab text file can be imported. You can optionally merge several files into one and even resample all of them.

Others:
=======
In the case of big files and lack of memory, you can optionally:
- Read only a channel list (slightly slower, argument channelList = ['channel', 'list'])
- Keep raw data as stored in mdf, data type conversion (mdfreader argument convertAfterRead=False). Data will then be converted on the fly by the other functions (plot, exportTo..., getChannelData, etc.) but raw data will remain as in mdf file along with conversion information.
- Keep raw data as stored in mdf without data type conversion (mdfreader argument convertAfterRead=False). Data will then be converted on the fly by the other functions (plot, exportTo..., getChannelData, etc.) but raw data will remain as in mdf file along with conversion information.

Warning:
========
Expand Down
2 changes: 1 addition & 1 deletion mdfconverter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
# along with this program. If not, see http://www.gnu.org/licenses.
#
# ----------------------------------------------------------------------
__version__ = "0.1.4"
__version__ = "0.1.6"
8 changes: 4 additions & 4 deletions mdfconverter/mdfconverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
from sys import argv, exit
from multiprocessing import freeze_support

if __name__ == "__main__":
main()

def main()
def main():
freeze_support()
app = QtGui.QApplication(argv)
myapp = MainWindow()
myapp.show()
exit(app.exec_())

if __name__ == "__main__":
main()
2 changes: 1 addition & 1 deletion mdfconverter/mdfreaderui.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from Ui_mdfreaderui import Ui_MainWindow
from io import open
from multiprocessing import Pool, cpu_count
from mdfreader import mdfinfo, mdf
from mdfreader import *

from sys import version_info
from os import path
Expand Down
10 changes: 9 additions & 1 deletion mdfreader/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,12 @@
# along with this program. If not, see http://www.gnu.org/licenses.
#
# ----------------------------------------------------------------------
__version__ = "0.1.5"

__author__ = 'Aymeric Rateau (aymeric.rateau@gmail.com)'
__copyright__ = 'Copyright (c) 2015 Aymeric Rateau'
__license__ = 'GPLV3'
__version__ = "0.1.6"

#if it's run as a script or imported within python, this happens
if __name__ == 'mdfreader':
from mdfreader import *
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/development.html#single-sourcing-the-version
version='0.1.5',
version='0.1.6',

description='A Measured Data Format file parser',
long_description=long_description,
Expand Down

0 comments on commit 835fce6

Please sign in to comment.