Title: add support for dicts in compare · Issue #230 · larray-project/larray-editor · GitHub
Open Graph Title: add support for dicts in compare · Issue #230 · larray-project/larray-editor
X Title: add support for dicts in compare · Issue #230 · larray-project/larray-editor
Description: I just had to compare many sessions and naturally put them in a dict of sessions, then wanted to compare them and tried compare(dict_of_sessions) but it does not work (compare(dict_of_arrays) does not work either) but the workaround felt...
Open Graph Description: I just had to compare many sessions and naturally put them in a dict of sessions, then wanted to compare them and tried compare(dict_of_sessions) but it does not work (compare(dict_of_arrays) does ...
X Description: I just had to compare many sessions and naturally put them in a dict of sessions, then wanted to compare them and tried compare(dict_of_sessions) but it does not work (compare(dict_of_arrays) does ...
Opengraph URL: https://github.com/larray-project/larray-editor/issues/230
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"add support for dicts in compare","articleBody":"I just had to compare many sessions and naturally put them in a dict of sessions, then wanted to compare them and tried `compare(dict_of_sessions)` but it does not work (`compare(dict_of_arrays)` does not work either) but the workaround felt very clunky:\r\n\r\n```python\r\ncompare(*dict_of_arrays.values(), names=list(dict_of_arrays.keys()))\r\ncompare(*dict_of_sessions.values(), names=list(dict_of_sessions.keys()))\r\n```\r\n* the fact you have to pass values and names separately is annoying\r\n* the difference between *args for values and a single list argument of names is odd/surprising\r\n* the fact that names only accepts lists and not tuples or dictkeyview is the icing on the cake\r\n\r\nOn the other hand, I know that forever expanding the API is not a good idea, but I see this akin to what we support for rename, set_labels etc.\r\n\r\nMaybe we should deprecate the names= argument of compare (and possibly even the *args syntax) and instead replace it with:\r\n\r\n```python\r\ncompare(obj1, obj2=None)\r\n```\r\nwhich we could thus call either:\r\n```python\r\ncompare(obj1, obj2)\r\ncompare(dict)\r\n```","author":{"url":"https://github.com/gdementen","@type":"Person","name":"gdementen"},"datePublished":"2022-07-04T09:09:19Z","url":"https://github.com/larray-project/larray-editor/issues/230"}
| 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:4037e3e0-7803-f916-ac17-f7136ec56fd0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 812C:3EE843:20A39C7:2C798F3:6B0025EC |
| html-safe-nonce | 2594ee7dd495de955fdb98a7ad337d9017b9036c7a00ffaad7b64669adf3954a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MTJDOjNFRTg0MzoyMEEzOUM3OjJDNzk4RjM6NkIwMDI1RUMiLCJ2aXNpdG9yX2lkIjoiNjUwMDMxOTY3NzI4NDA5OTU2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 4b82ce7f2b88a3fec333cd775c49066bac5307ace95ea74c6aefad9fe9340ccb |
| hovercard-subject-tag | issue:1292865592 |
| 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/larray-project/larray-editor/230/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4f59d25f55591d184e5d7ca37ec31c803aef9881cea08e8171b65c0a68ef6d5f/larray-project/larray-editor/issues/230 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4f59d25f55591d184e5d7ca37ec31c803aef9881cea08e8171b65c0a68ef6d5f/larray-project/larray-editor/issues/230 |
| og:image:alt | I just had to compare many sessions and naturally put them in a dict of sessions, then wanted to compare them and tried compare(dict_of_sessions) but it does not work (compare(dict_of_arrays) does ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gdementen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4eb4cba0d69f045374ac15de9666d22b0961e1d555cc3824f36b7734c00c78e0 |
| turbo-cache-control | no-preview |
| go-import | github.com/larray-project/larray-editor git https://github.com/larray-project/larray-editor.git |
| octolytics-dimension-user_id | 26460981 |
| octolytics-dimension-user_login | larray-project |
| octolytics-dimension-repository_id | 95664837 |
| octolytics-dimension-repository_nwo | larray-project/larray-editor |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 95664837 |
| octolytics-dimension-repository_network_root_nwo | larray-project/larray-editor |
| 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 | 44c658b24abf00491fb7ae5f56d42c9f38cbeab2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width