From ed55c6c8776d9a4fb81dc21d6c77a50c0901a3d5 Mon Sep 17 00:00:00 2001 From: Christian Sueltrop Date: Fri, 21 Feb 2014 15:31:38 +0100 Subject: [PATCH] * Commented out functions that use "pandas" library --- .pydevproject | 8 ++++---- CANLibrary/Sym2Lib.py | 16 ++++++++-------- CANLibrary/example.py | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.pydevproject b/.pydevproject index 8e2b33d..2f1c7f7 100644 --- a/.pydevproject +++ b/.pydevproject @@ -1,10 +1,10 @@ -python +Default python 2.7 -/CANLibrary -/CANLibrary/PCANBasic -/CANLibrary/pycrc +/vonPhilipp.git +/vonPhilipp.git/PCANBasic +/vonPhilipp.git/pycrc diff --git a/CANLibrary/Sym2Lib.py b/CANLibrary/Sym2Lib.py index 1d35dd2..03719d1 100644 --- a/CANLibrary/Sym2Lib.py +++ b/CANLibrary/Sym2Lib.py @@ -9,7 +9,7 @@ Created on 12.12.2013 ''' from CanMessage import CanMessage from CanSignal import CanSignal -from pandas import DataFrame +#from pandas import DataFrame from pprint import pprint def readSym(symfile): @@ -188,12 +188,12 @@ def _get_easy_Dict_(mes): symDict[i].append(sig) return symDict -def get_DataFrameDict(symfile): - mes = readSym(symfile) - symDict = _get_easy_Dict_(mes) - dfDict = {} - for i in symDict.keys(): - dfDict.update( { i : DataFrame(columns = symDict[i]) } ) - return dfDict +#def get_DataFrameDict(symfile): +# mes = readSym(symfile) +# symDict = _get_easy_Dict_(mes) +# dfDict = {} +# for i in symDict.keys(): +# dfDict.update( { i : DataFrame(columns = symDict[i]) } ) +# return dfDict Sym2Code("H:\umzug desktop\Symboldatei_multiport.sym") diff --git a/CANLibrary/example.py b/CANLibrary/example.py index ad98d90..c6e2f02 100644 --- a/CANLibrary/example.py +++ b/CANLibrary/example.py @@ -9,7 +9,7 @@ Example for creating and sending CAN messages via PCAN using the CanMessage, Can from CanMessage import CanMessage from CanSignal import CanSignal from PCan import PcanAdapter -from Sym2Lib import addtoPCAN, printCode +#from Sym2Lib import addtoPCAN, printCode import time print '\nCreate a PCAN adapter'