-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Cannot define property .. in class .. because the property has already been defined in the superclass .. #491
Comments
Ironically I cannot reproduce this. I get a completely different error:Error using assert
Unexpected properties {unit}.
Your schema version may be incompatible with the file. Consider checking the schema version of the file with `util.getSchemaVersion(filename)`
and comparing with the YAML namespace version present in nwb-schema/core/nwb.namespace.yaml
Error in types.util.checkUnset (line 13)
assert(isempty(dropped),...
Error in types.hdmf_common.VectorData (line 26)
types.util.checkUnset(obj, unique(varargin(1:2:end)));
Error in io.parseDataset (line 81)
parsed = eval([Type.typename '(kwargs{:})']);
Error in io.parseGroup (line 22)
dataset = io.parseDataset(filename, datasetInfo, fullPath, Blacklist);
Error in io.parseGroup (line 38)
subg = io.parseGroup(filename, group, Blacklist);
Error in nwbRead (line 59)
nwb = io.parseGroup(filename, h5info(filename), Blacklist); The error that you have may indicate another Path issue. Would it be possible to check that The error I got speaks to a possible bug in the data generation. |
has both edit 1 : more correct grep for the same statement
|
No, this is also on a Windows machine anyway. To sum up what I did:
MatNWB only adds to the path using Looking at the file listing, the following directories should be deleted in
|
are you suggesting to delete them manually or just stating that something in the |
FWIW, theoretically the reproducer should work even on Windows happen you install git-annex and datalad in msys2 env... will try later some time to see if there is some hidden gotchas |
Yes. This issue only came about because |
FWIW
With that in mind I have tried without
so I guess you got different error because you called differently. as for this error, seems like other Windows users encounter: #492 and I got in #490 . Do you see the same error and can reproduce if you do specify |
Correct, you do not need
That's fine. In fact, for this specific purpose of testing multiple files with a single installation, you should continue using |
well -- the documentation doesn't say that it is "optional" -- https://github.com/NeurodataWithoutBorders/matnwb#step-2-generate-the-api pretty much states to do that. (next step for extensions is listed to be optional so we do not)
ok, we can keep running
what "script to run"? shouldn't it be fixed within matnwb? Note that, as reproducer shows, we ran for that file in a completely clean fresh installation so there is no "pollution" of any kind. |
Yeah, that should be clarified. You only need to run
I advise not doing that, frankly, as |
Sorry, I need to complete the thought and actually offer something constructive: Just don't use |
Sorry for being a pain, I am just trying to arrive to some logical conclusion of how to instruct users "generally" on how to use
That would boil to overall distinction of two "modes" (with or without |
Most users should be fine with just I'd suggest only using In the case of your CI, I think my concern was about false negatives where the install directory doesn't really represent a clean |
we do it clean (see here) -- remove if prior one exists, download tarball of matnwb from github , extract, do
That is exactly us - automation over a lot of NWB from different datasets, hence difference schema versions! And how then we should take advantage of |
anyways , back to current issue, if I do not I still get that error we both observed(dandisets-2) dandi@drogon:/tmp/matnwb-TJq1ZBO/matnwb$ MATLABPATH=$PWD time matlab -nodesktop -batch "f='../000022/sub-744912845/sub-744912845_ses-766640955.nwb'; disp(util.getSchemaVersion(f)); nwb = nwbRead(f)"
2.2.2
Error using assert
Unexpected properties {unit}.
Your schema version may be incompatible with the file. Consider checking the
schema version of the file with `util.getSchemaVersion(filename)` and comparing
with the YAML namespace version present in nwb-schema/core/nwb.namespace.yaml
Error in types.util.checkUnset (line 13)
assert(isempty(dropped),...
Error in types.hdmf_common.VectorData (line 26)
types.util.checkUnset(obj, unique(varargin(1:2:end)));
Error in io.parseDataset (line 81)
parsed = eval([Type.typename '(kwargs{:})']);
Error in io.parseGroup (line 22)
dataset = io.parseDataset(filename, datasetInfo, fullPath, Blacklist);
Error in io.parseGroup (line 38)
subg = io.parseGroup(filename, group, Blacklist);
Error in nwbRead (line 59)
nwb = io.parseGroup(filename, h5info(filename), Blacklist);
Command exited with non-zero status 1
19.63user 1.09system 0:19.44elapsed 106%CPU (0avgtext+0avgdata 915580maxresident)k
10800inputs+1480outputs (12major+198358minor)pagefaults 0swaps so the file has (dandisets-2) dandi@drogon:/tmp/matnwb-TJq1ZBO/matnwb$ ls nwb-schema/
2.0.2 2.1.0 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3.0 2.4.0 2.5.0 2.6.0 also IIRC there should be a copy of schema within nwb file ... how do we open/load such a file? |
This is not relevant in case of
Looking at the file again, I have to apologize because I thought I had read this file successfully before though I had not. In fact, this error is tied this old issue: #43 where an anonymous |
if you think it is at large duplicate of #43 -- feel free to close. I've subscribed to #43 as well for now.
then error message suggesting some incompatibility ("Your schema version may be incompatible with the file.") is even more confusing, and may be this message should be made more specific/adequate to different cases of problems. |
Issue now duplicate of #238 |
What happened?
originally mentioned in #490 (comment)
in the fresh run of https://github.com/dandi/dandisets-healthstatus saw in the logs
the error
which then reproduced against master on that sample file
Steps to Reproduce
Error Message
No response
Operating System
Linux
Matlab Version
R2022b Update 1 (9.13.0.2080170) 64-bit (glnxa64)
Code of Conduct
The text was updated successfully, but these errors were encountered: