Title: Room - Clarity function is broken | not working without bands · Issue #251 · python-acoustics/python-acoustics · GitHub
Open Graph Title: Room - Clarity function is broken | not working without bands · Issue #251 · python-acoustics/python-acoustics
X Title: Room - Clarity function is broken | not working without bands · Issue #251 · python-acoustics/python-acoustics
Description: Function call a/c to documentation: acoustics.room.c50_from_file(file_name, bands=None) acoustics.room.c80_from_file(file_name, bands=None) acoustics.room.clarity(time, signal, fs, bands=None) Run time error when calling these functions:...
Open Graph Description: Function call a/c to documentation: acoustics.room.c50_from_file(file_name, bands=None) acoustics.room.c80_from_file(file_name, bands=None) acoustics.room.clarity(time, signal, fs, bands=None) Run ...
X Description: Function call a/c to documentation: acoustics.room.c50_from_file(file_name, bands=None) acoustics.room.c80_from_file(file_name, bands=None) acoustics.room.clarity(time, signal, fs, bands=None) Run ...
Opengraph URL: https://github.com/python-acoustics/python-acoustics/issues/251
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Room - Clarity function is broken | not working without bands","articleBody":"### Function call a/c to documentation:\r\n\r\n- acoustics.room.c50_from_file(file_name, bands=None)\r\n- acoustics.room.c80_from_file(file_name, bands=None)\r\n- acoustics.room.clarity(time, signal, fs, bands=None)\r\n\r\n### Run time error when calling these functions:\r\n- Sample function call:\r\n\r\n```acoustics.room.c50_from_file(files[0], bands=None)```\r\n\r\n- Error:\r\n```\r\n 240 high = third_high(bands[0], bands[-1])\r\n 241 \r\n--\u003e 242 c = np.zeros(bands.size)\r\n 243 for band in range(bands.size):\r\n 244 filtered_signal = bandpass(signal, low[band], high[band], fs, order=8)\r\n\r\nAttributeError: 'NoneType' object has no attribute 'size'\r\n```\r\n\r\n### Band is a mandatory parameter a/c to code but optional a/c to documents.","author":{"url":"https://github.com/ngautam0kaggel","@type":"Person","name":"ngautam0kaggel"},"datePublished":"2021-10-03T07:52:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/251/python-acoustics/issues/251"}
| 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:85a3a934-5e4f-9fbd-df19-18f19939f409 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A844:1761BB:33843D:429D50:698EA565 |
| html-safe-nonce | a77595b77ca7d48e6c3ad3fd8b3e677fa95d73022f0200c58ca786c9caf5226f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODQ0OjE3NjFCQjozMzg0M0Q6NDI5RDUwOjY5OEVBNTY1IiwidmlzaXRvcl9pZCI6IjMyOTI1NjIxMjMxODg1MTIxMDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | af6528dc9dcc4b9b5bc862bb23fac9bfb57b9c5d649ad8dd2b070588a9b9b81c |
| hovercard-subject-tag | issue:1014301600 |
| 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/python-acoustics/python-acoustics/251/issue_layout |
| twitter:image | https://opengraph.githubassets.com/329e86ad1aaa0ce2fa6686d3639971d2d214720fc9d5d4f4c8dfde69400dc4a2/python-acoustics/python-acoustics/issues/251 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/329e86ad1aaa0ce2fa6686d3639971d2d214720fc9d5d4f4c8dfde69400dc4a2/python-acoustics/python-acoustics/issues/251 |
| og:image:alt | Function call a/c to documentation: acoustics.room.c50_from_file(file_name, bands=None) acoustics.room.c80_from_file(file_name, bands=None) acoustics.room.clarity(time, signal, fs, bands=None) Run ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ngautam0kaggel |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/python-acoustics/python-acoustics git https://github.com/python-acoustics/python-acoustics.git |
| octolytics-dimension-user_id | 3644840 |
| octolytics-dimension-user_login | python-acoustics |
| octolytics-dimension-repository_id | 14710112 |
| octolytics-dimension-repository_nwo | python-acoustics/python-acoustics |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 14710112 |
| octolytics-dimension-repository_network_root_nwo | python-acoustics/python-acoustics |
| 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 | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width