-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add suffix
to Step.spec
#1347
Add suffix
to Step.spec
#1347
Changes from all commits
7ee7b4f
6ccbeb4
c2ed15e
1802676
009b76c
19c6b08
b8ab132
f79cabb
065f1c9
e78e648
34571f2
d5e4cb6
36292a5
d8cbbc6
1949dd0
adca03d
3f1611b
c5c01f6
4140b58
45b1c61
bba9bbd
1688dad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,28 +46,6 @@ def test_dark_current_outfile_step(rtdata, ignore_asdf_paths): | |
assert diff.identical, diff.report() | ||
|
||
|
||
@pytest.mark.bigdata | ||
def test_dark_current_outfile_suffix(rtdata, ignore_asdf_paths): | ||
"""Function to run and compare Dark Current subtraction files. Here the | ||
test is for renaming the output file.""" | ||
input_datafile = "r0000101001001001001_01101_0001_WFI01_linearity.asdf" | ||
rtdata.get_data(f"WFI/image/{input_datafile}") | ||
rtdata.input = input_datafile | ||
|
||
args = [ | ||
"romancal.step.DarkCurrentStep", | ||
rtdata.input, | ||
"--output_file=Test_dark", | ||
'--suffix="suffix_test"', | ||
] | ||
RomanStep.from_cmdline(args) | ||
output = "Test_darkcurrent.asdf" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I chose to delete this test as it appears to check that calling the This isn't the expected behavior for stpipe (the output file should have the suffix provided on the commandline, There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ddavis-stsci mentioned that this test was intended to test if a user provided suffix is used. It could be made to pass by:
One question might be, why isn't the expected output |
||
rtdata.output = output | ||
rtdata.get_truth(f"truth/WFI/image/{output}") | ||
diff = compare_asdf(rtdata.output, rtdata.truth, **ignore_asdf_paths) | ||
assert diff.identical, diff.report() | ||
|
||
|
||
@pytest.mark.bigdata | ||
def test_dark_current_output(rtdata, ignore_asdf_paths): | ||
"""Function to run and compare Dark Current subtraction files. Here the | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now that #1375 is merged (switching change log handling to
towncrier
) this change log entry should be a file inchanges/
instead:(this is just because #1375 was merged while active PRs existed; new PRs will have these instructions in their checklist)