-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: Rename MatplotlibWriter
to MatplotlibDataset
#1027
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Sajid Alam <sajid_alam@mckinsey.com>
Signed-off-by: Sajid Alam <sajid_alam@mckinsey.com>
MatplotlibWriter
to MatplotlibDataset
MatplotlibWriter
to MatplotlibDataset
MatplotlibWriter
to MatplotlibDataset
MatplotlibWriter
to MatplotlibDataset
Signed-off-by: Sajid Alam <sajid_alam@mckinsey.com>
Signed-off-by: Sajid Alam <sajid_alam@mckinsey.com>
Signed-off-by: Sajid Alam <sajid_alam@mckinsey.com>
…ro-org/kedro-plugins into feat/rename-matplotlibwriter Signed-off-by: Sajid Alam <sajid_alam@mckinsey.com>
Signed-off-by: Sajid Alam <sajid_alam@mckinsey.com>
"version": self._version, | ||
} | ||
|
||
def load(self) -> NoReturn: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is not documented well in the older docs as well. It says Loads data by delegation to the provided load method.
. In code we raise an error
save_args: | ||
format: png | ||
|
||
Example usage for the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"The MatplotlibWriter class has been renamed to MatplotlibDataset. " | ||
"The MatplotlibWriter name is deprecated and will be removed in a future release.", | ||
DeprecationWarning, | ||
stacklevel=2, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested initializing this class with the example usage provided in the docs. For some reason I am not seeing this deprecation warning. Any snippet to QA the warning ?
Description
Related to: #353
This PR implements the of renaming
MatplotlibWriter
toMatplotlibDataset
for consistency with other datasets in the codebase.In the current release:
MatplotlibWriter
now inherits fromMatplotlibDataset
and raises deprecation warningsIn a future major release:
MatplotlibWriter
will be completely removed onlyMatplotlibDataset
will remainDevelopment notes
MatplotlibDataset
class which is identical toMatplotlibWriter
except for the name.MatplotlibWriter
to inherit fromMatplotlibDataset
while adding deprecation warnings.__init__.py
.MatplotlibWriter
.Checklist
jsonschema/kedro-catalog-X.XX.json
if necessaryRELEASE.md
file