matnwb icon indicating copy to clipboard operation
matnwb copied to clipboard

[Feature]: Override isempty for types.untyped.Set

Open ehennestad opened this issue 1 year ago • 0 comments

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

ehennestad avatar Feb 06 '24 09:02 ehennestad