-
-
Notifications
You must be signed in to change notification settings - Fork 323
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
grass.jupyter: Add save PNG method to Map #2371
Conversation
Map from grass.jupyter can now save PNG images. This is easier than using the filename property and it is consistent with TimeSeriesMap.
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.
It makes sense that we have save
method - consistent with the other classes. And this looks good.
One note I have though: I think if you use the filename parameter in the __init__()
, you don't need to use save. I'm not sure that's a problem though... the filename parameter still needs to be there for the read_file parameter.
Thanks @chaedri! I take it as an oversight that we didn't add that already after the change of the API and naming, so that's why the backport label. Here is some additional reasoning for the change partially based on your thoughts.
Right and additionally there is the filename property which gives you name of the file if it is temporary file, but Now we have three ways, but each has a specific use case. 1)
Agreed, it is just needed even if we would strongly encourage other ways. Leaving out |
Map from grass.jupyter can now save PNG images. This is easier than using the filename property and it is consistent with TimeSeriesMap. Includes test for file existence after saving.
Map from grass.jupyter can now save PNG images. This is easier than using the filename property and it is consistent with TimeSeriesMap. Includes test for file existence after saving.
Map from grass.jupyter can now save PNG images. This is easier than using the filename property and it is consistent with TimeSeriesMap. Includes test for file existence after saving.
Map from grass.jupyter can now save PNG images. This is easier than using the filename property and it is consistent with TimeSeriesMap. Includes test for file existence after saving.
Map from grass.jupyter can now save PNG images. This is easier than using the filename property and it is consistent with TimeSeriesMap.