diff --git a/star_chart_spherical_projection/generate_star_chart.py b/star_chart_spherical_projection/generate_star_chart.py index 8217d1e..f3a47c9 100644 --- a/star_chart_spherical_projection/generate_star_chart.py +++ b/star_chart_spherical_projection/generate_star_chart.py @@ -308,11 +308,11 @@ def plot_stereographic_projection(included_stars=[], figsize_dpi=figsize_dpi, save_plot_name=save_plot_name) pole = pole.capitalize() - listOfStars = [] + list_of_stars = [] if not only_added_stars: included_stars = [x.title() for x in included_stars] # convert all names to capitalized for star in _get_stars(included_stars): - listOfStars.append([star[0], + list_of_stars.append([star[0], star[1], star[2], star[4], @@ -325,9 +325,9 @@ def plot_stereographic_projection(included_stars=[], star_object.pm_speed, star_object.pm_angle, star_object.magnitude] - listOfStars.append(star_row) + list_of_stars.append(star_row) else: - listOfStars = [] + list_of_stars = [] for star_object in added_stars: star_row = [star_object.star_name, star_object.ra, @@ -335,7 +335,7 @@ def plot_stereographic_projection(included_stars=[], star_object.pm_speed, star_object.pm_angle, star_object.magnitude] - listOfStars.append(star_row) + list_of_stars.append(star_row) # plot star chart as a circular graph @@ -389,7 +389,7 @@ def plot_stereographic_projection(included_stars=[], logger.debug(f"\n{pole}ern Range of Declination: {declination_min} to {declination_max}") # convert to x and y values for stars - x_star_labels, x_ra_values, y_dec_values, star_dict = _generate_stereographic_projection(starList=listOfStars, + x_star_labels, x_ra_values, y_dec_values, star_dict = _generate_stereographic_projection(starList=list_of_stars, pole=pole, year_since_2000=year_since_2000, is_precession=is_precession, diff --git a/star_chart_spherical_projection/position_of_stars.py b/star_chart_spherical_projection/position_of_stars.py index 3edd083..502d0ff 100644 --- a/star_chart_spherical_projection/position_of_stars.py +++ b/star_chart_spherical_projection/position_of_stars.py @@ -40,7 +40,7 @@ def final_position(included_stars=[], if not only_added_stars: # show all stars included_stars = [x.title() for x in included_stars] # convert all names to capitalized - listOfStars = star_chart_spherical_projection._get_stars(included_stars) + list_of_stars = star_chart_spherical_projection._get_stars(included_stars) for star_object in added_stars: star_row = [star_object.star_name, star_object.ra, @@ -48,10 +48,10 @@ def final_position(included_stars=[], star_object.pm_speed, star_object.pm_angle, star_object.magnitude] - listOfStars.append(star_row) + list_of_stars.append(star_row) else: # show only the user's added stars - listOfStars = [] + list_of_stars = [] for star_object in added_stars: star_row = [star_object.star_name, star_object.ra, @@ -59,13 +59,13 @@ def final_position(included_stars=[], star_object.pm_speed, star_object.pm_angle, star_object.magnitude] - listOfStars.append(star_row) + list_of_stars.append(star_row) # Set declination min values when using the _generate_stereographic_projection() to capture all stars if not set declination_min = -90 declination_max = 90 - _, _, _, finalPositionOfStarsDict = star_chart_spherical_projection._generate_stereographic_projection(starList=listOfStars, + _, _, _, finalPositionOfStarsDict = star_chart_spherical_projection._generate_stereographic_projection(starList=list_of_stars, pole="North", declination_min=declination_min, year_since_2000=year_since_2000,