Skip to content

Commit

Permalink
Merge pull request #51 from zssherman/act_2_0_check
Browse files Browse the repository at this point in the history
MNT: Check for ACT syntax changes for ACT v2.0
  • Loading branch information
rcjackson authored Nov 7, 2023
2 parents a05a1ee + 8df4058 commit c5369b5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pysp2/io/read_hk.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ def read_hk_file(file_name):
hk_df: pandas.DataFrame
The housekeeping information in a pandas DataFrame
"""

my_df = act.io.csvfiles.read_csv(file_name, sep="\t")
try:
my_df = act.io.csvfiles.read_csv(file_name, sep="\t")
except AttributeError:
my_df = act.io.csv.read_csv(file_name, sep="\t")
# Parse time from filename
start_time = pd.Timestamp('1904-01-01')
my_df = my_df.rename({'index': 'time'})
Expand Down

0 comments on commit c5369b5

Please sign in to comment.