Title: Minor bug in export_eds() · Issue #605 · canopen-python/canopen · GitHub
Open Graph Title: Minor bug in export_eds() · Issue #605 · canopen-python/canopen
X Title: Minor bug in export_eds() · Issue #605 · canopen-python/canopen
Description: Bug in the following section: canopen/canopen/objectdictionary/eds.py Lines 473 to 477 in 0130eb8 for rate in od.device_information.allowed_baudrates.union( {10e3, 20e3, 50e3, 125e3, 250e3, 500e3, 800e3, 1000e3}): eds.set( "DeviceInfo", ...
Open Graph Description: Bug in the following section: canopen/canopen/objectdictionary/eds.py Lines 473 to 477 in 0130eb8 for rate in od.device_information.allowed_baudrates.union( {10e3, 20e3, 50e3, 125e3, 250e3, 500e3, ...
X Description: Bug in the following section: canopen/canopen/objectdictionary/eds.py Lines 473 to 477 in 0130eb8 for rate in od.device_information.allowed_baudrates.union( {10e3, 20e3, 50e3, 125e3, 250e3, 500e3, ...
Opengraph URL: https://github.com/canopen-python/canopen/issues/605
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Minor bug in export_eds()","articleBody":"Bug in the following section:\nhttps://github.com/canopen-python/canopen/blob/0130eb88b0c137bdd41cdaa25463d020ae3df6c9/canopen/objectdictionary/eds.py#L473-L477\n\ncurrently it exports to something like\n```\n...\nBaudRate_250=1\nBaudRate_10.0=0\nBaudRate_50.0=0\n```\n\nProblem:\n`rate//1000` gives floating number, because rate itself is a float.\n\nFix:\nI suggest either `int(rate//1000)` or use set with integers `{10000, 20000, 50000, 125000, 250000, 500000, 800000, 1000000}`","author":{"url":"https://github.com/CANopenNode","@type":"Person","name":"CANopenNode"},"datePublished":"2025-07-23T21:04:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/605/canopen/issues/605"}
| 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:61725386-e82f-51b6-3a06-32158aab5632 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C20C:19D7AD:6416C6:869867:6A5EDEBF |
| html-safe-nonce | 7cfb91fc73191491ca919bdab0e0ff61514b7c42aeed597d7c5bf85db135cb6c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjBDOjE5RDdBRDo2NDE2QzY6ODY5ODY3OjZBNUVERUJGIiwidmlzaXRvcl9pZCI6Ijg2OTUyMzE2MDk3NDExNzI0MTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fa8a846aa669f0ada30b4227205b5b4473870dcf57ad2b99b9d0d4ba6309a821 |
| hovercard-subject-tag | issue:3257709465 |
| 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/canopen-python/canopen/605/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c3270414bac6c0fc3c2a73a43042976fb59190740b49ae446f0fa0f8f437dceb/canopen-python/canopen/issues/605 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c3270414bac6c0fc3c2a73a43042976fb59190740b49ae446f0fa0f8f437dceb/canopen-python/canopen/issues/605 |
| og:image:alt | Bug in the following section: canopen/canopen/objectdictionary/eds.py Lines 473 to 477 in 0130eb8 for rate in od.device_information.allowed_baudrates.union( {10e3, 20e3, 50e3, 125e3, 250e3, 500e3, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | CANopenNode |
| hostname | github.com |
| expected-hostname | github.com |
| None | 82d0004a35927bdb00c652a57f456c55aa0eda4ade1bc7956d7510fdea6e454b |
| turbo-cache-control | no-preview |
| go-import | github.com/canopen-python/canopen git https://github.com/canopen-python/canopen.git |
| octolytics-dimension-user_id | 200581454 |
| octolytics-dimension-user_login | canopen-python |
| octolytics-dimension-repository_id | 68737600 |
| octolytics-dimension-repository_nwo | canopen-python/canopen |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 68737600 |
| octolytics-dimension-repository_network_root_nwo | canopen-python/canopen |
| 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 | d2d913dd727d2d7ac189fb4d05b10bc34ecd03ee |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width