Skip to content

Commit

Permalink
JP-3731: Update association path warning message. (#8752)
Browse files Browse the repository at this point in the history
  • Loading branch information
melanieclarke authored Sep 10, 2024
2 parents 1375881 + 3509828 commit 4dfe982
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,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
----------

Expand Down
6 changes: 3 additions & 3 deletions jwst/associations/association.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4dfe982

Please sign in to comment.