From 0a26b8fa28f5e151878b33204dbb2cc33e2f64de Mon Sep 17 00:00:00 2001 From: Jesse Mapel <jmapel@usgs.gov> Date: Thu, 20 Oct 2022 13:26:43 -0700 Subject: [PATCH] Updated generate_kernels_from_cube docs (#498) * Updated generate_kernels_from_cube docs * Missing word * Proper func link --- ale/util.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ale/util.py b/ale/util.py index e2834db..c345803 100644 --- a/ale/util.py +++ b/ale/util.py @@ -143,7 +143,12 @@ def dict_merge(dct, merge_dct): def get_isis_preferences(isis_preferences=None): """ - Returns ISIS Preference file as a pvl object + Returns ISIS Preference file as a pvl object. + + This will search the following locations, in order, for an IsisPreferences file: + + #. The .Isis directory in your home directory + #. The directory pointed to by the ISISROOT environment variable """ argprefs = {} if isis_preferences: @@ -194,6 +199,7 @@ def generate_kernels_from_cube(cube, expand=False, format_as='list'): Path to the cube to pull the kernels from. expand : bool, optional Whether or not to expand variables within kernel paths based on your IsisPreferences file. + See :func:`get_isis_preferences` for how the IsisPreferences file is found. format_as : str, optional {'list', 'dict'} How to return the kernels: either as a one-dimensional ordered list, or as a dictionary of kernel lists. -- GitLab