Skip to content

Commit

Permalink
add example to docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Barrett committed Feb 9, 2024
1 parent 00ca183 commit 0f9f579
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions icepyx/core/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,14 +460,6 @@ def append(self, defaults=False, var_list=None, beam_list=None, keyword_list=Non
path_list : list of strings, default None
A list of variable path names given as a the full path from the H5 root path.
For example:
path_list = ['gt1l/heights/delta_time',
'gt1l/heights/dist_ph_across',
'gt1l/heights/dist_ph_along',
'gt1l/heights/h_ph',
'gt1l/heights/lat_ph',
'gt1l/heights/lon_ph']
Notes
-----
Expand All @@ -494,6 +486,17 @@ def append(self, defaults=False, var_list=None, beam_list=None, keyword_list=Non
To add all variables and paths in ancillary_data
>>> reg_a.order_vars.append(keyword_list=['ancillary_data']) # doctest: +SKIP
To add variables as a list of explicit paths
>>> path_list = ['gt1l/heights/delta_time',
'gt1l/heights/dist_ph_across',
'gt1l/heights/dist_ph_along',
'gt1l/heights/h_ph',
'gt1l/heights/lat_ph',
'gt1l/heights/lon_ph']
>>> region_a.order_vars.append(path_list=path_list) # doctest: +SKIP
"""

# Check that at least one allowable combination of keywords are set
Expand Down

0 comments on commit 0f9f579

Please sign in to comment.