Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
sambles committed Jan 31, 2025
1 parent 7926282 commit a2612c1
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/model_execution_worker/distributed_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,22 +103,6 @@ def load_location_data(loc_filepath, oed_schema_info=None):
prepare_oed_exposure(exposure)
return exposure.location.dataframe

# try:
# # oasislmf == 1.26.x or 1.23.x
# from oasislmf.utils.data import get_location_df
# return get_location_df(loc_filepath)
# except ImportError:
# # oasislmf == 1.27.x or greater
# from oasislmf.utils.data import prepare_location_df
# from ods_tools.oed.exposure import OedExposure

# exposure = OedExposure(
# location=pathlib.Path(os.path.abspath(loc_filepath)),
# oed_schema_info=oed_schema_info,
# )
exposure.location.dataframe = prepare_location_df(exposure.location.dataframe)
return exposure.location.dataframe


def check_task_redelivered(task, analysis_id, initiator_id, task_slug, error_state):
""" Safe guard to check if task has been attempted on worker
Expand Down

0 comments on commit a2612c1

Please sign in to comment.