Title: Assign product usecase requires file reference. · Issue #3837 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Assign product usecase requires file reference. · Issue #3837 · IfcOpenShell/IfcOpenShell
X Title: Assign product usecase requires file reference. · Issue #3837 · IfcOpenShell/IfcOpenShell
Description: Running the python example for assign product to task results in: Usecase.__init__() missing 1 required positional argument: 'file' I insert file object as the second argument and it works. Is this the intended method or should I be inst...
Open Graph Description: Running the python example for assign product to task results in: Usecase.__init__() missing 1 required positional argument: 'file' I insert file object as the second argument and it works. Is this...
X Description: Running the python example for assign product to task results in: Usecase.__init__() missing 1 required positional argument: 'file' I insert file object as the second argument and it works....
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/3837
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Assign product usecase requires file reference.","articleBody":"Running the python example for assign product to task results in:\r\n\r\n`Usecase.__init__() missing 1 required positional argument: 'file'`\r\n\r\nI insert file object as the second argument and it works.\r\nIs this the intended method or should I be instanciating something on my task/entitiy_instance?\r\n\r\nhttps://github.com/IfcOpenShell/IfcOpenShell/blob/9461bf21291a11e82ae4713eb68a74f119e48437/src/ifcopenshell-python/ifcopenshell/api/sequence/assign_product.py#L64C1-L65C1\r\n\r\nIt should be:\r\n```\r\n# Let's construct that wall!\r\nifcopenshell.api.run(\"sequence.assign_product\", model, relating_product=wall, related_object=task)\r\n```\r\n\r\n","author":{"url":"https://github.com/taylorhorwood","@type":"Person","name":"taylorhorwood"},"datePublished":"2023-10-02T19:58:43Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/3837"}
| 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:5cbe0c7e-e945-b90a-1a8b-4e7932b0dee7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96D8:2528FA:F8E69:14DFB3:6B04B0B6 |
| html-safe-nonce | c053a3cdba6bef976d09918381af896bd9a4388e463a1a22204dfce368b30d56 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkQ4OjI1MjhGQTpGOEU2OToxNERGQjM6NkIwNEIwQjYiLCJ2aXNpdG9yX2lkIjoiMTg0ODM2MTIyNzk5MTE2NzE1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | aebe990bb487ef4a956e0bf88a3cb34095cad84b430df28b95dbf98d877d19f5 |
| hovercard-subject-tag | issue:1922585169 |
| 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/3837/issue_layout |
| twitter:image | https://opengraph.githubassets.com/eea4f0c22ada0194fa7c61072485eea86f3c45dc3f3cf10f5a05722286667544/IfcOpenShell/IfcOpenShell/issues/3837 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/eea4f0c22ada0194fa7c61072485eea86f3c45dc3f3cf10f5a05722286667544/IfcOpenShell/IfcOpenShell/issues/3837 |
| og:image:alt | Running the python example for assign product to task results in: Usecase.__init__() missing 1 required positional argument: 'file' I insert file object as the second argument and it works. Is this... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | taylorhorwood |
| 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