Title: Error w/ manual quantification · Issue #7147 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Error w/ manual quantification · Issue #7147 · IfcOpenShell/IfcOpenShell
X Title: Error w/ manual quantification · Issue #7147 · IfcOpenShell/IfcOpenShell
Description: Bug Description When i try and do bim.calculate_single_quantity on something like the following object, I get the following error GlobalId = "3Bwmk9gjDFHgxXMQJ71Nuk" file: https://hub.openingdesign.com/OpeningDesign/Restaurant_Brookfield...
Open Graph Description: Bug Description When i try and do bim.calculate_single_quantity on something like the following object, I get the following error GlobalId = "3Bwmk9gjDFHgxXMQJ71Nuk" file: https://hub.openingdesign...
X Description: Bug Description When i try and do bim.calculate_single_quantity on something like the following object, I get the following error GlobalId = "3Bwmk9gjDFHgxXMQJ71Nuk" file: https://hub.ope...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7147
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error w/ manual quantification","articleBody":"### Bug Description\n\nWhen i try and do `bim.calculate_single_quantity` on something like the following object, I get the following error\n\nGlobalId = \"3Bwmk9gjDFHgxXMQJ71Nuk\"\n\nfile: https://hub.openingdesign.com/OpeningDesign/Restaurant_Brookfield/src/commit/c9c115a985b3babcca740f46be994595108edd88/Open/Models/Bonsai/Restaurant_Brookfield.ifc\n\n\u003cimg width=\"292\" height=\"149\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/56bc2a65-5ef8-476c-b3b3-672291041e8d\" />\n\n\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\nPython: Traceback (most recent call last):\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\ifc.py\", line 526, in execute_ifc_operator\n result = getattr(operator, \"_execute\")(context)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\qto\\operator.py\", line 151, in _execute\n results = ifc5d.qto.quantify(ifc_file, elements, rules)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifc5d\\qto.py\", line 112, in quantify\n calculator.calculate(ifc_file, filtered_elements, qtos, results)\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifc5d\\qto.py\", line 355, in calculate\n value = formula_functions[formula](geometry)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\Ryan Schultz\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\util\\shape.py\", line 118, 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 4.5\\4.5\\python\\Lib\\site-packages\\numpy\\core\\fromnumeric.py\", line 2810, in max\n return _wrapreduction(a, np.maximum, 'max', axis, None, out,\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\python\\Lib\\site-packages\\numpy\\core\\fromnumeric.py\", line 88, 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```","author":{"url":"https://github.com/theoryshaw","@type":"Person","name":"theoryshaw"},"datePublished":"2025-09-21T15:23:31Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7147"}
| 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:d4764563-bd22-4e8e-bc5d-43b29721f6a1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE74:D410B:38B1E:4AA50:6B04AE1E |
| html-safe-nonce | fde2d27b24c229438aca212118a12097b99a9e32ef7d30def32f96fface0dd5b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTc0OkQ0MTBCOjM4QjFFOjRBQTUwOjZCMDRBRTFFIiwidmlzaXRvcl9pZCI6IjgzNjI0NDM2NTgwMjg2OTA5NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d07b6dcace450e3bbc9ea156e36d08323ea8908c9c0e31631882632be65bfded |
| hovercard-subject-tag | issue:3438341252 |
| 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/7147/issue_layout |
| twitter:image | https://opengraph.githubassets.com/85037325dee53fdb4ea273a677f629e404304f7714e879c97ddaf03aad105aee/IfcOpenShell/IfcOpenShell/issues/7147 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/85037325dee53fdb4ea273a677f629e404304f7714e879c97ddaf03aad105aee/IfcOpenShell/IfcOpenShell/issues/7147 |
| og:image:alt | Bug Description When i try and do bim.calculate_single_quantity on something like the following object, I get the following error GlobalId = "3Bwmk9gjDFHgxXMQJ71Nuk" file: https://hub.openingdesign... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | theoryshaw |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| 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