This commit is contained in:
yuni 2024-03-18 23:49:47 +01:00
parent 1c06343fa6
commit 054c9f0361

View file

@ -1,5 +1,5 @@
#!/usr/bin/env python #!/usr/bin/env python
# This script requires the following file in the current directory: # This script requires the following file in the assets/tmp/ directory:
# https://github.com/astronexus/HYG-Database/blob/cbd21013d2bb89732b893be357a6f41836dbe614/hyg/CURRENT/hygdata_v41.csv # https://github.com/astronexus/HYG-Database/blob/cbd21013d2bb89732b893be357a6f41836dbe614/hyg/CURRENT/hygdata_v41.csv
import csv import csv
@ -62,7 +62,7 @@ def render(ra, dec, mag, ci, proper):
total = 0 total = 0
count = 0 count = 0
count_extra = 0 count_extra = 0
with open("hygdata_v41.csv", "r", encoding="utf-8") as f: with open("assets/tmp/hygdata_v41.csv", "r", encoding="utf-8") as f:
for entry in csv.DictReader(f): for entry in csv.DictReader(f):
total += 1 total += 1
ra = entry['ra'] ra = entry['ra']