gregversteeg / bio_corex

A flexible version of CorEx developed for bio-data challenges that handles missing data, continuous/discrete variables, multi-CPU, overlapping structure, and includes visualizations
Apache License 2.0
137 stars 30 forks source link

Could not convert string to float #28

Closed HHalva closed 2 years ago

HHalva commented 2 years ago

Line 204 inviz_corex.py has: float(nx.__version__)

This does not work since the version is '2.6.3' and hence can not convert to float as it's not a digit.

HHalva commented 2 years ago

For now, I changed the line tofloat(nx.__version__.split('.')[0]) < 2 to get it to work

gregversteeg commented 2 years ago

Thanks for catching this, that is a perfect fix. I updated the main repository.