Title: Deprecation warning for changed definition syntax. · Issue #381 · datajoint/datajoint-python · GitHub
Open Graph Title: Deprecation warning for changed definition syntax. · Issue #381 · datajoint/datajoint-python
X Title: Deprecation warning for changed definition syntax. · Issue #381 · datajoint/datajoint-python
Description: In the past, the following syntax worked for defining tables: @schema class TestScores(dj.Computed): definition = """ # testing the model across datasets -> BestModel test_source -> Source --- """ Now, this throws an error TypeError: not...
Open Graph Description: In the past, the following syntax worked for defining tables: @schema class TestScores(dj.Computed): definition = """ # testing the model across datasets -> BestModel test_source -> Source --- """ ...
X Description: In the past, the following syntax worked for defining tables: @schema class TestScores(dj.Computed): definition = """ # testing the model across datasets -> BestModel test_source ...
Opengraph URL: https://github.com/datajoint/datajoint-python/issues/381
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Deprecation warning for changed definition syntax. ","articleBody":"In the past, the following syntax worked for defining tables:\r\n```\r\n@schema\r\nclass TestScores(dj.Computed):\r\n definition = \"\"\"\r\n # testing the model across datasets\r\n \r\n -\u003e BestModel\r\n test_source -\u003e Source\r\n ---\r\n \"\"\"\r\n```\r\nNow, this throws an error `TypeError: not enough arguments for format string`.\r\n\r\nThe solution is:\r\n\r\n```\r\n@schema\r\nclass TestScores(dj.Computed):\r\n definition = \"\"\"\r\n # testing the model across datasets\r\n \r\n -\u003e BestModel\r\n (test_source) -\u003e Source\r\n ---\r\n \"\"\"\r\n```\r\nIt would be nice if this would give a more meaningful error message or a deprecation warning. `dj.__version__ == '0.8.1'`.\r\n","author":{"url":"https://github.com/fabiansinz","@type":"Person","name":"fabiansinz"},"datePublished":"2017-10-22T18:24:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/381/datajoint-python/issues/381"}
| 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:c9a3ad3f-e1da-53f6-d4b2-e65dadf0045c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85F6:32255D:13AA69B:1AAD392:6A4D70ED |
| html-safe-nonce | 1f5c4bb5ccdd0d81b539df01b662632e5d77d9893aae7c8a0f500fc7dc03c703 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUY2OjMyMjU1RDoxM0FBNjlCOjFBQUQzOTI6NkE0RDcwRUQiLCJ2aXNpdG9yX2lkIjoiNTI4OTQ2NDMyODM0MzY3NzI1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e01b7775a64f3b4ca02579df275bfe35de5ee862916b123b74d8be9e74901aed |
| hovercard-subject-tag | issue:267487010 |
| 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/381/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5007bea23914b84c92e6d5e2bc11603965f7641e2de909cfd7dd72ae8e99ec62/datajoint/datajoint-python/issues/381 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5007bea23914b84c92e6d5e2bc11603965f7641e2de909cfd7dd72ae8e99ec62/datajoint/datajoint-python/issues/381 |
| og:image:alt | In the past, the following syntax worked for defining tables: @schema class TestScores(dj.Computed): definition = """ # testing the model across datasets -> BestModel test_source -> Source --- """ ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fabiansinz |
| hostname | github.com |
| expected-hostname | github.com |
| None | c78260c7b3f4ac4b0356c8208537f05406a3a2d46a9ec3f735b372dcc519c39e |
| 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 | 399fff412f48461d435721c009efc17ea44be72f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width