Skip to content

Commit

Permalink
Make experiment.py work with Python 3. mom-ocean#328
Browse files Browse the repository at this point in the history
  • Loading branch information
angus-g authored and Nicholas Hannah committed Nov 17, 2016
1 parent bc917d7 commit 8f0a259
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/tests/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import os
import re
import shlex
import string
import subprocess as sp
import run_config as rc
from model import Model
Expand Down Expand Up @@ -33,7 +32,7 @@ def __hash__(self):


# Unfinished diagnostics are those which have been registered but have not been
# implemented, so no post_data called. This list should to be updated as the
# implemented, so no post_data called. This list should be updated as the
# diags are completed.
_unfinished_diags = [('ocean_model', 'uml_restrat'),
('ocean_model', 'vml_restrat'),
Expand Down Expand Up @@ -63,7 +62,7 @@ def exp_id_from_path(path):
path = os.path.normpath(path)
path = path.replace(_mom_examples_path, '')
# Remove possible '/' from front and back.
return string.strip(path, '/')
return path.strip('/')

class Experiment:

Expand Down

0 comments on commit 8f0a259

Please sign in to comment.