We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 210292f commit 8e5321eCopy full SHA for 8e5321e
pygmt/params/box.py
@@ -86,9 +86,10 @@ def validate(self):
86
Validate the parameters.
87
"""
88
# shading_offset must be a sequence of two values or None.
89
- if (
90
- self.shading_offset and not isinstance(self.shading_offset, Sequence)
91
- ) or len(self.shading_offset) != 2:
+ if self.shading_offset and (
+ not isinstance(self.shading_offset, Sequence)
+ or len(self.shading_offset) != 2
92
+ ):
93
raise GMTValueError(
94
self.shading_offset,
95
description="value for parameter 'shading_offset'",
0 commit comments