Skip to content

Commit

Permalink
Merge pull request wmwolf#7 from jschwab/misc-cleanup
Browse files Browse the repository at this point in the history
Miscellaneous cleanup
  • Loading branch information
jschwab committed Jun 4, 2016
2 parents 9842d97 + 0dce1d5 commit 3022e6f
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions mesa_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class MesaData:
header_data : dict
Header data (line 2 of `file_name`) in dict format
header_names : list
List of all available header dolumn names that are valid
List of all available header column names that are valid
inputs for `header`. Essentially the column names in line
1 of `file_name`.
'''
Expand Down Expand Up @@ -370,7 +370,7 @@ def index_of_model_number(self, m_num):
return index[0]

def remove_backups(self, dbg=False):
'''Cleases a history file of backups and restarts
'''Cleanses a history file of backups and restarts
If the file is a history file, goes through and ensure that the
model_number data are monotonically increasing. It removes rows of data
Expand Down Expand Up @@ -410,12 +410,6 @@ def __getattr__(self, method_name):
else:
raise AttributeError(method_name)

def _file_len(fname):
with open(fname) as f:
for i, l in enumerate(f):
pass
return i + 1


class MesaProfileIndex:

Expand Down

0 comments on commit 3022e6f

Please sign in to comment.