Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CLI: filter cutoffs from JSON file for
family cutoffs set
Currently the `family cutoffs set` command requires that the JSON file that contains the cutoffs _only_ has the cutoff keys specified for each element. This is because the cutoffs are validated by the `RecommendedCutoffMixin.validate_cutoffs()` method, which doesn't allow for extraneous keys. However, this is causing issues for the workaround we have set up for installing the SSSP and Pseudo-dojo families manually by first downloading them, since the `metadata.json` obtained this way contains other keys as well. Here we first filter the data loaded from the JSON file for the cutoffs, before passing the dictionary to the `set_cutoffs` method.
- Loading branch information