mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
Partial revert of 84abf5e91
This commit is contained in:
@@ -414,7 +414,7 @@ def process_expression(context):
|
|||||||
is_literal_str_list = False
|
is_literal_str_list = False
|
||||||
if is_literal_str_list:
|
if is_literal_str_list:
|
||||||
a, b = map(str, context.simple_expression.branches())
|
a, b = map(str, context.simple_expression.branches())
|
||||||
return f"{a}.lower() {str(context.rel_op_extended)} map(str.lower, {b})"
|
return f"{a}.lower() {str(context.rel_op_extended)} {b}"
|
||||||
return concat(context.rel_op_extended, context.simple_expression)
|
return concat(context.rel_op_extended, context.simple_expression)
|
||||||
elif context.multiplication_like_op:
|
elif context.multiplication_like_op:
|
||||||
if str(context.multiplication_like_op.branches()[0]) == "||":
|
if str(context.multiplication_like_op.branches()[0]) == "||":
|
||||||
@@ -936,11 +936,11 @@ def typeof(inst):
|
|||||||
if not inst:
|
if not inst:
|
||||||
# If V evaluates to indeterminate (?), an empty set is returned.
|
# If V evaluates to indeterminate (?), an empty set is returned.
|
||||||
return express_set([])
|
return express_set([])
|
||||||
schema_name = inst.is_a(True).split('.')[0].upper()
|
schema_name = inst.is_a(True).split('.')[0].lower()
|
||||||
def inner():
|
def inner():
|
||||||
decl = ifcopenshell.ifcopenshell_wrapper.schema_by_name(schema_name).declaration_by_name(inst.is_a())
|
decl = ifcopenshell.ifcopenshell_wrapper.schema_by_name(schema_name).declaration_by_name(inst.is_a())
|
||||||
while decl:
|
while decl:
|
||||||
yield '.'.join((schema_name, decl.name().upper()))
|
yield '.'.join((schema_name, decl.name().lower()))
|
||||||
if isinstance(decl, ifcopenshell.ifcopenshell_wrapper.entity):
|
if isinstance(decl, ifcopenshell.ifcopenshell_wrapper.entity):
|
||||||
decl = decl.supertype()
|
decl = decl.supertype()
|
||||||
else:
|
else:
|
||||||
|
|||||||
@@ -4001,6 +4001,7 @@ class IfcArbitraryProfileDefWithVoids_WR2:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def __call__(self):
|
def __call__(self):
|
||||||
innercurves = express_getattr(self, 'InnerCurves', INDETERMINATE)
|
innercurves = express_getattr(self, 'InnerCurves', INDETERMINATE)
|
||||||
|
breakpoint()
|
||||||
assert (sizeof([temp for temp in innercurves if express_getattr(temp, 'Dim', INDETERMINATE) != 2]) == 0) is not False
|
assert (sizeof([temp for temp in innercurves if express_getattr(temp, 'Dim', INDETERMINATE) != 2]) == 0) is not False
|
||||||
|
|
||||||
class IfcArbitraryProfileDefWithVoids_WR3:
|
class IfcArbitraryProfileDefWithVoids_WR3:
|
||||||
|
|||||||
Reference in New Issue
Block a user