esm-tools / esm_master

GNU General Public License v2.0
2 stars 2 forks source link

fixes an error when the default version of a component is not a string #11

Closed mandresm closed 4 years ago

mandresm commented 4 years ago

The error was taking place in the method assemble_raw_name in compile_info.py, in line 551, since version would be a double precision number and not a string:

542     def assemble_raw_name(self, todo, kind, model, version):
543         raw = sep = ""
544         if todo:
545             raw = todo
546             sep = "-"
547         if model:
548             raw = raw + sep + model
549             sep = "-"
550         if version:
551             raw = raw + sep + version
552             sep = "-"