Title: ifctester ids simple value pset prop checks on integers and strings (bug?) · Issue #7245 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: ifctester ids simple value pset prop checks on integers and strings (bug?) · Issue #7245 · IfcOpenShell/IfcOpenShell
X Title: ifctester ids simple value pset prop checks on integers and strings (bug?) · Issue #7245 · IfcOpenShell/IfcOpenShell
Description: Bug Description when using ids with ifctester to check model pset prop values, that are either int (IfcInteger) in the ifc model: https://github.com/buildingSMART/IDS/blob/development/Documentation/ImplementersDocumentation/TestCases/pro...
Open Graph Description: Bug Description when using ids with ifctester to check model pset prop values, that are either int (IfcInteger) in the ifc model: https://github.com/buildingSMART/IDS/blob/development/Documentation...
X Description: Bug Description when using ids with ifctester to check model pset prop values, that are either int (IfcInteger) in the ifc model: https://github.com/buildingSMART/IDS/blob/development/Documentation...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7245
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ifctester ids simple value pset prop checks on integers and strings (bug?)","articleBody":"### Bug Description\n\nwhen using ids with ifctester to check model pset prop values, \nthat are either int (IfcInteger) in the ifc model:\nhttps://github.com/buildingSMART/IDS/blob/development/Documentation/ImplementersDocumentation/TestCases/property/pass-integer_values_are_checked_using_type_casting_1_4.ifc\n\nor string (IfcLabel) with integer text:\nhttps://github.com/buildingSMART/IDS/blob/development/Documentation/ImplementersDocumentation/TestCases/property/pass-a_number_specified_as_a_string_is_treated_as_a_string.ifc\n\nwe get a strange test result matrix, 3 of them work, 1 does not:\n\nfail: 1_check_model_string_prop_with_py_int\npass: 2_check_model_string_prop_with_py_string\npass: 3_check_model_int_prop_with_py_int\npass: 4_check_model_int_prop_with_py_string\n\nwe would have rather expected 0/4, 4/0, or a 2/2 result.\n@Moult : why does only the first check fail - is this a bug or as intended?\n\n\nhere are the two python ifctester snippets (for reproduciblility):\n\n* string_vs_int_check_model_string:\n```python\nimport ifcopenshell\nfrom ifctester import ids, reporter\nfrom pprint import pprint\n\n\nprj_ids = ids.Ids(title=\"string_vs_int_check_model_string\")\n\nspec_1 = ids.Specification(name=\"1_check_model_string_prop_with_py_int\")\nspec_1.applicability.append(ids.Entity(name=\"IFCWALL\"))\nrule = ids.Property(\n baseName=\"Foo\",\n value=1,\n propertySet=\"Foo_Bar\",\n dataType=\"IfcLabel\",\n)\nspec_1.requirements.append(rule)\nprj_ids.specifications.append(spec_1)\n\nspec_2 = ids.Specification(name=\"2_check_model_string_prop_with_py_string\")\nspec_2.applicability.append(ids.Entity(name=\"IFCWALL\"))\nrule = ids.Property(\n baseName=\"Foo\",\n value=\"1\",\n propertySet=\"Foo_Bar\",\n dataType=\"IfcLabel\",\n)\nspec_2.requirements.append(rule)\nprj_ids.specifications.append(spec_2)\n\nids_result = prj_ids.to_xml(r\"d:\\tmp\\ids\\string_vs_int_check_model_string.ids\")\nhtml_path = r\"d:\\tmp\\ids\\string_vs_int_check_model_string.html\"\n# \"https://github.com/buildingSMART/IDS/blob/development/Documentation/ImplementersDocumentation/TestCases/property/pass-a_number_specified_as_a_string_is_treated_as_a_string.ifc\"\nifc_model = ifcopenshell.open(r\"d:\\tmp\\ids\\pass-a_number_specified_as_a_string_is_treated_as_a_string.ifc\")\nprj_ids.validate(ifc_model)\n\nresults = reporter.Json(prj_ids).report()\npprint(results)\n\nhtml_reporter = reporter.Html(prj_ids)\nhtml_reporter.report()\nhtml_reporter.to_file(str(html_path))\n```\n\n* string_vs_int_check_model_int\n```python\nimport ifcopenshell\nfrom ifctester import ids, reporter\nfrom pprint import pprint\n\n\nprj_ids = ids.Ids(title=\"string_vs_int_check_model_int\")\n\nspec_3 = ids.Specification(name=\"3_check_model_int_prop_with_py_int\")\nspec_3.applicability.append(ids.Entity(name=\"IFCWALL\"))\nrule = ids.Property(\n baseName=\"Foo\",\n value=42,\n propertySet=\"Foo_Bar\",\n dataType=\"IfcInteger\",\n)\nspec_3.requirements.append(rule)\nprj_ids.specifications.append(spec_3)\n\nspec_4 = ids.Specification(name=\"4_check_model_int_prop_with_py_string\")\nspec_4.applicability.append(ids.Entity(name=\"IFCWALL\"))\nrule = ids.Property(\n baseName=\"Foo\",\n value=\"42\",\n propertySet=\"Foo_Bar\",\n dataType=\"IfcInteger\",\n)\nspec_4.requirements.append(rule)\nprj_ids.specifications.append(spec_4)\n\nids_result = prj_ids.to_xml(r\"d:\\tmp\\ids\\string_vs_int_check_model_int.ids\")\nhtml_path = r\"d:\\tmp\\ids\\string_vs_int_check_model_int.html\"\n# \"https://github.com/buildingSMART/IDS/blob/development/Documentation/ImplementersDocumentation/TestCases/property/pass-integer_values_are_checked_using_type_casting_1_4.ifc\"\nifc_model = ifcopenshell.open(r\"d:\\tmp\\ids\\pass-integer_values_are_checked_using_type_casting_1_4.ifc\")\nprj_ids.validate(ifc_model)\n\nresults = reporter.Json(prj_ids).report()\npprint(results)\n\nhtml_reporter = reporter.Html(prj_ids)\nhtml_reporter.report()\nhtml_reporter.to_file(str(html_path))\n```\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/ay-ex","@type":"Person","name":"ay-ex"},"datePublished":"2025-10-14T12:37:45Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7245"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7bcb8b95-aa35-8483-4e9c-09649245b117 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBF6:21700E:C6BEC5:10E9573:6B048BF3 |
| html-safe-nonce | 98b529b7044e50d28ad540c8574ffc8b7e234106f922ddfbe27766f752d995cf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkY2OjIxNzAwRTpDNkJFQzU6MTBFOTU3Mzo2QjA0OEJGMyIsInZpc2l0b3JfaWQiOiI3Nzg2MzA5Mzc4MDUzNjAxMTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f366d5dc57c6138cfb1e72247c164185ad863f3931acf3da19b2dc20fe21e4ea |
| hovercard-subject-tag | issue:3513748672 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/7245/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a730a589cbb2ffc1d3283c09287bb82b3bb79d8ecc5e0bd7945e2593670ae2d2/IfcOpenShell/IfcOpenShell/issues/7245 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a730a589cbb2ffc1d3283c09287bb82b3bb79d8ecc5e0bd7945e2593670ae2d2/IfcOpenShell/IfcOpenShell/issues/7245 |
| og:image:alt | Bug Description when using ids with ifctester to check model pset prop values, that are either int (IfcInteger) in the ifc model: https://github.com/buildingSMART/IDS/blob/development/Documentation... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ay-ex |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b297275a74a2c9a35898175c9477837c635d4f579277ebff3b2d6ebd012e247 |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | b51ce57ca6d4565a42856fc1c9897077c794597f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width