From 1e2d6e72ac3e9f6b2c3244702ea5bdad6c0beb0a Mon Sep 17 00:00:00 2001 From: Horea Christian Date: Tue, 6 Dec 2022 15:40:15 -0500 Subject: [PATCH] Making sure the method which sets the attribute has been run --- dandi/files/bids.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dandi/files/bids.py b/dandi/files/bids.py index 67e49b5cc..bc722a179 100644 --- a/dandi/files/bids.py +++ b/dandi/files/bids.py @@ -200,6 +200,7 @@ def get_metadata( return BareAsset(**metadata) def get_validation_bids_version(self) -> str: + self._validate() assert self.bids_dataset_description._bids_version is not None return self.bids_dataset_description._bids_version