-
Notifications
You must be signed in to change notification settings - Fork 303
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
Fix 'get_filename' call in 'ninjo' writer #520
Conversation
satpy/writers/ninjotiff.py
Outdated
@@ -49,5 +49,5 @@ def save_image(self, img, filename=None, **kwargs): # floating_point=False, | |||
|
|||
.. _ninjotiff: http://www.ssec.wisc.edu/~davidh/polar2grid/misc/NinJo_Satellite_Import_Formats.html | |||
""" | |||
filename = filename or self.get_filename(**img.info) | |||
filename = filename or self.get_filename() |
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.
Shouldn't this be **img.attrs
?
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.
Sorry:
filename = filename or self.get_filename(**img.data.attrs)
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.
Yes, you are right, I have just tested it. I update this PR right away, thanks for checking.
Codecov Report
@@ Coverage Diff @@
## master #520 +/- ##
=======================================
Coverage 74.62% 74.62%
=======================================
Files 136 136
Lines 18342 18342
=======================================
Hits 13687 13687
Misses 4655 4655
Continue to review full report at Codecov.
|
Can we merge this @loreclem ? |
I would say so, David approved it too. |
git diff origin/master -- "*py" | flake8 --diff