Skip to content

Commit

Permalink
update some more clals
Browse files Browse the repository at this point in the history
  • Loading branch information
gonuke committed Mar 30, 2024
1 parent e1b3f6a commit 3272199
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dagmc/dagnav.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def groups(self) -> Dict[str, Group]:
return group_mapping

def __repr__(self):
return f'{type(self).__name__} {self.id}, {self.num_triangles()} triangles'
return f'{type(self).__name__} {self.id}, {self.num_triangles} triangles'

@cached_property
def id_tag(self):
Expand Down Expand Up @@ -188,7 +188,7 @@ def __hash__(self):
return hash((self.handle, id(self.model)))

def __repr__(self):
return f'{type(self).__name__} {self.id}, {self.num_triangles()} triangles'
return f'{type(self).__name__} {self.id}, {self.num_triangles} triangles'

def _tag_get_data(self, tag: tag.Tag):
return self.model.mb.tag_get_data(tag, self.handle, flat=True)[0]
Expand Down
2 changes: 1 addition & 1 deletion test/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def test_group_merge(request):
new_group = dagmc.Group.create(model, 'mat:fuel')

# add one of other volumes to the new set
for vol in model.volumes.values():
for vol in model.volumes:
new_group.add_set(vol)

assert orig_group != new_group
Expand Down

0 comments on commit 3272199

Please sign in to comment.