BehnoodRasti / HySUPP

An Open-Source Hyperspectral Unmixing Python Package
MIT License
39 stars 6 forks source link

'DefaultLogger' object has no attribute 'log_artifact' #3

Closed hsiaotung-tan closed 8 months ago

hsiaotung-tan commented 8 months ago

'DefaultLogger' object has no attribute 'log_artifact' how can I change the defaultLogger in config.yaml?

azouaoui-cv commented 8 months ago

Hello @hsiaotung-tan, I assume you are confused with the two existing loggers. One originates from mlxp and provides the log_artifact method while the more generic logger (a DefaultLogger) object inherits from the base logger (logging.getLogger(__name__)).

Could you provide a sample of your code where the error occurs?

hsiaotung-tan commented 8 months ago

I found the reason. The code you provided is built on top of MLXP==0.1.0. And my local environment is MXLP==1.0.0. there is a difference in the logging code between the two versions.

azouaoui-cv commented 8 months ago

My explanation was indeed flawed. Glad you found the reason. In the future we will bump the requirements to MLXP 1.0.0.