Skip to content
Snippets Groups Projects
Commit 13d54158 authored by Jacques Grelet's avatar Jacques Grelet
Browse files

update

parent 0b3b036b
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
# write hdr and data in ascii files # write hdr and data in ascii files
import os import os
import logging
import tools import tools
import numpy as np import numpy as np
from datetime import datetime from datetime import datetime
...@@ -132,7 +133,7 @@ def writeAscii(cfg, device, fe, r): ...@@ -132,7 +133,7 @@ def writeAscii(cfg, device, fe, r):
fileName = "{}/{}.{}".format(cfg['global']['ascii'], fileName = "{}/{}.{}".format(cfg['global']['ascii'],
cfg['cruise']['cycleMesure'], device.lower()) cfg['cruise']['cycleMesure'], device.lower())
print('writing header file: {}'.format(fileName)) logging.debug('writing header file: {}'.format(fileName))
writeHeader(fileName, cfg, device.lower(), fe, r, ) writeHeader(fileName, cfg, device.lower(), fe, r, )
fileName = "{}/{}_{}".format(cfg['global']['ascii'], fileName = "{}/{}_{}".format(cfg['global']['ascii'],
......
...@@ -112,9 +112,8 @@ class FileExtractor: ...@@ -112,9 +112,8 @@ class FileExtractor:
def update_table(self, keys): def update_table(self, keys):
''' update table data and add new column from pm (physical parameter)''' ''' update table data and add new column from pm (physical parameter)'''
print(keys, type(keys))
for pm in keys: for pm in keys:
print(f"\tUpdate table data with new column {pm}") logging.debug(f"\tUpdate table data with new column {pm}")
addColumn = f"ALTER TABLE data ADD COLUMN {pm} REAL NOT NULL" addColumn = f"ALTER TABLE data ADD COLUMN {pm} REAL NOT NULL"
self.db.query(addColumn) self.db.query(addColumn)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment