Skip to content

Commit

Permalink
added flush
Browse files Browse the repository at this point in the history
  • Loading branch information
williamFalcon committed Jul 26, 2019
1 parent 52ff2bb commit 8fae0c3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test_tube/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ def __init__(
self.exp_hash = '{}_v{}'.format(self.name, version)
self.created_at = str(datetime.utcnow())
self.rank = rank
self.process = os.getpid()

# when debugging don't do anything else
if debug:
Expand Down Expand Up @@ -166,6 +167,13 @@ def on_exit(self):
if self.rank == 0:
self.close()

def __clean_dir(self):
files = os.listdir(self.log_dir)
print(files)
for f in files:
if self.process in f:
pass

def argparse(self, argparser):
parsed = vars(argparser)
to_add = {}
Expand Down

0 comments on commit 8fae0c3

Please sign in to comment.