Skip to content

Commit

Permalink
compat: Remove dict union operator
Browse files Browse the repository at this point in the history
  • Loading branch information
nvictus committed Jul 11, 2024
1 parent e8a490e commit 811ae82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions genomeinfo/core/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,14 @@ def build_assembly_info(cls, local_db: pd.DataFrame, assembly: str) -> Dict[str,
f"patch=='{local_db.assembly.unique()[0]}'"
).metadata.tolist()[0]

return core | {
return dict(core, **{
"species": local_db.species.unique()[0],
"common_name": local_db.common_name.unique()[0],
"synonyms": [local_db.assembly.unique()[0], local_db.assembly_ucsc.unique()[0]],
"patches": local_db.patch.tolist(),
"genbank": local_db.genbank_accession.tolist(),
"refseq": local_db.refseq_accession.tolist(),
}
})


def available_assemblies(cls, provider: Optional[str] = None) -> List[str]:
Expand Down

0 comments on commit 811ae82

Please sign in to comment.