KarrLab / wc_lang

Language for describing whole-cell models as reaction networks
MIT License
9 stars 3 forks source link

Problem with wc_lang_io.Reader error formatting #143

Open artgoldberg opened 3 years ago

artgoldberg commented 3 years ago

Model dfba_test_model_wrong_fb_units.xlsx has wrong flux bounds units, '1 / second'. wc_lang.io.Reader().run('dfba_test_model_wrong_fb_units.xlsx', validate=True) generates an error, but it's badly formatted:

bad formatting of flux bounds errors:
E                 FluxBounds:
E                   1.660539067173847e-22__1.992646880608616e-22__1 / second:
E                     'units':
E                       Value must be in `choices`: {'molar / second'}
E                   0.0__0.0__1 / second:
E                     'units':
E                       Value must be in `choices`: {'molar / second'}

dfba_test_model_wrong_fb_units.xlsx