Title: QTO Calculation · Issue #10251 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: QTO Calculation · Issue #10251 · IfcOpenShell/IfcOpenShell
X Title: QTO Calculation · Issue #10251 · IfcOpenShell/IfcOpenShell
Description: Bug Description Having a problem with the calculation for QTO. Attachments ### Debug and Error Output ```true os: Windows os_version: 10.0.26300 python_version: 3.13.13 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: Intel...
Open Graph Description: Bug Description Having a problem with the calculation for QTO. Attachments ### Debug and Error Output ```true os: Windows os_version: 10.0.26300 python_version: 3.13.13 architecture: ('64bit', 'Win...
X Description: Bug Description Having a problem with the calculation for QTO. Attachments ### Debug and Error Output ```true os: Windows os_version: 10.0.26300 python_version: 3.13.13 architecture: ('64bit...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/10251
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"QTO Calculation","articleBody":"### Bug Description\n\nHaving a problem with the calculation for QTO. \n\n### Attachments\n\n```\n\n### Debug and Error Output\n\n```true\nos: Windows\nos_version: 10.0.26300\npython_version: 3.13.13\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: Intel64 Family 6 Model 183 Stepping 1, GenuineIntel\nblender_version: 5.3.0\nbonsai_version: 0.9.0-post1\nbonsai_commit_hash: None\nbonsai_commit_date: None\nbonsai_git_branch: None\nlast_actions: \n# operator: BIM_OT_apply_pending_opening_cuts\n# operator: BIM_OT_toggle_host_openings\n# operator: BIM_OT_show_openings\n# operator: BIM_OT_hide_all_openings\n# ifcopenshell.api: document.add_information\n>>> {}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: owner.add_application\n>>> {\"application_developer\": \"None\", \"version\": \"0.9.0\", \"application_full_name\": \"Bonsai\", \"application_identifier\": \"Bonsai-0.9.0\"}\n# ifcopenshell.api: owner.add_actor\n>>> {}\n# ifcopenshell.api: root.create_entity\n>>> {\"ifc_class\": \"IfcActor\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: owner.add_application\n>>> {\"application_developer\": {\"cast_type\": \"entity_instance\", \"value\": 777494, \"Name\": \"IfcOpenShell\"}, \"version\": \"0.9.0\", \"application_full_name\": \"Bonsai\", \"application_identifier\": \"Bonsai-0.9.0\"}\n# ifcopenshell.api: pset.add_pset\n>>> {}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: pset.assign_pset\n>>> {}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: pset.edit_pset\n>>> {\"properties\": \"{'Purpose': 'OTHER', 'UserDefinedPurpose': 'WEBPAGE', 'WWWHomePageURL': 'https://ifcopenshell.org'}\"}\n# operator: BIM_OT_perform_quantity_take_off\nlast_error: Traceback (most recent call last):\n File \"C:\\Users\\engenharia1\\AppData\\Roaming\\Blender Foundation\\Blender\\5.3\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\ifc.py\", line 450, in execute_ifc_operator\n result = getattr(operator, \"_execute\")(context)\n File \"C:\\Users\\engenharia1\\AppData\\Roaming\\Blender Foundation\\Blender\\5.3\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\qto\\operator.py\", line 201, in _execute\n not_quantified_elements = run_quantification(props.qto_rule, elements)\n File \"C:\\Users\\engenharia1\\AppData\\Roaming\\Blender Foundation\\Blender\\5.3\\extensions\\.local\\lib\\python3.13\\site-packages\\bonsai\\bim\\module\\qto\\operator.py\", line 196, in run_quantification\n results = ifc5d.qto.quantify(ifc_file, elements, rules)\n File \"C:\\Users\\engenharia1\\AppData\\Roaming\\Blender Foundation\\Blender\\5.3\\extensions\\.local\\lib\\python3.13\\site-packages\\ifc5d\\qto.py\", line 125, in quantify\n calculator.calculate(ifc_file, filtered_elements, qtos, results)\n ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\engenharia1\\AppData\\Roaming\\Blender Foundation\\Blender\\5.3\\extensions\\.local\\lib\\python3.13\\site-packages\\ifc5d\\qto.py\", line 527, in calculate\n value = formula_functions[formula](geometry)\n File \"C:\\Users\\engenharia1\\AppData\\Roaming\\Blender Foundation\\Blender\\5.3\\extensions\\.local\\lib\\python3.13\\site-packages\\ifcopenshell\\util\\shape.py\", line 127, in get_z\n return (np.max(verts_flat[2::3]) - np.min(verts_flat[2::3])).item()\n ~~~~~~^^^^^^^^^^^^^^^^^^\n File \"C:\\Program Files\\Blender Foundation\\Blender 5.3\\5.3\\python\\Lib\\site-packages\\numpy\\_core\\fromnumeric.py\", line 3164, in max\n return _wrapreduction(a, np.maximum, 'max', axis, None, out,\n keepdims=keepdims, initial=initial, where=where)\n File \"C:\\Program Files\\Blender Foundation\\Blender 5.3\\5.3\\python\\Lib\\site-packages\\numpy\\_core\\fromnumeric.py\", line 86, in _wrapreduction\n return ufunc.reduce(obj, axis, dtype, out, **passkwargs)\n ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nValueError: zero-size array to reduction operation maximum which has no identity\n\nblend_file_path: Not saved\nblend_file_dirty: N/A\nifc_file_path: C:/Users/engenharia1/Desktop/1484.ifc\nifc_is_dirty: True\nifc: 1484.ifc\nschema: IFC4X3\npreprocessor_version: ODA SDAI 24.12\noriginating_system: Autodesk Revit 25.4.50.35 (ENU) - IFC 25.4.50.35\n```","author":{"url":"https://github.com/denizgapres-max","@type":"Person","name":"denizgapres-max"},"datePublished":"2026-11-18T09:39:36Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/10251"}
| 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:e328adab-6633-6186-3b14-8aa706a7ec68 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B598:192237:1756A8:203C49:6B0465B6 |
| html-safe-nonce | a4d6ba9e8b6de45c94d6dc40d565bca72d7768ef74b082062968b0036f25270d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNTk4OjE5MjIzNzoxNzU2QTg6MjAzQzQ5OjZCMDQ2NUI2IiwidmlzaXRvcl9pZCI6Ijc2NDM1NjU1NTY4NzYyMDc1NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 9a08646f45f152bc2aa63f4ab8c277c2a20fa48205dcd37283837836fef0cb1b |
| hovercard-subject-tag | issue:6464225866 |
| 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/10251/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c418805d4033bb16311de90efe97fc53e8ff71f62ac2c0833061b62818e0518b/IfcOpenShell/IfcOpenShell/issues/10251 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c418805d4033bb16311de90efe97fc53e8ff71f62ac2c0833061b62818e0518b/IfcOpenShell/IfcOpenShell/issues/10251 |
| og:image:alt | Bug Description Having a problem with the calculation for QTO. Attachments ### Debug and Error Output ```true os: Windows os_version: 10.0.26300 python_version: 3.13.13 architecture: ('64bit', 'Win... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | denizgapres-max |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| 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 | ca4d07a7cef4e4b75f821dc25e7300d80c1450a9 |
| 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