Title: mismatching array sizes when reading `element_solid_history_variables` · Issue #63 · open-lasso-python/lasso-python · GitHub
Open Graph Title: mismatching array sizes when reading `element_solid_history_variables` · Issue #63 · open-lasso-python/lasso-python
X Title: mismatching array sizes when reading `element_solid_history_variables` · Issue #63 · open-lasso-python/lasso-python
Description: 🐛 Describe the bug I am trying to read element_solid_history_variables from my *.ptf files, but when I'm calling D3plot() with state_array_filter or state_filter, I get get an error. 🔢 To Reproduce take any .ptf file (d3plot files seem t...
Open Graph Description: 🐛 Describe the bug I am trying to read element_solid_history_variables from my *.ptf files, but when I'm calling D3plot() with state_array_filter or state_filter, I get get an error. 🔢 To Reproduce...
X Description: 🐛 Describe the bug I am trying to read element_solid_history_variables from my *.ptf files, but when I'm calling D3plot() with state_array_filter or state_filter, I get get an error. 🔢 To Repro...
Opengraph URL: https://github.com/open-lasso-python/lasso-python/issues/63
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mismatching array sizes when reading `element_solid_history_variables`","articleBody":"**🐛 Describe the bug**\r\nI am trying to read `element_solid_history_variables` from my *.ptf files, but when I'm calling `D3plot()` with `state_array_filter` or `state_filter`, I get get an error. \r\n\r\n\r\n**🔢 To Reproduce**\r\n1) take any .ptf file (d3plot files seem to work)\r\n2) run the following script:\r\n```\r\nfrom lasso.dyna import D3plot, ArrayType, FilterType\r\nres = D3plot('GM108.ptf', state_array_filter=[ArrayType.element_solid_history_variables])\r\n```\r\n3) get this error message:\r\n`ValueError: could not broadcast input array from shape (522,5913,1,11) into shape (522,5913,1,5)`\r\n\r\n\r\n**💘 Expected behavior**\r\nFunction call works without throwing an error message.\r\n\r\n\r\n\r\n**🖥️ Setup**\r\n - lasso-python version: 2.0.2\r\n - OS: Win11 x64, but also occurs on Linux.\r\n\r\n**ℹ️ Additional context**\r\nMy current workaround is to call `D3plot()` without arguments. I can then read out the array as expected, but the issue is that this doesn't work with the rest of my infrastructure, where I can only read a set of timesteps at a time.","author":{"url":"https://github.com/jakobstanford","@type":"Person","name":"jakobstanford"},"datePublished":"2024-07-24T19:13:35.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/63/lasso-python/issues/63"}
| 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:cbb6756f-c767-5676-57ea-8859b5e22883 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E9B8:7377C:12AA81:18F85D:698F5BB3 |
| html-safe-nonce | fefc47202d107880f85500145871656cddc433741a18941f2dc340328489ca19 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUI4OjczNzdDOjEyQUE4MToxOEY4NUQ6Njk4RjVCQjMiLCJ2aXNpdG9yX2lkIjoiMTY4ODQxMjU2NDQwMzg4NTMxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c5830dd82a74ac18176c374dd7acd2b4deac803a9b9f2f6431dfa208eae91e91 |
| hovercard-subject-tag | issue:2428299260 |
| 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/open-lasso-python/lasso-python/63/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f26607615b7c7387ae7f8e6b00e67b1e65275f4c3089431ff72129d7455e0086/open-lasso-python/lasso-python/issues/63 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f26607615b7c7387ae7f8e6b00e67b1e65275f4c3089431ff72129d7455e0086/open-lasso-python/lasso-python/issues/63 |
| og:image:alt | 🐛 Describe the bug I am trying to read element_solid_history_variables from my *.ptf files, but when I'm calling D3plot() with state_array_filter or state_filter, I get get an error. 🔢 To Reproduce... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jakobstanford |
| hostname | github.com |
| expected-hostname | github.com |
| None | 974b952535e389ab3b5c0ef3f15bde9af29b6b38f7486069c43d99e51de0e563 |
| turbo-cache-control | no-preview |
| go-import | github.com/open-lasso-python/lasso-python git https://github.com/open-lasso-python/lasso-python.git |
| octolytics-dimension-user_id | 114169132 |
| octolytics-dimension-user_login | open-lasso-python |
| octolytics-dimension-repository_id | 540129748 |
| octolytics-dimension-repository_nwo | open-lasso-python/lasso-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 540129748 |
| octolytics-dimension-repository_network_root_nwo | open-lasso-python/lasso-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 | b8e9d6dae5817b2dbe0a3d6d920ff8d3db837168 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width