Skip to content

Commit 12aa267

Browse files
committed
Refactor import
1 parent 1226a19 commit 12aa267

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/azul/plugins/repository/tdr_hca/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@
7474
MutableJSON,
7575
MutableJSONs,
7676
)
77-
from humancellatlas.data.metadata.api import (
78-
Entity,
77+
from humancellatlas.data.metadata import (
78+
api,
7979
)
8080

8181
log = logging.getLogger(__name__)
@@ -187,7 +187,7 @@ def file_from_row(cls, row: BigQueryRow) -> HCAFile:
187187
descriptor = json.loads(row['descriptor'])
188188
# FIXME: Move validation of descriptor to the metadata API
189189
# https://github.com/DataBiosphere/azul/issues/6299
190-
Entity.validate_described_by(descriptor)
190+
api.Entity.validate_described_by(descriptor)
191191
return HCAFile.from_descriptor(descriptor,
192192
uuid=descriptor['file_id'],
193193
name=row['file_name'],

0 commit comments

Comments
 (0)