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

12 lines
368 B
Python

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