Skip to content

Commit

Permalink
Reverting PR #1860 (#1915)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-goldman authored Nov 21, 2024
1 parent 496db58 commit 248ed62
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 23 deletions.
2 changes: 0 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ number of the code change for that issue. These PRs can be viewed at:

- Addressed additional issures related to numpy 2.0 scalar promotion. [#1875]

- Added new header keywords and match requirements for relative fitting. [#1860]

- Update to HDRTABLE for MVM products to include SVM rootname and SVM creation date. [#1846]

- Added python 3.12 to testing matrix for Jenkins and github actions. [#1843]
Expand Down
13 changes: 4 additions & 9 deletions drizzlepac/align.py
Original file line number Diff line number Diff line change
Expand Up @@ -986,16 +986,11 @@ def determine_fit_quality(

# Execute checks
nmatches_check = False

if item.meta['fit method']!='relative':
required_nmatches = align_pars["run_align"]["mosaic_fitgeom_list"][fitgeom]
else:
required_nmatches = align_pars["run_align"]["mosaic_relgeom_list"][fitgeom]

# If the number of matches is more than requirement set in configuration (json) files
# OR the fit RMS is higher --> fit is compromised below
if num_xmatches >= required_nmatches or (num_xmatches >= 2 and fit_rms_val > 0.5):
if num_xmatches >= align_pars["run_align"]["mosaic_fitgeom_list"][fitgeom] or (
num_xmatches >= 2 and fit_rms_val > 0.5
):
nmatches_check = True

radial_offset_check = False
radial_offset = (
math.sqrt(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"MAX_FIT_LIMIT": 150,
"mosaic_catalog_list": ["GAIAeDR3", "GSC242", "2MASS"],
"mosaic_fit_list": ["match_relative_fit", "match_2dhist_fit", "match_default_fit"],
"mosaic_fitgeom_list": {"rshift": 4, "rscale": 10, "general": 6},
"mosaic_relgeom_list": {"rshift": 20, "rscale": 10, "general": 9}
"mosaic_fitgeom_list": {"rshift": 4, "rscale": 10, "general": 6}
},
"generate_source_catalogs":
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"MAX_FIT_LIMIT": 150,
"mosaic_catalog_list": ["GAIAeDR3", "GSC242", "2MASS"],
"mosaic_fit_list": ["match_relative_fit", "match_2dhist_fit", "match_default_fit"],
"mosaic_fitgeom_list": {"rshift": 4, "rscale": 10, "general": 6},
"mosaic_relgeom_list": {"rshift": 20, "rscale": 10, "general": 9}
"mosaic_fitgeom_list": {"rshift": 4, "rscale": 10, "general": 6}
},
"generate_source_catalogs":
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"MAX_FIT_LIMIT": 150,
"mosaic_catalog_list": ["GAIAeDR3", "GSC242", "2MASS"],
"mosaic_fit_list": ["match_relative_fit", "match_2dhist_fit", "match_default_fit"],
"mosaic_fitgeom_list": {"rshift": 4, "rscale": 10, "general": 6},
"mosaic_relgeom_list": {"rshift":20, "rscale": 10, "general": 9}
"mosaic_fitgeom_list": {"rshift": 4, "rscale": 10, "general": 6}
},
"generate_source_catalogs":
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"MAX_FIT_LIMIT": 150,
"mosaic_catalog_list": ["GAIAeDR3", "GSC242", "2MASS"],
"mosaic_fit_list": ["match_relative_fit", "match_2dhist_fit", "match_default_fit"],
"mosaic_fitgeom_list": {"rshift": 4, "rscale": 10, "general": 6},
"mosaic_relgeom_list": {"rshift":20, "rscale": 10, "general": 9}
"mosaic_fitgeom_list": {"rshift": 4, "rscale": 10, "general": 6}
},
"generate_source_catalogs":
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"MAX_FIT_LIMIT": 150,
"mosaic_catalog_list": ["GAIAeDR3", "GSC242", "2MASS"],
"mosaic_fit_list": ["match_relative_fit", "match_2dhist_fit", "match_default_fit"],
"mosaic_fitgeom_list": {"rshift": 4, "rscale": 10, "general": 6},
"mosaic_relgeom_list": {"rshift":20, "rscale": 10, "general": 9}
"mosaic_fitgeom_list": {"rshift": 4, "rscale": 10, "general": 6}
},
"generate_source_catalogs":
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"MAX_FIT_LIMIT": 150,
"mosaic_catalog_list": ["GAIAeDR3", "GSC242", "2MASS"],
"mosaic_fit_list": ["match_relative_fit", "match_2dhist_fit", "match_default_fit"],
"mosaic_fitgeom_list": {"rshift": 4, "rscale": 10, "general": 6},
"mosaic_relgeom_list": {"rshift":20, "rscale": 10, "general": 9}
"mosaic_fitgeom_list": {"rshift": 4, "rscale": 10, "general": 6}
},
"generate_source_catalogs":
{
Expand Down

0 comments on commit 248ed62

Please sign in to comment.