firefly-cpp/NiaARM

Tests

Closed this issue · 3 comments

Tests are failing: python3.10, Fedora OS...

self = <niaarm.dataset.Dataset object at 0x7fff8c25bac0>
def __analyse_types(self):
r"""Extract data types for the data in a dataset."""
for head in self.header:
col = self.data[head]

        if col.dtype == "float":
            dtype = "float"
            min_value = col.min()
            max_value = col.max()
            unique_categories = None
        elif col.dtype == "int":
            dtype = "int"
            min_value = col.min()
            max_value = col.max()
            unique_categories = None
        else:
            dtype = "cat"
          unique_categories = sorted(col.astype('string').unique().tolist(), key=str.lower)

E AttributeError: 'StringArray' object has no attribute 'tolist'
niaarm/dataset.py:44: AttributeError

@zStupan, please check it out.

It is also failing on Alpine linux...

I'm unable to reproduce this. I'm on fedora 35 using python3.10 and the test all pass on my machine