Skip to content

Commit b001cdf

Browse files
committed
fix forming filename
1 parent f26d6b2 commit b001cdf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

jwst/cube_build/data_types.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# It also determines if the input data is a single science exposure, an association table, a
44
# single datamodel or several data models stored in a ModelContainer.
55

6-
from pathlib import Path
6+
from pathlib import PurePath
77
from stdatamodels.jwst import datamodels
88
from jwst.datamodels import ModelContainer
99
import logging
@@ -87,7 +87,8 @@ def __init__(self, input_data, single, output_file, output_dir):
8787

8888
if output_file is not None:
8989
# basename, ext = os.path.splitext(os.path.basename(output_file))
90-
basename = Path.name(output_file)
90+
f = PurePath(output_file)
91+
basename = f.name
9192
self.output_name = basename
9293

9394
if output_dir is not None:

0 commit comments

Comments
 (0)