stfc-sciml / sciml-bench

SciML Benchmarking Suite for AI for Science
MIT License
38 stars 13 forks source link

sciml-bench info AttrError if bench not installed #12

Closed DavidFair closed 1 year ago

DavidFair commented 1 year ago

Trying to run the following command without any benchmarks installed results in the following AttributeError:

sciml-bench info stemdl_classification
 No information can be found on the entity stemdl_classification.
 Possible options are:

Traceback (most recent call last):
  File "/root/mambaforge/envs/bench/bin/sciml-bench", line 8, in <module>
    sys.exit(cli())
  File "/root/mambaforge/envs/bench/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/root/mambaforge/envs/bench/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/root/mambaforge/envs/bench/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/root/mambaforge/envs/bench/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/root/mambaforge/envs/bench/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/root/mambaforge/envs/bench/lib/python3.9/site-packages/sciml_bench/core/command.py", line 153, in info
    print_items('Benchmarks', ENV.list_main_benchmarks())
AttributeError: 'ProgramEnv' object has no attribute 'list_main_benchmarks'