Skip to content

Commit 1d9c2c5

Browse files
committed
Do not flush
1 parent de8612a commit 1d9c2c5

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Pilot1/Uno/topN_to_uno.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ def parse_arguments():
3030
args, unparsed = parser.parse_known_args()
3131
return args, unparsed
3232

33-
3433
def read_plan(filename, node):
3534
print("read_plan(): reading file {} for node {}"
3635
.format(filename, node))
@@ -157,7 +156,6 @@ def read_dataframe(args):
157156
_, ext = os.path.splitext(args.dataframe_from)
158157
if ext == '.h5' or ext == '.hdf5':
159158
print("HDFStore r " + str(args.dataframe_from))
160-
sys.stdout.flush()
161159
store = pd.HDFStore(args.dataframe_from, 'r')
162160
print("HDFStore opened") ; sys.stdout.flush()
163161
df = store.get('df')
@@ -166,7 +164,6 @@ def read_dataframe(args):
166164
print("HDFStore closed") ; sys.stdout.flush()
167165
elif ext == '.feather':
168166
print("read feather " + str(args.dataframe_from))
169-
sys.stdout.flush()
170167
df = pd.read_feather(args.dataframe_from).fillna(0)
171168
print("read feather ok." + str(args.dataframe_from))
172169
sys.stdout.flush()
@@ -250,7 +247,6 @@ def build_dataframe(args):
250247

251248
# store
252249
import os.path
253-
254250
output = os.path.realpath(args.output)
255251
print("topN HDFStore w " + output) ; sys.stdout.flush()
256252
store = pd.HDFStore(output, 'w') # , complevel=9, complib='blosc:snappy')
@@ -278,7 +274,7 @@ def build_dataframe(args):
278274
store.put('y_test', y_test, format='table')
279275
store.put('x_test_0', x_test_0, format='table')
280276
store.put('x_test_1', x_test_1, format='table')
281-
print("topN HDFStore close " + output) ; sys.stdout.flush()
277+
print("topN HDFStore close " + output)
282278
store.close()
283279

284280

0 commit comments

Comments
 (0)