"""Deprecated module:Functions to read data from the database used for logging.The functions in the module are meant for end users of optimagic. They do not requireany knowledge of databases.When using them internally, make sure to supply a database to path_or_database.Otherwise, the functions may be very slow."""from__future__importannotationsimportwarningsfromdataclassesimportdataclassfromoptimagic.logging.loggerimportSQLiteLogOptions,SQLiteLogReader
[docs]def__new__(cls,*args,**kwargs):# type: ignorewarnings.warn("OptimizeLogReader is deprecated and will be removed in a future ""version. Please use optimagic.logging.SQLiteLogReader instead.",FutureWarning,)sqlite_options=SQLiteLogOptions(*args,**kwargs)returnSQLiteLogReader.from_options(sqlite_options)