Title: [SofaPython3] Add in DataHelper dedicated to-string conversion from basedata by damienmarchal · Pull Request #189 · sofa-framework/SofaPython3 · GitHub
Open Graph Title: [SofaPython3] Add in DataHelper dedicated to-string conversion from basedata by damienmarchal · Pull Request #189 · sofa-framework/SofaPython3
X Title: [SofaPython3] Add in DataHelper dedicated to-string conversion from basedata by damienmarchal · Pull Request #189 · sofa-framework/SofaPython3
Description: In SofaPython it was possible do write: node.createObject("MechanicalObejct", position=loader.position) This was working as loader.position was returning the values of the data field. In SofaPython3 ithis will fails as loader.position is not returning anymore the values but the data: node.createObject("MechanicalObejct", position=loader.position) Object creation is still using a systematic to-string conversion (see PR #45), so the data are converted to string using the "repr" operator which does not necesserly generate a sofa-compatible string. When the object to convert is a BaseData... it is much better to rely on the getValueString() fonction which returns a string compatible with sofa.
Open Graph Description: In SofaPython it was possible do write: node.createObject("MechanicalObejct", position=loader.position) This was working as loader.position was returning the values of the data field. In ...
X Description: In SofaPython it was possible do write: node.createObject("MechanicalObejct", position=loader.position) This was working as loader.position was returning the values of the data fi...
Opengraph URL: https://github.com/sofa-framework/SofaPython3/pull/189
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:14b555e5-4a4b-6edc-7b6d-f674ffabbc00 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | 8226:3CE6A6:130D863:18071AB:697F213B |
| html-safe-nonce | cce11e6efa3fb093123c14e88e53bdc9a29c9abefacceafa85592fb71926da8f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjI2OjNDRTZBNjoxMzBEODYzOjE4MDcxQUI6Njk3RjIxM0IiLCJ2aXNpdG9yX2lkIjoiODU0ODk2ODIyOTMzMzA0OTY1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bd261db5fae82acc937a5ffcbb59d86f8e0ab7234844ce5620a7acc2eb9e51c9 |
| hovercard-subject-tag | pull_request:736253081 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/sofa-framework/SofaPython3/pull/189/checks |
| twitter:image | https://avatars.githubusercontent.com/u/12644882?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/12644882?s=400&v=4 |
| og:image:alt | In SofaPython it was possible do write: node.createObject("MechanicalObejct", position=loader.position) This was working as loader.position was returning the values of the data field. In ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/sofa-framework/SofaPython3 git https://github.com/sofa-framework/SofaPython3.git |
| octolytics-dimension-user_id | 11028508 |
| octolytics-dimension-user_login | sofa-framework |
| octolytics-dimension-repository_id | 260159147 |
| octolytics-dimension-repository_nwo | sofa-framework/SofaPython3 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 260159147 |
| octolytics-dimension-repository_network_root_nwo | sofa-framework/SofaPython3 |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width