Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance the error message for datum stats to be more user friendly (#…
…1069) - Ticket no. 112203 - Improve the error message for users encountered in the following CLI use case: ```console (datumaro) vinnamki@vinnamki:~/datumaro/ws_datum/stats$ datum project create (datumaro) vinnamki@vinnamki:~/datumaro/ws_datum/stats$ datum project import -n eurosat -f imagenet_txt /home/vinnamki/datumaro/tfdseurosat-imagenet_txt.1 (datumaro) vinnamki@vinnamki:~/datumaro/ws_datum/stats$ datum project import -n uc_merced -f imagenet_txt /home/vinnamki/datumaro/tfdsuc_merced-imagenet_txt ``` **(Before)** ```console (datumaro) vinnamki@vinnamki:~/datumaro/ws_datum/stats$ datum stats 2023-06-28 17:09:27,574 ERROR: Failed to parse revspec: Merging of datasets with different categories is only allowed in 'merge' command. Path project doesn't exist ``` **(After)** ```console (datumaro) vinnamki@vinnamki:~/datumaro/ws_datum/stats$ datum stats 2023-06-28 17:55:20,580 ERROR: There are more than two sources with heterogeneous categories in the project. This prevents computing the statistics of the merged one. Please specify one of the sources in the project (['eurosat', 'uc_merced']), such as `datum stats eurosat` ``` Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
- Loading branch information