Closed dfm88 closed 7 months ago
Describe the bug
Method oma.BaseSetup.plot_geo2 seems not to handle correctly all Geo2.order_red values
oma.BaseSetup.plot_geo2
Geo2.order_red
To Reproduce
Call def_geo2 in Example1_SingleSetup.ipynb file with the following order_red:
def_geo2
Example1_SingleSetup.ipynb
order_red
None
xz
y
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
np.NaN
Desktop (please complete the following information):
Additional context
Some issue can be solved by forcing s_sign and ch_names to float
s_sign
ch_names
s_sign = s_sign.astype(float) # allow setting nan if ord_red is None: pass # ecc...
fixed converting the numpy array to float
Describe the bug
Method
oma.BaseSetup.plot_geo2
seems not to handle correctly allGeo2.order_red
valuesTo Reproduce
Call
def_geo2
inExample1_SingleSetup.ipynb
file with the followingorder_red
:None
xz
y
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 dataframeDesktop (please complete the following information):
Additional context
Some issue can be solved by forcing
s_sign
andch_names
to float