Skip to content

Commit

Permalink
BCE for years -2000 years before 2000
Browse files Browse the repository at this point in the history
  • Loading branch information
cyschneck committed Dec 4, 2022
1 parent 8ad2e93 commit 26a633a
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@ def displayDeclinationMarksOnAxis(declination_values, dec_min, dec_max, isInvert
if abs(years_for_title) > 1000000:
years_for_title = years_for_title / 1000000
suffix = "M"
if yearSince2000 >= 0: year_bce_ce = "{0} C.E".format(yearSince2000 + 2000) # postive years for C.E
if yearSince2000 < 0: year_bce_ce = "{0} B.C.E".format(abs(yearSince2000 + 2000)) # negative years for B.C.E
if yearSince2000 >= -2000: year_bce_ce = "{0} C.E".format(yearSince2000 + 2000) # postive years for C.E
if yearSince2000 < -2000: year_bce_ce = "{0} B.C.E".format(abs(yearSince2000 + 2000)) # negative years for B.C.E
figure_has_precession_extra_string = "with Precession" if isPrecessionIncluded else "without Precession"

if fig_plot_title is None: # by default sets title of plot
Expand Down
Binary file removed dist/star-chart-spherical-projection-1.2.3.tar.gz
Binary file not shown.
Binary file added dist/star-chart-spherical-projection-1.2.4.tar.gz
Binary file not shown.
Binary file not shown.
Binary file modified examples/north_with_labels_with_precession.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified examples/north_with_labels_without_precession.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions generate_examples_star_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
## Northern Hemisphere: Without and With Precession
star_chart_spherical_projection.plotStereographicProjection(northOrSouth="North",
displayStarNamesLabels=True,
yearSince2000=11000,
yearSince2000=11500,
isPrecessionIncluded=False,
fig_plot_color="red",
save_plot_name="examples/north_with_labels_without_precession")
star_chart_spherical_projection.plotStereographicProjection(northOrSouth="North",
displayStarNamesLabels=True,
yearSince2000=11000,
yearSince2000=11500,
isPrecessionIncluded=True,
fig_plot_color="red",
save_plot_name="examples/north_with_labels_with_precession")
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Python Package Setup
from setuptools import setup, find_namespace_packages

VERSION="1.2.3"
VERSION="1.2.4"
DESCRIPTION="A Python package to generate an astronomy star chart based on spherical projection that corrects for distortions with stereographic projection"

with open("README.md", "r") as f:
Expand Down
4 changes: 2 additions & 2 deletions star_chart_spherical_projection/generate_star_chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,8 @@ def displayDeclinationMarksOnAxis(declination_values, dec_min, dec_max, isInvert
if abs(years_for_title) > 1000000:
years_for_title = years_for_title / 1000000
suffix = "M"
if yearSince2000 >= 0: year_bce_ce = "{0} C.E".format(yearSince2000 + 2000) # postive years for C.E
if yearSince2000 < 0: year_bce_ce = "{0} B.C.E".format(abs(yearSince2000 + 2000)) # negative years for B.C.E
if yearSince2000 >= -2000: year_bce_ce = "{0} C.E".format(yearSince2000 + 2000) # postive years for C.E
if yearSince2000 < -2000: year_bce_ce = "{0} B.C.E".format(abs(yearSince2000 + 2000)) # negative years for B.C.E
figure_has_precession_extra_string = "with Precession" if isPrecessionIncluded else "without Precession"

if fig_plot_title is None: # by default sets title of plot
Expand Down

0 comments on commit 26a633a

Please sign in to comment.