From 36a5a2b520eff2f3ef3c8551f31735650ae72900 Mon Sep 17 00:00:00 2001 From: Anthony Soulain Date: Wed, 31 Mar 2021 17:06:50 +1100 Subject: [PATCH] change the function name to be more relevant (show_clean_params). --- amical/__init__.py | 2 +- amical/data_processing.py | 4 ++-- doc/example_SPHERE.py | 2 +- doc/tutorial.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/amical/__init__.py b/amical/__init__.py index fe10839a..e5e8a574 100644 --- a/amical/__init__.py +++ b/amical/__init__.py @@ -2,7 +2,7 @@ from .analysis.easy_pymask import pymask_cr_limit, pymask_grid, pymask_mcmc from .analysis.fitting import fits2obs, plot_model, smartfit from .calibration import calibrate -from .data_processing import check_data_params, select_clean_data +from .data_processing import show_clean_params, select_clean_data from .mf_pipeline.ami_function import make_mf from .mf_pipeline.bispect import extract_bs from .oifits import cal2dict, load, loadc, save, show diff --git a/amical/data_processing.py b/amical/data_processing.py index f902de06..20dcf1a3 100644 --- a/amical/data_processing.py +++ b/amical/data_processing.py @@ -215,10 +215,10 @@ def fix_bad_pixels(image, bad_map, add_bad=[], x_stddev=1): return fixed_image -def check_data_params(filename, isz, r1, dr, bad_map=None, add_bad=[], +def show_clean_params(filename, isz, r1, dr, bad_map=None, add_bad=[], edge=0, remove_bad=True, nframe=0, ihdu=0, f_kernel=3, offx=0, offy=0, apod=False, window=None): - """ Check the input parameters for the cleaning. + """ Display the input parameters for the cleaning. Parameters: ----------- diff --git a/doc/example_SPHERE.py b/doc/example_SPHERE.py index 34e13c47..2e2a3520 100755 --- a/doc/example_SPHERE.py +++ b/doc/example_SPHERE.py @@ -21,7 +21,7 @@ 'f_kernel': 3 } -amical.check_data_params(file_t, **clean_param) +amical.show_clean_params(file_t, **clean_param) cube_t = amical.select_clean_data(file_t, clip=True, **clean_param, display=True) diff --git a/doc/tutorial.md b/doc/tutorial.md index aaaa797c..db22e0c4 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -49,7 +49,7 @@ clean_param = {'isz': 69, # final cropped image size [pix] } # Firsly, check if the input parameters are valid -amical.check_data_params(nrm_file, **clean_param) +amical.show_clean_params(nrm_file, **clean_param) ```