Skip to content

Commit

Permalink
Apply black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pkalita-lbl committed Jun 24, 2024
1 parent 98c0de9 commit 7eea142
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion nmdc_runtime/site/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,9 @@ def _request(self, method: str, endpoint: str, **kwargs):

headers = kwargs.get("headers", {})
headers["Authorization"] = f"Bearer {self.access_token}"
return requests.request(method, f"{self.base_url}{endpoint}", **kwargs, headers=headers)
return requests.request(
method, f"{self.base_url}{endpoint}", **kwargs, headers=headers
)

def fetch_metadata_submission(self, id: str) -> Dict[str, Any]:
response = self._request("GET", f"/api/metadata_submission/{id}")
Expand Down
8 changes: 6 additions & 2 deletions nmdc_runtime/site/translation/submission_portal_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ def __init__(
self.study_pi_image_url = study_pi_image_url
self.study_funding_sources = study_funding_sources

self.biosample_extras = group_dicts_by_key(BIOSAMPLE_UNIQUE_KEY_SLOT, biosample_extras)
self.biosample_extras = group_dicts_by_key(
BIOSAMPLE_UNIQUE_KEY_SLOT, biosample_extras
)
self.biosample_extras_slot_mapping = group_dicts_by_key(
"subject_id", biosample_extras_slot_mapping
)
Expand Down Expand Up @@ -567,7 +569,9 @@ def get_database(self) -> nmdc.Database:

sample_data = metadata_submission_data.get("sampleData", {})
package_name = metadata_submission_data["packageName"]
sample_data_by_id = groupby(BIOSAMPLE_UNIQUE_KEY_SLOT, concat(sample_data.values()))
sample_data_by_id = groupby(
BIOSAMPLE_UNIQUE_KEY_SLOT, concat(sample_data.values())
)
nmdc_biosample_ids = self._id_minter("nmdc:Biosample", len(sample_data_by_id))
sample_data_to_nmdc_biosample_ids = dict(
zip(sample_data_by_id.keys(), nmdc_biosample_ids)
Expand Down

0 comments on commit 7eea142

Please sign in to comment.