Title: we lack a real 'addParamGroup' implementation. · Issue #149 · RascalSoftware/python-RAT · GitHub
Open Graph Title: we lack a real 'addParamGroup' implementation. · Issue #149 · RascalSoftware/python-RAT
X Title: we lack a real 'addParamGroup' implementation. · Issue #149 · RascalSoftware/python-RAT
Description: The 'append' method of adding a group of parameters, as described in the manual, is very clunky and not what we need. For example, in the tutorial we have an example which adds three parameters like this: pGroup = [RAT.models.Parameter(n...
Open Graph Description: The 'append' method of adding a group of parameters, as described in the manual, is very clunky and not what we need. For example, in the tutorial we have an example which adds three parameters lik...
X Description: The 'append' method of adding a group of parameters, as described in the manual, is very clunky and not what we need. For example, in the tutorial we have an example which adds three parame...
Opengraph URL: https://github.com/RascalSoftware/python-RAT/issues/149
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"we lack a real 'addParamGroup' implementation.","articleBody":"The 'append' method of adding a group of parameters, as described in the manual, is very clunky and not what we need.\n\nFor example, in the tutorial we have an example which adds three parameters like this:\n\npGroup = [RAT.models.Parameter(name='Layer thick', min=10, value=20, max=30, fit=True),\n RAT.models.Parameter(name='Layer SLD', min=1e-6, value=3e-6, max=5e-6, fit=True),\n RAT.models.Parameter(name='Layer rough', min=5, value=7, max=10, fit=True)]\n\nproblem.parameters.extend(pGroup)\n\nThis is a lot of typing!\n\nIn fact, all the relevant information from that can be summarised in a simple list:\n\nIn [4]: myParams = [['Layer thick',10,20,30,True], ['Layer SLD', 1e-6, 3e-6, 5e-6, True], ['Layer rough',5,7,10,True]]\n\nIn [5]: print(myParams)\n[['Layer thick', 10, 20, 30, True], ['Layer SLD', 1e-06, 3e-06, 5e-06, True], ['Layer rough', 5, 7, 10, True]]\n\nThe addParamGroup option should accept a simple list like this, and then do the Rat.models.Parameter... stuff under the hood for the user. This method would then be in alignment with the Matlab one, where a simple cell array is used to define the parameter block.\n\nA\n\n\n\n","author":{"url":"https://github.com/arwelHughes","@type":"Person","name":"arwelHughes"},"datePublished":"2025-04-23T15:29:10.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/149/python-RAT/issues/149"}
| 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:64b6038c-8510-1cdb-04bf-2780829c8686 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDE6:5F0D6:203CA8D:290956C:6991A589 |
| html-safe-nonce | e9a18411b7cef5ac98f959171c1005d8c3cc4474f84cb4fb052a09563c0a70be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREU2OjVGMEQ2OjIwM0NBOEQ6MjkwOTU2Qzo2OTkxQTU4OSIsInZpc2l0b3JfaWQiOiIyODE3MDU3MjU3MjM3MzU3OTYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 54e6db9cf60a0b8fe946629399182578704588eac7efc80f11ae7f2a6e9d4129 |
| hovercard-subject-tag | issue:3014411978 |
| 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/RascalSoftware/python-RAT/149/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e1db2d444ce8dc6567863156a6fb71be810985de8d2292bb87dd6e3594809468/RascalSoftware/python-RAT/issues/149 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e1db2d444ce8dc6567863156a6fb71be810985de8d2292bb87dd6e3594809468/RascalSoftware/python-RAT/issues/149 |
| og:image:alt | The 'append' method of adding a group of parameters, as described in the manual, is very clunky and not what we need. For example, in the tutorial we have an example which adds three parameters lik... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | arwelHughes |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/RascalSoftware/python-RAT git https://github.com/RascalSoftware/python-RAT.git |
| octolytics-dimension-user_id | 122092643 |
| octolytics-dimension-user_login | RascalSoftware |
| octolytics-dimension-repository_id | 661644646 |
| octolytics-dimension-repository_nwo | RascalSoftware/python-RAT |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 661644646 |
| octolytics-dimension-repository_network_root_nwo | RascalSoftware/python-RAT |
| 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 | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width