Hotfix data_set.py: flatten 2D arrays#6573
Hotfix data_set.py: flatten 2D arrays#6573GOTYGuyOfTheYear wants to merge 1 commit intomicrosoft:mainfrom
Conversation
When adding a 2D array as a standalone parameter in a dataset, the whole numpy array would be save in bit form. Flatten is needed to make a proper array to saved alongside the data.
I am not sure that I follow what the issue is. When a user stores an array of a given shape I would imagine that they would also expect this to be read back. Could you perhaps supply an example or a test that shows the issue that you are facing? |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6573 +/- ##
=======================================
Coverage 69.34% 69.34%
=======================================
Files 340 340
Lines 31266 31266
=======================================
Hits 21681 21681
Misses 9585 9585 ☔ View full report in Codecov by Sentry. |
|
Hello @jenshnielsen, Thank you for your interest. In the sqlite db, the fields for the independent parameter are filled with a blob type: There might be a better fix or a better way of working, this is just how I have found as the simplest option. |


When adding a 2D array as a standalone parameter in a dataset, the whole numpy array would be save in bit form. Flatten is needed to make a proper array to be saved alongside the data.