MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / getGroupName

Method getGroupName

src/ifc2ca/templates/salome/scriptSalome.py:49–55  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

47 self.create()
48
49 def getGroupName(self, name):
50 if "|" in name:
51 info = name.split("|")
52 sortName = "".join(c for c in info[0] if c.isupper())
53 return f"{sortName[2:]}_{info[1]}"
54 else:
55 return name
56
57 def makePoint(self, pl):
58 """Function to define a Point from

Callers 1

createMethod · 0.95

Calls 2

splitMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected