Title: Query function in generated python code not handled · Issue #376 · stepcode/stepcode · GitHub
Open Graph Title: Query function in generated python code not handled · Issue #376 · stepcode/stepcode
X Title: Query function in generated python code not handled · Issue #376 · stepcode/stepcode
Description: Hi, I'm currently using the python code generated by using the IFC2X3 schema and noticed that the DERIVE/WHERE statements that use the QUERY function don't appear to be converted properly into python code. For example, IfcRelAssociatesMa...
Open Graph Description: Hi, I'm currently using the python code generated by using the IFC2X3 schema and noticed that the DERIVE/WHERE statements that use the QUERY function don't appear to be converted properly into pyth...
X Description: Hi, I'm currently using the python code generated by using the IFC2X3 schema and noticed that the DERIVE/WHERE statements that use the QUERY function don't appear to be converted properly i...
Opengraph URL: https://github.com/stepcode/stepcode/issues/376
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Query function in generated python code not handled","articleBody":"Hi,\r\n\r\nI'm currently using the python code generated by using the IFC2X3 schema and noticed that the DERIVE/WHERE statements that use the QUERY function don't appear to be converted properly into python code.\r\n\r\nFor example, IfcRelAssociatesMaterial has a where statement:\r\n\r\n```\r\nWR21 : SIZEOF(QUERY(temp \u003c* SELF\\IfcRelAssociates.RelatedObjects | \r\n('IFC2X3.IFCFEATUREELEMENTSUBTRACTION' IN TYPEOF(temp))\r\nOR ('IFC2X3.IFCVIRTUALELEMENT' IN TYPEOF(temp))\r\n)) = 0;\r\n```\r\n\r\nThe python code generated for this where statement is:\r\n```\r\ndef wr21(self):\r\n\teval_wr21_wr = (SIZEOF(None) == 0)\r\n\tif not eval_wr21_wr:\r\n\t\traise AssertionError('Rule wr21 violated')\r\n\telse:\r\n\t\treturn eval_wr21_wr\r\n```\r\n\r\nIs this the intended behavior?\r\n\r\nThanks for any responses!\r\n","author":{"url":"https://github.com/Enhaloed","@type":"Person","name":"Enhaloed"},"datePublished":"2018-04-19T01:02:32Z","url":"https://github.com/stepcode/stepcode/issues/376"}
| 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:aefbb91c-636f-13d9-dcf7-c2cd4367c27b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCF2:AF327:223526:2F1735:6B0467CC |
| html-safe-nonce | cbb63ef4bffbfd2893e47727f440f1c3455742cd7815ff81609bd034b45630ff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0YyOkFGMzI3OjIyMzUyNjoyRjE3MzU6NkIwNDY3Q0MiLCJ2aXNpdG9yX2lkIjoiMjYzMDAwNDMwNjE3MDExMTk0OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c7a46148222ad01b97dd2d00d53b0269e10c0b93a09f065bd422e7bd9648b4fb |
| hovercard-subject-tag | issue:315692029 |
| 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/stepcode/stepcode/376/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d6a676e88efde4525dc18134a9298a5aafc3181f722097197a10e6e8e1a6aa90/stepcode/stepcode/issues/376 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d6a676e88efde4525dc18134a9298a5aafc3181f722097197a10e6e8e1a6aa90/stepcode/stepcode/issues/376 |
| og:image:alt | Hi, I'm currently using the python code generated by using the IFC2X3 schema and noticed that the DERIVE/WHERE statements that use the QUERY function don't appear to be converted properly into pyth... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Enhaloed |
| hostname | github.com |
| expected-hostname | github.com |
| None | 83e4c0e58c5162177f3c161c5fbad38527ae04c11ac14980f9f9d85ae2027b1f |
| turbo-cache-control | no-preview |
| go-import | github.com/stepcode/stepcode git https://github.com/stepcode/stepcode.git |
| octolytics-dimension-user_id | 1761770 |
| octolytics-dimension-user_login | stepcode |
| octolytics-dimension-repository_id | 1975387 |
| octolytics-dimension-repository_nwo | stepcode/stepcode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1975387 |
| octolytics-dimension-repository_network_root_nwo | stepcode/stepcode |
| 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 | canary-1 |
| 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