OasisLMF / OasisDataManager

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Add exception handler factory class loading and warn of missing dependecies #4

Open sambles opened 4 months ago

sambles commented 4 months ago

Issue Description

Set base package requirements only imports needed for the default reader and storage class (local / pandas). For the optional imports, dask and object store libs, add a check in the class loading calls and warn if a class load fails due to missing dependency.

https://github.com/OasisLMF/OasisDataManager/blob/26fd1d964138d54ff008555bb0bad12a3bda065c/oasis_data_manager/df_reader/config.py#L68-L76

https://github.com/OasisLMF/OasisDataManager/blob/26fd1d964138d54ff008555bb0bad12a3bda065c/oasis_data_manager/filestore/config.py#L82-L109