nrbennet / dl_binder_design

MIT License
223 stars 53 forks source link

ml_dtypes > 0.2 breaks the af2_binder_design environment #52

Closed rszabla closed 11 months ago

rszabla commented 11 months ago

I created the af2_binder_design conda env from af2_binder_design.yml. Conda solved and installed the env with no obvious errors. But when I try running python importtests/af2_importtest.py in the environment, I get the error:

AttributeError: module 'ml_dtypes' has no attribute 'float8_e4m3b11'. Did you mean: 'float8_e4m3fn'?

After some digging, I found that float8_e4m3b11 was deprecated in version 0.2.0 of ml_dtypes and removed in version 0.3.0.

I can confirm that adding - ml_dtypes==0.2.0 to - pip: in the af2_binder_design.yml file fixes this problem.

Rob

nrbennet commented 11 months ago

Thanks for finding this issue Rob. I will make this fix!