Try and fix stub test

This commit is contained in:
Thomas Krijnen
2025-10-26 10:03:33 +01:00
parent e5ae19fd34
commit 69863ce4a9
3 changed files with 75 additions and 39 deletions
@@ -71,6 +71,13 @@ FILTERED_CARTESIAN_QUOTIENT: Any
EXACT_PREDICATES: Any EXACT_PREDICATES: Any
EXACT_CONSTRUCTIONS: Any EXACT_CONSTRUCTIONS: Any
FT_AUTODETECT: Any
FT_IFCSPF: Any
FT_IFCXML: Any
FT_IFCZIP: Any
FT_ROCKSDB: Any
FT_UNKNOWN: Any
CURVES: Any CURVES: Any
SURFACES_AND_SOLIDS: Any SURFACES_AND_SOLIDS: Any
CURVES_SURFACES_AND_SOLIDS: Any CURVES_SURFACES_AND_SOLIDS: Any
@@ -96,12 +103,9 @@ class IfcSpfHeader:
""" """
def file(self, *args): ... def file(self, *args): ...
@property def file_description_py(self): ...
def file_description(self) -> ifcopenshell.entity_instance: ... def file_name_py(self): ...
@property def file_schema_py(self): ...
def file_name(self) -> ifcopenshell.entity_instance: ...
@property
def file_schema(self) -> ifcopenshell.entity_instance: ...
def read(self): ... def read(self): ...
def tryRead(self): ... def tryRead(self): ...
def write(self, out): ... def write(self, out): ...
@@ -145,6 +149,7 @@ class ConversionResult:
def Style(self): ... def Style(self): ...
def StylePtr(self): ... def StylePtr(self): ...
def append(self, trsf): ... def append(self, trsf): ...
def apply_transform(self, unit_scale): ...
def hasStyle(self): ... def hasStyle(self): ...
def prepend(self, trsf): ... def prepend(self, trsf): ...
def setStyle(self, newStyle): ... def setStyle(self, newStyle): ...
@@ -157,6 +162,7 @@ class ConversionResultShape:
def axis(self): ... def axis(self): ...
def bounding_box(self, *args): ... def bounding_box(self, *args): ...
def box(self): ... def box(self): ...
def concat(self, arg2): ...
def convex_decomposition(self): ... def convex_decomposition(self): ...
def convex_tag(self, b): ... def convex_tag(self, b): ...
def edges(self): ... def edges(self): ...
@@ -178,9 +184,11 @@ class ConversionResultShape:
def solid(self): ... def solid(self): ...
def solid_mt(self): ... def solid_mt(self): ...
def subtract(self, arg2): ... def subtract(self, arg2): ...
def surface_area_along_direction(self, tol, arg3, along_x, along_y, along_z): ...
def surface_genus(self): ... def surface_genus(self): ...
def vertices(self): ... def vertices(self): ...
def volume(self): ... def volume(self): ...
def wrap_in_compound(self): ...
class DoubleArray3: class DoubleArray3:
def back(self): ... def back(self): ...
@@ -284,11 +292,6 @@ class HdfSerializer(GeometrySerializer):
def write(self, *args): ... def write(self, *args): ...
def writeHeader(self): ... def writeHeader(self): ...
class HeaderEntity:
def getArgument(self, index): ...
def getArgumentCount(self): ...
def toString(self, upper): ...
class IfcBaseEntity(entity_instance): class IfcBaseEntity(entity_instance):
def declaration(self): ... def declaration(self): ...
def get(self, name): ... def get(self, name): ...
@@ -304,9 +307,17 @@ class IfcEntityInstanceData: ...
class IfcLateBoundEntity(IfcBaseEntity): class IfcLateBoundEntity(IfcBaseEntity):
def declaration(self): ... def declaration(self): ...
class InstanceReference: class InstanceStreamer:
file_offset: Any def bypassTypes(self, type_names): ...
v: Any def bypassed_instances(self): ...
coerce_attribute_count: bool
def hasSemicolon(self): ...
def inverses(self, *args): ...
def pushPage(self, page): ...
def readInstancePy(self, type_as_declaration_instance): ...
def references(self, *args): ...
def semicolonCount(self): ...
def status(self): ...
class Iterator: class Iterator:
initialization_outcome_: Any initialization_outcome_: Any
@@ -377,6 +388,17 @@ class Representation:
def settings(self): ... def settings(self): ...
class RocksDBPrefixIterator:
def key(self): ...
def next(self): ...
def valid(self): ...
def value(self): ...
class RocksDbSerializer:
def finalize(self): ...
def ready(self): ...
def setFile(self, arg2): ...
def writeHeader(self): ...
class Serialization(Representation): class Serialization(Representation):
@property @property
def brep_data(self): ... def brep_data(self): ...
@@ -829,6 +851,7 @@ class entity_instance:
... ...
def get_attribute_names(self): ... def get_attribute_names(self): ...
def get_attribute_value(self, index): ...
def get_inverse(self, a): ... def get_inverse(self, a): ...
def get_inverse_attribute_names(self): ... def get_inverse_attribute_names(self): ...
def id(self) -> int: ... def id(self) -> int: ...
@@ -851,6 +874,7 @@ class entity_instance:
def setArgumentAsLogical(self, i, v): ... def setArgumentAsLogical(self, i, v): ...
def setArgumentAsNull(self, i): ... def setArgumentAsNull(self, i): ...
def setArgumentAsString(self, i, a): ... def setArgumentAsString(self, i, a): ...
def set_attribute_value(self, *args): ...
def toString(self, arg2, upper): ... def toString(self, arg2, upper): ...
def to_string(self, valid_spf): ... def to_string(self, valid_spf): ...
def unset_attribute_value(self, i): ... def unset_attribute_value(self, i): ...
@@ -888,14 +912,10 @@ class face:
def print_impl(self, o, indent): ... def print_impl(self, o, indent): ...
class file: class file:
INSTANCE_ID: Any
INSTANCE_TYPE: Any
ATTRIBUTE_INDEX: Any
guid_map_: Any
stream: Any
def FreshId(self): ... def FreshId(self): ...
def add(self, entity: entity_instance, id: int) -> entity_instance: ... def add(self, entity: entity_instance, id: int) -> entity_instance: ...
def addEntities(self, entities): ... def addEntities(self, entities): ...
def add_type_ref(self, new_entity): ...
def batch(self) -> None: def batch(self) -> None:
"""Enable batch mode. """Enable batch mode.
@@ -919,10 +939,15 @@ class file:
... ...
def build_inverses(self): ... def build_inverses(self): ...
def build_inverses_(self, arg2): ...
def by_guid(self, guid: str) -> entity_instance: ... def by_guid(self, guid: str) -> entity_instance: ...
def by_id(self, id: int) -> entity_instance: ... def by_id(self, id: int) -> entity_instance: ...
def by_type(self, *args): ... def by_type(self, *args): ...
def by_type_excl_subtypes(self, *args): ... def by_type_excl_subtypes(self, *args): ...
def bypass_type(self, type_name): ...
calculate_unit_factors: bool
check_existance_before_adding: bool
def create(self, decl): ...
@staticmethod @staticmethod
def createTimestamp(): ... def createTimestamp(): ...
def entity_names(self) -> tuple[int, ...]: def entity_names(self) -> tuple[int, ...]:
@@ -961,24 +986,27 @@ class file:
def get_total_inverses(self, e: entity_instance) -> int: ... def get_total_inverses(self, e: entity_instance) -> int: ...
def good(self): ... def good(self): ...
@staticmethod def header(self, *args) -> IfcSpfHeader:
def guid_map(*args): ...
def header(self) -> IfcSpfHeader:
"""Internal IfcSpfHeader instance, always prefer ``ifcopenshell.file.header`` instead.""" """Internal IfcSpfHeader instance, always prefer ``ifcopenshell.file.header`` instead."""
def ifcroot_type(self) -> entity: ... def ifcroot_type(self) -> entity: ...
def internal_guid_map(self): ... def initialize(self, *args): ...
def load(self, entity_instance_name, entity, arg4, attribute_index): ... instantiate_typed_instances: bool
def key_value_store_iter(self, prefix): ...
def key_value_store_query(self, key): ...
def process_deletion_inverse(self, inst): ...
def recalculate_id_counter(self): ... def recalculate_id_counter(self): ...
def remove(self, entity: entity_instance) -> None: ... def remove(self, entity: entity_instance) -> None: ...
def remove_type_ref(self, new_entity): ...
def reset_identity_cache(self): ...
@property @property
def schema(self): ... def schema(self): ...
def storage_mode(self): ...
def to_string(self): ... def to_string(self): ...
@staticmethod @staticmethod
def traverse(instance: entity_instance, max_level: int) -> tuple[entity_instance, ...]: ... def traverse(instance: entity_instance, max_level: int) -> tuple[entity_instance, ...]: ...
@staticmethod @staticmethod
def traverse_breadth_first(instance: entity_instance, max_level: int) -> tuple[entity_instance, ...]: ... def traverse_breadth_first(instance: entity_instance, max_level: int) -> tuple[entity_instance, ...]: ...
def try_read_semicolon(self): ...
def types(self) -> tuple[str, ...]: def types(self) -> tuple[str, ...]:
"""Return a tuple of classes present in the file. """Return a tuple of classes present in the file.
@@ -986,16 +1014,15 @@ class file:
""" """
... ...
def types_begin(self): ...
def types_end(self): ...
def write(self, fn): ... def write(self, fn): ...
class file_open_status: class file_open_status:
SUCCESS: Any SUCCESS: int
READ_ERROR: Any READ_ERROR: int
NO_HEADER: Any NO_HEADER: int
UNSUPPORTED_SCHEMA: Any UNSUPPORTED_SCHEMA: int
INVALID_SYNTAX: Any INVALID_SYNTAX: int
UNKNOWN: int
def value(self): ... def value(self): ...
class fn_evaluator: class fn_evaluator:
@@ -1037,9 +1064,6 @@ class geometry_conversion_result:
products_2: Any products_2: Any
representation: Any representation: Any
class geometry_exception:
def what(self): ...
class gradient_function(function_item): class gradient_function(function_item):
def calc_hash(self): ... def calc_hash(self): ...
def clone_(self): ... def clone_(self): ...
@@ -1138,6 +1162,8 @@ class matrix4(item):
def is_identity(self): ... def is_identity(self): ...
def kind(self): ... def kind(self): ...
def translation_part(self): ... def translation_part(self): ...
def post_multiply_scale(self, s): ...
def pre_multiply_scale(self, s): ...
class named_type(parameter_type): class named_type(parameter_type):
def _is(self, *args): ... def _is(self, *args): ...
@@ -1516,13 +1542,11 @@ class sweep(geom_item):
class sweep_along_curve(sweep): class sweep_along_curve(sweep):
curve: Any curve: Any
surface: Any surface: Any
direction: Any
def calc_hash(self): ... def calc_hash(self): ...
def clone_(self): ... def clone_(self): ...
def kind(self): ... def kind(self): ...
class too_many_faces_exception(geometry_exception): ...
class topology_error: ...
class torus(surface): class torus(surface):
radius1: Any radius1: Any
radius2: Any radius2: Any
@@ -1568,6 +1592,8 @@ class type_declaration(declaration):
def as_type_declaration(self) -> type_declaration: ... def as_type_declaration(self) -> type_declaration: ...
def declared_type(self): ... def declared_type(self): ...
class uninitialized_tag: ...
def arrange_polygons(polygons): ... def arrange_polygons(polygons): ...
def clear_schemas(): ... def clear_schemas(): ...
def construct_iterator_with_include_exclude(geometry_library, settings, file, elems, include, num_threads): ... def construct_iterator_with_include_exclude(geometry_library, settings, file, elems, include, num_threads): ...
@@ -1581,6 +1607,7 @@ def flatten(deep): ...
def get_feature(x): ... def get_feature(x): ...
def get_info_cpp(v, include_identifier): ... def get_info_cpp(v, include_identifier): ...
def get_log(): ... def get_log(): ...
def guess_file_type(fn): ...
def helmert_curve_point(A0, A1, A2, s): ... def helmert_curve_point(A0, A1, A2, s): ...
def kind_to_string(k): ... def kind_to_string(k): ...
def less(arg1, arg2): ... def less(arg1, arg2): ...
@@ -1588,7 +1615,7 @@ def line_segments_to_polygons(s, eps, segments): ...
def map_shape(settings, instance): ... def map_shape(settings, instance): ...
def nary_union(sequence): ... def nary_union(sequence): ...
def new_IfcBaseClass(schema_identifier: str, name: str) -> entity_instance: ... def new_IfcBaseClass(schema_identifier: str, name: str) -> entity_instance: ...
def open(fn): ... def open(fn, readonly): ...
def parse_ifcxml(filename): ... def parse_ifcxml(filename): ...
def polygons_to_svg(*args): ... def polygons_to_svg(*args): ...
def read(data): ... def read(data): ...
@@ -1599,6 +1626,7 @@ def serialise(schema_name, shape_str, advanced): ...
def set_feature(x, v): ... def set_feature(x, v): ...
def set_log_format_json(): ... def set_log_format_json(): ...
def set_log_format_text(): ... def set_log_format_text(): ...
def stream_from_string(data): ...
def svg_to_line_segments(data, class_name): ... def svg_to_line_segments(data, class_name): ...
def svg_to_polygons(data, class_name): ... def svg_to_polygons(data, class_name): ...
def taxonomy_item_repr(i): ... def taxonomy_item_repr(i): ...
+4
View File
@@ -33,6 +33,10 @@ private:
%ignore IfcParse::IfcFile::types_end; %ignore IfcParse::IfcFile::types_end;
%ignore IfcParse::IfcFile::internal_guid_map; %ignore IfcParse::IfcFile::internal_guid_map;
%ignore IfcParse::IfcFile::storage_; %ignore IfcParse::IfcFile::storage_;
%ignore IfcParse::IfcFile::byguid_;
%ignore IfcParse::IfcFile::byid_;
%ignore IfcParse::IfcFile::byref_excl_;
%ignore IfcParse::IfcFile::types_to_bypass_loading_;
%ignore IfcParse::InstanceStreamer::InstanceStreamer(const IfcParse::schema_definition* schema, IfcParse::IfcSpfLexer* lexer); %ignore IfcParse::InstanceStreamer::InstanceStreamer(const IfcParse::schema_definition* schema, IfcParse::IfcSpfLexer* lexer);
+4
View File
@@ -93,6 +93,10 @@
%ignore curve_to_face_upgrade_impl; %ignore curve_to_face_upgrade_impl;
%ignore loop_to_function_item_upgrade_impl; %ignore loop_to_function_item_upgrade_impl;
%ignore IfcGeom::geometry_exception;
%ignore IfcGeom::too_many_faces_exception;
%ignore ifcopenshell::geometry::taxonomy::topology_error;
// settings, can this done more generally? // settings, can this done more generally?
// GeometrySerializer.h // GeometrySerializer.h
%ignore UseElementNames; %ignore UseElementNames;