Title: Foreign key to a union · Issue #324 · datajoint/datajoint-python · GitHub
Open Graph Title: Foreign key to a union · Issue #324 · datajoint/datajoint-python
X Title: Foreign key to a union · Issue #324 · datajoint/datajoint-python
Description: In many applications, a need arises to converge two pipelines into one. A desired feature would be to have a foreign key into the union of two tables. For example, imagine that two schemas s1 and s2 have the table Scan. Both s1.Scan and ...
Open Graph Description: In many applications, a need arises to converge two pipelines into one. A desired feature would be to have a foreign key into the union of two tables. For example, imagine that two schemas s1 and s...
X Description: In many applications, a need arises to converge two pipelines into one. A desired feature would be to have a foreign key into the union of two tables. For example, imagine that two schemas s1 and s...
Opengraph URL: https://github.com/datajoint/datajoint-python/issues/324
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Foreign key to a union","articleBody":"In many applications, a need arises to converge two pipelines into one. A desired feature would be to have a foreign key into the union of two tables. For example, imagine that two schemas `s1` and `s2` have the table `Scan`. Both `s1.Scan` and `s2.Scan` have the same primary key structure but the tables contain non-overlapping sets of primary key values. \r\n\r\nSuppose we need to compute some statistic of the scan in the table `ScanStat` for the data in both `s1.Scan` and `s2.Scan`. \r\n\r\nWe want to be able to declare\r\n\r\n```python\r\n@schema\r\nclass ScanStat(dj.Computed):\r\n definition = \"\"\" # Scan statistic\r\n -\u003e s1.Scan + s2.Scan\r\n ----\r\n scan_stat : double\r\n \"\"\"\r\n```","author":{"url":"https://github.com/dimitri-yatsenko","@type":"Person","name":"dimitri-yatsenko"},"datePublished":"2017-06-14T17:53:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/324/datajoint-python/issues/324"}
| 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:dde0e376-f999-020f-4929-d7f143028b2c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9DB6:225C58:6BBA6D:9D12BB:6A4E0EE8 |
| html-safe-nonce | a2e864a615797d620d54145f0ff1660b583bbd1c02cf58bb5cf7eb96c2481a86 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5REI2OjIyNUM1ODo2QkJBNkQ6OUQxMkJCOjZBNEUwRUU4IiwidmlzaXRvcl9pZCI6IjUxODk1NjMyNzg0OTgzMzY0ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ca17355bb42d76a082c6e1fe1db2868c708a86d7a63ff6659e16b525f24afeeb |
| hovercard-subject-tag | issue:235960026 |
| 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/datajoint/datajoint-python/324/issue_layout |
| twitter:image | https://opengraph.githubassets.com/50ed760070d881d835f80c39384107360cdd3d955d115debd0af1c1852be1c9b/datajoint/datajoint-python/issues/324 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/50ed760070d881d835f80c39384107360cdd3d955d115debd0af1c1852be1c9b/datajoint/datajoint-python/issues/324 |
| og:image:alt | In many applications, a need arises to converge two pipelines into one. A desired feature would be to have a foreign key into the union of two tables. For example, imagine that two schemas s1 and s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dimitri-yatsenko |
| hostname | github.com |
| expected-hostname | github.com |
| None | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| turbo-cache-control | no-preview |
| go-import | github.com/datajoint/datajoint-python git https://github.com/datajoint/datajoint-python.git |
| octolytics-dimension-user_id | 2375501 |
| octolytics-dimension-user_login | datajoint |
| octolytics-dimension-repository_id | 5866704 |
| octolytics-dimension-repository_nwo | datajoint/datajoint-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 5866704 |
| octolytics-dimension-repository_network_root_nwo | datajoint/datajoint-python |
| 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 | 51470c353b8a1f52a88d3e3cc2014b17ab8cc1ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width