diff --git a/nmdc_runtime/site/resources.py b/nmdc_runtime/site/resources.py index fd61db6f..1e132b0e 100644 --- a/nmdc_runtime/site/resources.py +++ b/nmdc_runtime/site/resources.py @@ -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}") diff --git a/nmdc_runtime/site/translation/submission_portal_translator.py b/nmdc_runtime/site/translation/submission_portal_translator.py index ccac1d3c..230240e4 100644 --- a/nmdc_runtime/site/translation/submission_portal_translator.py +++ b/nmdc_runtime/site/translation/submission_portal_translator.py @@ -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 ) @@ -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)