Skip to content

Commit 1f40c98

Browse files
jespinosaarbsipocz
authored andcommitted
JWSTPCR-166: get_related_products, tests and docs updated
1 parent c17f458 commit 1f40c98

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

astroquery/jwst/core.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,6 @@ def get_product(self, artifact_id=None, file_name=None):
11771177
params_dict['DATA_RETRIEVAL_ORIGIN'] = 'ASTROQUERY'
11781178

11791179
if artifact_id is None and file_name is None:
1180-
log.info("ARTIFACT NONE")
11811180
raise ValueError("Missing required argument: "
11821181
"'artifact_id' or 'file_name'")
11831182
else:
@@ -1245,11 +1244,9 @@ def get_obs_products(self, observation_id=None, cal_level="ALL",
12451244

12461245
plane_ids = self._get_associated_planes(plane_ids, cal_level,
12471246
max_cal_level, True)
1248-
log.info(plane_ids)
12491247
params_dict['planeid'] = plane_ids
12501248
self.__set_additional_parameters(params_dict, cal_level, max_cal_level,
12511249
product_type)
1252-
log.info(params_dict)
12531250
output_file_full_path, output_dir = self.__set_dirs(output_file,
12541251
observation_id)
12551252
# Get file name only

astroquery/jwst/tests/test_jwsttap.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -776,12 +776,10 @@ def test_get_obs_products(self):
776776
extracted_file_1 = output_file_full_path_dir + os.sep +\
777777
'single_product_retrieval_1.fits'
778778
expected_files.append(extracted_file_1)
779-
log.info(extracted_file_1)
780-
781779
try:
782780
files_returned = (jwst.get_obs_products(
783781
observation_id=observation_id, cal_level='ALL',
784-
output_file = output_file_full_path))
782+
output_file=output_file_full_path))
785783
dummyTapHandler.check_call('load_data', parameters)
786784
self.__check_extracted_files(files_expected=expected_files,
787785
files_returned=files_returned)
@@ -1001,8 +999,9 @@ def test_query_target(self):
1001999
" ALL" in err.value.args[0]
10021000
with pytest.raises(ValueError) as err:
10031001
jwst.query_target("M1", "ALL")
1004-
assert err.value.args[0] in ["This target name cannot be determined "\
1005-
"with this resolver: ALL", "Missing required argument: 'width'"]
1002+
assert err.value.args[0] in ["This target name cannot be determined "
1003+
"with this resolver: ALL", "Missing "
1004+
"required argument: 'width'"]
10061005

10071006
# Testing no valid coordinates from resolvers
10081007
simbad_file = data_path('test_query_by_target_name_simbad_'

0 commit comments

Comments
 (0)