Skip to content

Commit

Permalink
Trace filename
Browse files Browse the repository at this point in the history
  • Loading branch information
awav committed Aug 17, 2017
1 parent a1a3a6a commit 22f6df6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions GPflow/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ def __init__(self, output_file_name=None, output_directory=None,
if not os.path.isdir(self.output_directory):
os.mkdir(self.output_directory)

def get_filename(self):
def _trace_filename(self):
"""
Creates trace filename.
"""
dir_stub = self.output_directory if self.output_directory else ''
if self.each_time:
Expand All @@ -52,7 +53,7 @@ def run(self, fetches, feed_dict=None, options=None, run_metadata=None):

time = timeline.Timeline(self.local_run_metadata.step_stats)
ctf = time.generate_chrome_trace_format()
with open(self.get_filename(), 'w') as file:
with open(self._trace_filename(), 'w') as file:
file.write(ctf)

if self.each_time:
Expand Down

0 comments on commit 22f6df6

Please sign in to comment.