Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
philrosenfield committed Sep 5, 2016
1 parent 1797cab commit b196c81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
16 changes: 1 addition & 15 deletions fileio/fileIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,14 @@

__all__ = ['ensure_dir', 'ensure_file', 'get_files', 'load_input', 'get_dirs',
'load_eepdefs', 'replace_ext', 'tfm_indict', 'ts_indict',
'find_ptcri', 'save_ptcri']


def find_ptcri(prefix, ptcrifile_loc=os.getcwd()):
search_term = 'p2m*{0:s}*Y*dat'.format(prefix.split('Y')[0])
ptcris = get_files(ptcrifile_loc, search_term)
print(search_term, ptcris)
try:
ptcri_file, = [p for p in ptcris if 'hb' not in p]
hbptcri_file, = [p for p in ptcris if 'hb' in p]
retv = [ptcri_file, hbptcri_file]
except:
retv = []
return retv
'save_ptcri']


def save_ptcri(line, loc=None, prefix=None):
'''save parsec2match EEPs in similar format as sandro's'''
import operator
from ..eep.critical_point import Eep
print('fileio.save_ptcri is broken.')
return
loc == loc or os.getcwd()
prefix = prefix or ''
if len(prefix) > 0:
Expand Down
1 change: 1 addition & 0 deletions preprocessing/ptcri_hb.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def format_ptcriHB(filename, nptcri=5):


def main(argv):
"""main function for format_ptcriHB"""
parser = argparse.ArgumentParser(
description="convert a dbert HB file to a data HB file")

Expand Down
2 changes: 1 addition & 1 deletion tracks/track_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import pandas as pd
import scipy

from ..fileio import get_files, get_dirs, ts_indict, find_ptcri
from ..fileio import get_files, get_dirs, ts_indict
from ..utils import sort_dict, filename_data

from .track import Track
Expand Down

0 comments on commit b196c81

Please sign in to comment.