Title: ENH - put toolbox extraparameter handling in specific classes · Issue #311 · automaticanalysis/automaticanalysis · GitHub
Open Graph Title: ENH - put toolbox extraparameter handling in specific classes · Issue #311 · automaticanalysis/automaticanalysis
X Title: ENH - put toolbox extraparameter handling in specific classes · Issue #311 · automaticanalysis/automaticanalysis
Description: Currently, in aas_inittoolbox there is a parsing of toolbox extraparameters. This assumes that the extraparameters for different toolboxes can be handled the same, whereas this is something that is actually quite specific for a particula...
Open Graph Description: Currently, in aas_inittoolbox there is a parsing of toolbox extraparameters. This assumes that the extraparameters for different toolboxes can be handled the same, whereas this is something that is...
X Description: Currently, in aas_inittoolbox there is a parsing of toolbox extraparameters. This assumes that the extraparameters for different toolboxes can be handled the same, whereas this is something that is...
Opengraph URL: https://github.com/automaticanalysis/automaticanalysis/issues/311
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ENH - put toolbox extraparameter handling in specific classes","articleBody":"Currently, in aas_inittoolbox there is a parsing of toolbox extraparameters. This assumes that the extraparameters for different toolboxes can be handled the same, whereas this is something that is actually quite specific for a particular toolbox. I.e. that if there are colons in the value, then that value should be split.\r\n\r\nSince the extraparameters are specific for a particular toolbox, it makes more sense to put the handling of these parameters as a static method in the specific toolbox class. That also makes it more clear which toolboxes have known extraparameters.\r\n\r\nThe toolboxClass they all derive from would define a do-nothing default method, or even no method at all, since the method will only be called for classes that expect extraparameters.\r\n\r\nIn aas_inittoolbox it could then look something like\r\n\r\n```\r\n params = {};\r\n if isfield(TBX,'extraparameters') \u0026\u0026 ~isempty(TBX.extraparameters)\r\n parse_extra = str2func([tbxname 'Class.parseExtraParameters']);\r\n params = parse_extra(TBX.extraparameters);\r\n end\r\n\r\n constr = str2func([tbxname 'Class']); \r\n T = constr(TBX.dir,params{:});\r\n```","author":{"url":"https://github.com/AljenU","@type":"Person","name":"AljenU"},"datePublished":"2021-12-08T09:50:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/311/automaticanalysis/issues/311"}
| 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:8218f65b-cfad-d28c-5a62-d8690f9ff3c9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D9B4:3FB3CA:1910B61:2034005:697E11A9 |
| html-safe-nonce | dd9ad62a57f3807163523ed43a27abc6faf1e91601d10e58407468efaad55ab2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOUI0OjNGQjNDQToxOTEwQjYxOjIwMzQwMDU6Njk3RTExQTkiLCJ2aXNpdG9yX2lkIjoiMjcxNTU5MDM5MDAzNDg2MjUwNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dfe3e4561b041fde8cfe483a388c66d121d230cc242c319a395f009b72831524 |
| hovercard-subject-tag | issue:1074212638 |
| 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/automaticanalysis/automaticanalysis/311/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5800c295085dddb2f296bc9a71733bbfe356b8dd98667795985ecfee2316d434/automaticanalysis/automaticanalysis/issues/311 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5800c295085dddb2f296bc9a71733bbfe356b8dd98667795985ecfee2316d434/automaticanalysis/automaticanalysis/issues/311 |
| og:image:alt | Currently, in aas_inittoolbox there is a parsing of toolbox extraparameters. This assumes that the extraparameters for different toolboxes can be handled the same, whereas this is something that is... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AljenU |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/automaticanalysis/automaticanalysis git https://github.com/automaticanalysis/automaticanalysis.git |
| octolytics-dimension-user_id | 44203535 |
| octolytics-dimension-user_login | automaticanalysis |
| octolytics-dimension-repository_id | 3820833 |
| octolytics-dimension-repository_nwo | automaticanalysis/automaticanalysis |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3820833 |
| octolytics-dimension-repository_network_root_nwo | automaticanalysis/automaticanalysis |
| 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 | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width