Skip to content

Commit be4a6e2

Browse files
Merge pull request #289 from katzlabbrandeis/hotfix
Explicitly flush stdout for Tee to prevent python from buffering output
2 parents 05f86ec + 185c792 commit be4a6e2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

blech_exp_info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def laser_check(x):
442442
else:
443443
laser_digin_trials = []
444444

445-
fin_dict = {'version': 0.0.1,
445+
fin_dict = {'version': '0.0.1',
446446
**this_dict,
447447
'regions': list(layout_dict.keys()),
448448
'ports': list(np.unique(ports)),

utils/blech_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ def write(self, data):
2323
self.file.write(data)
2424
self.stdout.write(data)
2525
self.file.flush()
26+
self.stdout.flush()
2627

2728
def flush(self):
2829
self.file.flush()

0 commit comments

Comments
 (0)