We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c8a5bd commit 130dc43Copy full SHA for 130dc43
jwst/associations/tests/make_headers.py
@@ -25,7 +25,7 @@ def actual_path(path):
25
Path
26
The fully qualified path.
27
"""
28
- return Path.abspath(ospath.expandvars(Path.expanduser(path)))
+ return Path(ospath.expandvars(path)).expanduser().resolve()
29
30
31
def get_headers(files, outpath):
@@ -40,7 +40,7 @@ def get_headers(files, outpath):
40
The output path to place the header-only files
41
42
for path in files:
43
- name = Path.name(path)
+ name = Path(path).name
44
hdul = fits.open(path)
45
nhdu = fits.PrimaryHDU(header=hdul[0].header)
46
nhdul = fits.HDUList([nhdu])
0 commit comments