diff --git a/star_chart_spherical_projection/error_handling.py b/star_chart_spherical_projection/error_handling.py index 0f4d79d..494bcad 100644 --- a/star_chart_spherical_projection/error_handling.py +++ b/star_chart_spherical_projection/error_handling.py @@ -8,7 +8,7 @@ import pandas as pd import star_chart_spherical_projection -def errorHandling(isPlotFunction=None, +def errorHandling(is_plot_function=None, included_stars=None, pole=None, year_since_2000=None, @@ -69,7 +69,7 @@ def errorHandling(isPlotFunction=None, raise ValueError(f"[only_added_stars]: Must be a bool, current type = '{type(only_added_stars)}'") # Error Handling for final_position() function - if not isPlotFunction: + if not is_plot_function: # Ensure that declination ranges are set and within within ranges if declination_max is not None: if type(declination_max) != int and type(declination_max) != float: @@ -83,7 +83,7 @@ def errorHandling(isPlotFunction=None, raise ValueError(f"[save_to_csv]: Extension must be a .csv file, current extension = '{save_to_csv.split('.')[1]}'") # Error Handling for plot_stereographic_projection() function - if isPlotFunction: + if is_plot_function: # Ensure that Pole selected are within options if type(pole) != str: raise ValueError(f"[pole]: Must be a str, current type = '{type(pole)}'") diff --git a/star_chart_spherical_projection/generate_star_chart.py b/star_chart_spherical_projection/generate_star_chart.py index c2195b9..9b7d122 100644 --- a/star_chart_spherical_projection/generate_star_chart.py +++ b/star_chart_spherical_projection/generate_star_chart.py @@ -289,7 +289,7 @@ def plot_stereographic_projection(included_stars=[], save_plot_name=None): # Catch errors in given arguments before plotting and set default constants - star_chart_spherical_projection.errorHandling(isPlotFunction=True, + star_chart_spherical_projection.errorHandling(is_plot_function=True, included_stars=included_stars, pole=pole, declination_min=declination_min, diff --git a/star_chart_spherical_projection/position_of_stars.py b/star_chart_spherical_projection/position_of_stars.py index 460f5fa..b73ee46 100644 --- a/star_chart_spherical_projection/position_of_stars.py +++ b/star_chart_spherical_projection/position_of_stars.py @@ -27,7 +27,7 @@ def final_position(included_stars=[], save_to_csv=None): # return the final position of the stars as a dictionary - star_chart_spherical_projection.errorHandling(isPlotFunction=False, + star_chart_spherical_projection.errorHandling(is_plot_function=False, included_stars=included_stars, year_since_2000=year_since_2000, is_precession=is_precession,