Skip to content

Commit

Permalink
added showing calibration report
Browse files Browse the repository at this point in the history
  • Loading branch information
dvida committed Jul 25, 2021
1 parent e785bfd commit 31c51ad
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions RMS/Astrometry/ApplyRecalibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from RMS.Formats import StarCatalog
from RMS.Math import angularSeparation
import Utils.RMS2UFO
import Utils.CalibrationReport


# Neighbourhood size around individual FFs with detections which will be takes for recalibration
Expand Down Expand Up @@ -762,6 +763,9 @@ def applyRecalibrate(ftpdetectinfo_path, config, generate_plot=True):
arg_parser.add_argument('-c', '--config', nargs=1, metavar='CONFIG_PATH', type=str, \
help="Path to a config file which will be used instead of the default one.")

arg_parser.add_argument('-r', '--report', action="store_true", \
help="""Show the calibration report at the end.""")

# Parse the command line arguments
cml_args = arg_parser.parse_args()

Expand All @@ -785,3 +789,9 @@ def applyRecalibrate(ftpdetectinfo_path, config, generate_plot=True):

# Run the recalibration and recomputation
applyRecalibrate(ftpdetectinfo_path, config)


# Show the calibration report
if cml_args.report:

Utils.CalibrationReport.generateCalibrationReport(config, dir_path, show_graphs=True)

0 comments on commit 31c51ad

Please sign in to comment.