You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The alpha plugin using the decorator basin3d_plugin_access (core/plugin.py) is not passing the instantiated model access class when accessing a method.
In a MonitoringFeatureAccess get method, self.datasource shows up as a property not a datasource.
I.e., stepping into line 296 in core/synthesis.py
prior to stepping in and even evaluating the specified plugin_view, self.datasource has a DataSource type assigned as expected.
once into the plugin's MonitoringFeature get method, self.datasource is property type that looks to be not instantiated. It seems to the the class definition as seen in the plugin_access_classes list.
Note:
DataSourcePluginPoint.init (in core/plugin.py) appears to be called and self.access_classes dictionary set up properly.
items in the plugin_access_classes list, which is set up in the decorator, remain class definitions as expected.
Plugins using traditional class structures work fine (e.g., PluginModelAccess class with list and get methods).
To Reproduce
The issue was found during updates to properly use the retrieve method in DataSourceModelAccess. The following is not tested but is where I would start.
Rework the alpha plugin to use decorator
initiate a DataSynthesizer with the alpha plugin
call the DataSynthesizer.monitoring_features method with QueryMonitoringFeature(id=)
Expected behavior
The decorator should properly mimic traditional access class behavior.
Environment
Python 3.9
Version 0.4.2 development
Additional Context
For now, we made the basin3d_plugin_access decorator a private class.
The text was updated successfully, but these errors were encountered:
The alpha plugin using the decorator basin3d_plugin_access (core/plugin.py) is not passing the instantiated model access class when accessing a method.
In a MonitoringFeatureAccess get method, self.datasource shows up as a property not a datasource.
I.e., stepping into line 296 in core/synthesis.py
Note:
To Reproduce
The issue was found during updates to properly use the retrieve method in DataSourceModelAccess. The following is not tested but is where I would start.
Expected behavior
The decorator should properly mimic traditional access class behavior.
Environment
Additional Context
For now, we made the basin3d_plugin_access decorator a private class.
The text was updated successfully, but these errors were encountered: