matnwb
matnwb copied to clipboard
[Feature]: Override isempty for types.untyped.Set
What would you like to see added to MatNWB?
At the moment an instance of types.untyped.Set can appear to be empty, but using the isempty function returns false.
Is your feature request related to a problem?
Example:
>> F = types.core.Fluorescence();
>> F.roiresponseseries
ans =
Empty Set
>> isempty(F.roiresponseseries)
ans =
logical
0
>>
What solution would you like?
Override the isempty for types.untyped.Set
% overloads isemty
function tf = isempty(obj)
tf = obj.Count == 0;
end
Do you have any interest in helping implement the feature?
Yes.
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
- [X] Have you ensured this change was not already requested?