[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #61975] PSF scripts: keeping temporary directory in radial profile
From: |
Raul Infante-Sainz |
Subject: |
[bug #61975] PSF scripts: keeping temporary directory in radial profile calls |
Date: |
Tue, 1 Feb 2022 13:05:43 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?61975>
Summary: PSF scripts: keeping temporary directory in radial
profile calls
Project: GNU Astronomy Utilities
Submitted by: infantesainz
Submitted on: Tue 01 Feb 2022 06:05:41 PM UTC
Category: Installed scripts
Severity: 3 - Normal
Item Group: Crash
Status: Fixed
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
There was a problem in two PSF scripts. In both scripts the problem was the
same and it has been fixed (and ready to be merged):
https://gitlab.com/infantesainz/gnuastro/-/commit/7c6f8151
More details in the commit message:
Until this commit, when constructing the PSF, the temporary directory was
removed as soon as the radial-profile script finished. This is simply because
the temporary directory for the PSF scripts and the temporary directory for
the radial profile script was the same. This is not good since the directory
is removed in the middle of the execution. Step by step, what happened was:
- PSF scripts generated a temporary directory (tmpdir).
- At some point, the PSF scripts called the radial profile script.
- The radial profile script removed the temporary directory (tmpdir).
- PSF scripts crashed as a consequence of the directory removal.
With this commit, this bug has been corrected by keeping the temporary files
when calling the radial profile script (within the PSF scripts). By doing
this, the temporary directory is kept until the end of the execution of the
PSf script and the scripts don't crash.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?61975>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #61975] PSF scripts: keeping temporary directory in radial profile calls,
Raul Infante-Sainz <=