Import emLibrary as emIF, emDF objects
In [7]:
import emLibrary.InfoFile as emIF
import emLibrary.DataFile as emDF
Starting the Constructors
In [8]:
IF = emIF.InfoFile('NewTestFiles/B00C76BE.BIN')
DF = emDF.DataFile('NewTestFiles/B00C76BF.BIN')
In [9]:
IF.TotalPower
Out[9]:
In [10]:
a = DF.dataHexList
In [11]:
t = DF.getdec(0,0,a[0])
In [12]:
DF.getStartDate(a[0])
Out[12]:
In [14]:
DF.getStartDateList()[0]
Out[14]:
Testing if insert to DB is ok
In [15]:
import mysqldb.mysqldb as mysqldb
In [18]:
print DF.toSqlDB(mysqldb.load_DB_params('em.config'))
In [19]:
DF
Out[19]:
In [20]:
mysqldb.load_DB_params('em.config')
Out[20]:
In [21]:
ls
In [22]:
cat InsertAll.py
In [ ]: