dagghe / pyOMA2

Python module for conducting operational modal analysis
MIT License
20 stars 6 forks source link

[BUG] - ord_red in def_geo2 #8

Closed dfm88 closed 7 months ago

dfm88 commented 8 months ago

Describe the bug

Method oma.BaseSetup.plot_geo2 seems not to handle correctly all Geo2.order_red values

To Reproduce

Call def_geo2 in Example1_SingleSetup.ipynb file with the following order_red:

it will fail on line 412 cause it is trying to set to np.NaN that is internally a float, some integers number in the pandas dataframe

Desktop (please complete the following information):

Additional context

Some issue can be solved by forcing s_sign and ch_names to float

        s_sign = s_sign.astype(float)  # allow setting nan

        if ord_red is None:
            pass
        # ecc...
dfm88 commented 7 months ago

fixed converting the numpy array to float