Skip to content

Commit

Permalink
removing lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
Robbie1977 committed Sep 4, 2024
1 parent f12ceb3 commit 9b1a4cd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/vfb_connect/schema/vfb_term.py
Original file line number Diff line number Diff line change
Expand Up @@ -1780,7 +1780,7 @@ def parents(self):
"""
if self._parents is None:
print("Loading parents for the first time...") if self.debug else None
self._parents = VFBTerms(self._parents_ids) if self._parents_ids else None
self._parents = VFBTerms(self._parents_ids, query_by_label=False) if self._parents_ids else None
return self._parents

def add_anatomy_type_properties(self):
Expand Down Expand Up @@ -1854,7 +1854,7 @@ def add_template_properties(self):
def regions(self):
if self._regions is None:
print("Loading regions for the first time...") if self.debug else None
self._regions = VFBTerms(self._regions_ids) if self._regions_ids else None
self._regions = VFBTerms(self._regions_ids, query_by_label=False) if self._regions_ids else None
return self._regions

# Dynamically add the property to the instance
Expand Down Expand Up @@ -1939,7 +1939,7 @@ def instances(self, return_type=None):
return self._instances_names
if self._instances is None:
print("Creating instances for the first time...")
self._instances = VFBTerms(self._instances_ids, verbose=self.debug)
self._instances = VFBTerms(self._instances_ids, verbose=self.debug, query_by_label=False)
print(f"Got {len(self._instances)} instances...") if self.debug else None
return self._instances

Expand All @@ -1960,7 +1960,7 @@ def datasets(self):
"""
if self._datasets is None:
print("Loading datasets for the first time...") if self.debug else None
self._datasets = VFBTerms(self._dataset_ids) if self._dataset_ids else None
self._datasets = VFBTerms(self._dataset_ids, query_by_label=False) if self._dataset_ids else None
return self._datasets

# Dynamically add the property to the instance
Expand All @@ -1974,7 +1974,7 @@ def subtypes(self):
"""
if self._subtypes is None:
print("Loading subtypes for the first time...") if self.debug else None
self._subtypes = VFBTerms(self.vfb.oc.get_subclasses(query=f"'{self.id}'", ))
self._subtypes = VFBTerms(self.vfb.oc.get_subclasses(query=f"'{self.id}'", ), query_by_label=False)
return self._subtypes

@property
Expand All @@ -1984,7 +1984,7 @@ def subparts(self):
"""
if self._subparts is None:
print("Loading subparts for the first time...") if self.debug else None
self._subparts = VFBTerms(self.vfb.oc.get_subclasses(query=f"'is part of' some '{self.id}'"))
self._subparts = VFBTerms(self.vfb.oc.get_subclasses(query=f"'is part of' some '{self.id}'"), query_by_label=False)
return self._subparts

@property
Expand Down

0 comments on commit 9b1a4cd

Please sign in to comment.