Title: get_info() and get_info_2() produce different output · Issue #1692 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: get_info() and get_info_2() produce different output · Issue #1692 · IfcOpenShell/IfcOpenShell
X Title: get_info() and get_info_2() produce different output · Issue #1692 · IfcOpenShell/IfcOpenShell
Description: When evaluating get_info() and get_info_2(), I noticed that for the same IfcProduct, the output generated was slightly different even when using the same parameters. Python Script Snippet: import ifcopenshell ifc = ifcopenshell.open('XXX...
Open Graph Description: When evaluating get_info() and get_info_2(), I noticed that for the same IfcProduct, the output generated was slightly different even when using the same parameters. Python Script Snippet: import i...
X Description: When evaluating get_info() and get_info_2(), I noticed that for the same IfcProduct, the output generated was slightly different even when using the same parameters. Python Script Snippet: import i...
Mail addresses
models@ifcopenshell.org
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/1692
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"get_info() and get_info_2() produce different output","articleBody":"When evaluating get_info() and get_info_2(), I noticed that for the same IfcProduct, the output generated was slightly different even when using the same parameters.\r\n\r\nPython Script Snippet:\r\n```python\r\nimport ifcopenshell\r\nifc = ifcopenshell.open('XXX')\r\nproducts = ifc.by_type('IfcProduct')\r\nprint(products[401].get_info(include_identifier = True, recursive = True, return_type = dict, ignore = []))\r\nprint(products[401].get_info_2(include_identifier = True, recursive = True, return_type = dict, ignore = []))\r\n```\r\n\r\nI then copied both outputs produced, 'sorted' the JSON (JSTool Plug-In in Notepad++) and then did a line-by-line comparison.\r\n\r\nAs per the screenshot below, everything was identical except for IfcDirection and IfcCartesianPoint.\r\n\r\nI would have expected the output to be identical.\r\n\r\nUnfortunately I'm unable to share the file to reproduce this output but I'm happy to try bug fixes locally and report back if the issue is resolved.\r\n\r\n\r\n\r\nPS: I'm using ifcopenshell version: 0.6.0b0 on Windows 10 with Python 3.9.1 (Miniconda).\r\n","author":{"url":"https://github.com/benihildebrand","@type":"Person","name":"benihildebrand"},"datePublished":"2021-08-25T08:49:26Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/1692"}
| 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:570992ce-5287-7caf-950a-b8d8fd2bd18e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3F6:18CB59:19124E:225414:6B04B41F |
| html-safe-nonce | 988e1a33c8ee4ce3beef408b494d0390d584fdf6202dc781ff40fe8b846ca451 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0Y2OjE4Q0I1OToxOTEyNEU6MjI1NDE0OjZCMDRCNDFGIiwidmlzaXRvcl9pZCI6IjU2OTIwNDI3OTM5MzgzNjc1MTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6431e83346d9fcda76b1d847014b97e89e6f6d1097c49a2f1d4277ed627e3964 |
| hovercard-subject-tag | issue:978886209 |
| 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/1692/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eec477c778b969f7452f841a7375835161b5a801ba898e7f3a163451e497a8da/IfcOpenShell/IfcOpenShell/issues/1692 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eec477c778b969f7452f841a7375835161b5a801ba898e7f3a163451e497a8da/IfcOpenShell/IfcOpenShell/issues/1692 |
| og:image:alt | When evaluating get_info() and get_info_2(), I noticed that for the same IfcProduct, the output generated was slightly different even when using the same parameters. Python Script Snippet: import i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | benihildebrand |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| 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 | b032e77f1ea437ede6c115446a0a467709b468e7 |
| 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