Title: Waveform records ignore NELM keyword if initial_value is set · Issue #37 · DiamondLightSource/pythonSoftIOC · GitHub
Open Graph Title: Waveform records ignore NELM keyword if initial_value is set · Issue #37 · DiamondLightSource/pythonSoftIOC
X Title: Waveform records ignore NELM keyword if initial_value is set · Issue #37 · DiamondLightSource/pythonSoftIOC
Description: If you specify both an initial_value=... and NELM=... keywords when creating a WaveformOut record, the NELM keyword is ignored and the waveform is created with a maximum length equal to the length of the data. I think the offending line ...
Open Graph Description: If you specify both an initial_value=... and NELM=... keywords when creating a WaveformOut record, the NELM keyword is ignored and the waveform is created with a maximum length equal to the length ...
X Description: If you specify both an initial_value=... and NELM=... keywords when creating a WaveformOut record, the NELM keyword is ignored and the waveform is created with a maximum length equal to the length ...
Opengraph URL: https://github.com/DiamondLightSource/pythonSoftIOC/issues/37
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Waveform records ignore NELM keyword if initial_value is set","articleBody":"If you specify both an `initial_value=...` and `NELM=...` keywords when creating a WaveformOut record, the `NELM` keyword is ignored and the waveform is created with a maximum length equal to the length of the data. \r\n\r\nI think the offending line is L169 of builder.py, which seems to override the passed in NELM without checking if it is set:\r\n`fields['NELM'] = length`\r\n\r\nThere is a workaround: instead of `initial_value` and `NELM`, use something like this (assuming `data` is a numpy array)\r\n```\r\nlength=required_length,\r\ndatatype=data.dtype,\r\n```\r\n\r\nAnd later do `myrecord.set(data)` ","author":{"url":"https://github.com/AlexanderWells-diamond","@type":"Person","name":"AlexanderWells-diamond"},"datePublished":"2021-09-14T07:53:01Z","url":"https://github.com/DiamondLightSource/pythonSoftIOC/issues/37"}
| 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:9e15f2d3-8372-a1a6-f5c7-ec6155703d04 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DFC2:BACBA:198B21E:2370806:6B044045 |
| html-safe-nonce | 2a0d7c25ae7db5a8a77f758de3eb66fd2992de7112116364d059ebec9583d924 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERkMyOkJBQ0JBOjE5OEIyMUU6MjM3MDgwNjo2QjA0NDA0NSIsInZpc2l0b3JfaWQiOiI1MjQ2NDk2OTYxMjU5MTI2ODUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2c17330ccdddd443b19fd7843e594ee5bfa90da239133231f8382357755b7035 |
| hovercard-subject-tag | issue:995706525 |
| 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/DiamondLightSource/pythonSoftIOC/37/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ce74b693180b58549226acda220ff8d3507268bc214e6a222901f8f76d3c1a50/DiamondLightSource/pythonSoftIOC/issues/37 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ce74b693180b58549226acda220ff8d3507268bc214e6a222901f8f76d3c1a50/DiamondLightSource/pythonSoftIOC/issues/37 |
| og:image:alt | If you specify both an initial_value=... and NELM=... keywords when creating a WaveformOut record, the NELM keyword is ignored and the waveform is created with a maximum length equal to the length ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AlexanderWells-diamond |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| go-import | github.com/DiamondLightSource/pythonSoftIOC git https://github.com/DiamondLightSource/pythonSoftIOC.git |
| octolytics-dimension-user_id | 1233618 |
| octolytics-dimension-user_login | DiamondLightSource |
| octolytics-dimension-repository_id | 20049394 |
| octolytics-dimension-repository_nwo | DiamondLightSource/pythonSoftIOC |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20049394 |
| octolytics-dimension-repository_network_root_nwo | DiamondLightSource/pythonSoftIOC |
| 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 | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width