Skip to content

Commit

Permalink
fix some typo
Browse files Browse the repository at this point in the history
  • Loading branch information
yaswant committed Aug 8, 2024
1 parent 58f0adf commit c3bc7ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions mplconfigx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

__version__ = "0.1"
__author__ = "Yaswant Pradhan"
__copyright__ = "(c) Crown copyright 2019, the Met Office."


def load():
Expand All @@ -30,7 +29,7 @@ def load():
if 'spice' in socket.gethostname() or os.getenv('DISPLAY') is None:
plt.switch_backend('Agg')

# -- avoid backend confilct
# -- avoid backend conflict
plt.rcParams["backend_fallback"] = True

# -- custom fonts (ttf, afm), grid, axes, ticks, etc
Expand Down
4 changes: 2 additions & 2 deletions sdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def get_vdata(self, VDataName):
return vdata

def get_scaled(self, fieldnames=[]):
"""Return scaled data asuming that scale_factor and add_offset are
"""Return scaled data assuming that scale_factor and add_offset are
available in dataset attributes.
Not a general purpose method, so should be used with caution.
Expand Down Expand Up @@ -390,7 +390,7 @@ def get_dslist(self):
--------
>>> h5 = h5_parse(h5file)
>>> dataset_list = h5.get_dslist() # (old) OR
>>> dataset_list = h5.datasets # (prefered)
>>> dataset_list = h5.datasets # (preferred)
# Or in one line
>>> dataset_list = h5_parse(h5file).get_dslist()
Expand Down

0 comments on commit c3bc7ce

Please sign in to comment.