Skip to content

Commit

Permalink
Removing PyAirtable dependency (#1259) (#1291)
Browse files Browse the repository at this point in the history
Co-authored-by: Daud Ahmed <[email protected]>
Co-authored-by: Dhanshree Arora <[email protected]>
  • Loading branch information
3 people authored Oct 8, 2024
1 parent 56aaaa8 commit 43bbe1d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ersilia/hub/fetch/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,16 @@ def _standard_csv_example(self, model_id):

def _fetch(self, model_id):
self.logger.debug("Starting fetching procedure")
do_hosted = self._decide_if_use_hosted(model_id=model_id)
if do_hosted:
self.logger.debug("Fetching from hosted")
self._fetch_from_hosted(model_id=model_id)
return
do_dockerhub = self._decide_if_use_dockerhub(model_id=model_id)
if do_dockerhub:
self.logger.debug("Decided to fetch from DockerHub")
self._fetch_from_dockerhub(model_id=model_id)
return
do_hosted = self._decide_if_use_hosted(model_id=model_id)
if do_hosted:
self.logger.debug("Fetching from hosted")
self._fetch_from_hosted(model_id=model_id)
return
if self.overwrite is None:
self.logger.debug("Overwriting")
self.overwrite = True
Expand All @@ -244,3 +244,4 @@ def fetch(self, model_id):
model_source_file = os.path.join(self._model_path(model_id), MODEL_SOURCE_FILE)
with open(model_source_file, "w") as f:
f.write(self.model_source)

0 comments on commit 43bbe1d

Please sign in to comment.