From 1348581e748c88310456189067bcf189005987f4 Mon Sep 17 00:00:00 2001 From: David Law Date: Wed, 4 Sep 2024 15:31:05 -0400 Subject: [PATCH 1/2] Update association path warning message. --- jwst/associations/association.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jwst/associations/association.py b/jwst/associations/association.py index 1f91602ef3..1baed4406f 100644 --- a/jwst/associations/association.py +++ b/jwst/associations/association.py @@ -208,9 +208,9 @@ def validate(cls, asn): for member in members: fpath, fname = os.path.split(member["expname"]) if len(fpath) > 0: - err_str = "'expname' contains path, but should only be a filename." - err_str += " All input files should be in a single directory" - err_str += ", so no path is needed." + err_str = "Input association file contains path information;" + err_str += " note that this can complicate usage and/or sharing" + err_str += " of such files." logger.debug(err_str) warnings.warn(err_str, UserWarning) return True From 04217a2bbdb8f142e45afeb9492b52231919c9c8 Mon Sep 17 00:00:00 2001 From: David Law Date: Wed, 4 Sep 2024 15:33:31 -0400 Subject: [PATCH 2/2] Update change log --- CHANGES.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGES.rst b/CHANGES.rst index cb5c7ea9dd..2c721e2aae 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -23,6 +23,8 @@ associations - Restored slit name to level 3 product names for NIRSpec BOTS and background fixed slit targets. [#8699] +- Update warning message about use of paths in associations. [#8752] + cube_build ----------