srg/astrobasis/management/commands/00_astrobasis_glimpse_healpix.py
2024-04-26 12:43:00 +03:00

12 lines
370 B
Python

from django.core.management.base import BaseCommand, CommandError
from astrobasis.utils import astrobasis_assign_healpix
from astrobasis.models import GLIMPSE
class Command(BaseCommand):
help = 'Initiates healpix for GLIMPSE'
def handle(self, *args, **options):
astrobasis_assign_healpix(GLIMPSE)
self.stdout.write(self.style.SUCCESS('Done'))