Skip to content

Commit

Permalink
backwards compatible with ecoassist_metadata fields
Browse files Browse the repository at this point in the history
  • Loading branch information
PetervanLunteren authored Feb 23, 2025
1 parent 4b730d1 commit 0686271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions AddaxAI_GUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# GUI to simplify camera trap image analysis with species recognition models
# https://addaxdatascience.com/addaxai/
# Created by Peter van Lunteren
# Latest edit by Peter van Lunteren on 19 Feb 2025
# Latest edit by Peter van Lunteren on 23 Feb 2025

# TODO: RESUME DOWNLOAD - make some sort of mechanism that either continues the model download when interrupted, or downloads it to /temp/ folder and only moves it to the correct location after succesful download. Otherwise delete from /temp/. That makes sure that users will not be able to continue with half downloaded models.
# TODO: BUG - when moving files during postprocessing and exporting xlsx on Windows, it errors with an "file is in use". There must be something going on with opening files... does not happen when copying files or on Mac.
Expand Down Expand Up @@ -4465,7 +4465,7 @@ def get_hitl_var_in_json(path_to_json):
# open
with open(path_to_json, "r") as json_file:
data = json.load(json_file)
addaxai_metadata = data['info']["addaxai_metadata"]
addaxai_metadata = data['info'].get("addaxai_metadata") or data['info'].get("ecoassist_metadata") # include old name 'EcoAssist' for backwards compatibility

# get status
if "hitl_status" in addaxai_metadata:
Expand Down

0 comments on commit 0686271

Please sign in to comment.