higra / Higra

Hierarchical Graph Analysis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Force float weights in attribute_gaussian_region_weights_model

PerretB opened this issue · comments

Trying to compute attribute_gaussian_region_weights_model on non float vertex weights currently leads to a type casting error

File "higra/attribute/attributes.py", line 471, in attribute_gaussian_region_weights_model
    mean /= area[:, None]
TypeError: ufunc 'true_divide' output (typecode 'd') could not be coerced to provided output parameter (typecode 'B') according to the casting rule ''same_kind''