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/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:bc1466f1-c656-17c5-08a6-b8f4760d4c42 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | D0E8:162028:B2CECF1:E71B1BD:697F5519 |
| html-safe-nonce | cec96b2bd0b99b6853bec93d916b8fd54fe48058140099112bc68eca832476c8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEU4OjE2MjAyODpCMkNFQ0YxOkU3MUIxQkQ6Njk3RjU1MTkiLCJ2aXNpdG9yX2lkIjoiMzEyNTQyMzk0NzYwNTAzODM2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 17bf534095868bc1bd16641b97f3893e06ad65c7f867b21727818a77a060fec7 |
| hovercard-subject-tag | pull_request:736253081 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/files |
| 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 |
| diff-view | unified |
| 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 |
| disable-turbo | true |
| 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