Skip to content

Commit

Permalink
fix an extension detection call
Browse files Browse the repository at this point in the history
  • Loading branch information
fdechaumont committed Sep 27, 2022
1 parent 348b339 commit 9ddd569
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1471,7 +1471,7 @@ def plotZScoreProfileAutoHorizontal(ax, cat, koDataframe, night, eventListForTes

print(file)
head, tail = os.path.split(file)
extension = head[-4:]
extension = tail[-4:]
print('extension: ', extension)

connection = sqlite3.connect( file )
Expand Down Expand Up @@ -1510,7 +1510,7 @@ def plotZScoreProfileAutoHorizontal(ax, cat, koDataframe, night, eventListForTes
print("Profile data saved.")

# Create a json file to store the computation
with open("profile_data_{}_{}.json".format('over_night', extension), 'w') as fp:
with open( f"profile_data_over_night_{extension}.json", 'w') as fp:
json.dump(profileData, fp, indent=4)
print(extension)
print("json file with profile measurements created.")
Expand Down

0 comments on commit 9ddd569

Please sign in to comment.