Skip to content

Commit f7a2c61

Browse files
authored
Remove custom __str__ methods for scopings container and meshes container (#1420)
1 parent 940794f commit f7a2c61

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

src/ansys/dpf/core/meshes_container.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,3 @@ def add_mesh(self, label_space, mesh):
178178
DPF mesh to add or update.
179179
"""
180180
return super()._add_entry(label_space, mesh)
181-
182-
def __str__(self):
183-
txt = "DPF Meshes Container with\n"
184-
txt += "\t%d mesh(es)\n" % len(self)
185-
txt += f"\tdefined on labels {self.labels} \n\n"
186-
return txt

src/ansys/dpf/core/scopings_container.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,3 @@ def add_scoping(self, label_space, scoping):
100100
DPF scoping to add.
101101
"""
102102
return super()._add_entry(label_space, scoping)
103-
104-
def __str__(self):
105-
txt = "DPF Scopings Container with\n"
106-
txt += "\t%d scoping(s)\n" % len(self)
107-
txt += f"\tdefined on labels {self.labels} \n\n"
108-
return txt

0 commit comments

Comments
 (0)