Open
Conversation
Hi, I ran into an issue when using the from_hdf5() method. Some of the sessions I loaded from the perich miller dataset have an empty .attrs dictionary which leads to an error. One possible solution I found is to add this line to check if the dictionary is empty.
Member
|
Thanks for reporting this issue and suggesting a fix! Could you please share the full error log so we can better understand what's going wrong? Is this a particular attribute that is missing in one of these sessions? Additionally, if possible, could you provide details on the specific sessions that are causing this issue, or is it all of them? Thanks! |
Author
|
Hi Mehdi,
I attached both the error log and all the values and attributes for the
problematic session below. The issue is that the attribute
"/cursor_outlier_segments" in
session "perich_miller_population_2018/c_20131003_center_out_reaching" is
empty, but is still a valid h5py.Group. This then passes the error check in
line 2957, but errors out on the subsequent line as value.attrs doesn't
have an "object" member. I ended up just excluding the entire session when
processing the dataset.
Thank you,
Omer Benharush
…On Fri, Feb 7, 2025 at 12:12 PM Mehdi Azabou ***@***.***> wrote:
Thanks for reporting this issue and suggesting a fix! Could you please
share the full error log so we can better understand what's going wrong? Is
this a particular attribute that is missing in one of these sessions?
Additionally, if possible, could you provide details on the specific
sessions that are causing this issue, or is it all of them? Thanks!
—
Reply to this email directly, view it on GitHub
<#30 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVOB2F5CYGFSWVIL5B56I7T2OTSQLAVCNFSM6AAAAABWPRMEKKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNBTGUYTQMJYG4>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi,
I ran into an issue when using the from_hdf5() method. Some of the sessions I loaded from the perich miller dataset have an empty .attrs dictionary which leads to an error. One possible solution I found is to add this line to check if the dictionary is empty.