예제 #1
0
파일: importer.py 프로젝트: candeira/calima
 def handle(self, *args, **options):
     calima = Calima(path=args[0])
     ## Specify the year
     if len(args) > 1:
         calima.generarDatosAnual(map(int, args[1:]))
     else:
         calima.generarDatosAnual()
     station_importer(calima.estaciones)
예제 #2
0
 def handle(self, *args, **options):
     calima = Calima(path=args[0])
     ## Specify the year
     if len(args) > 1:
         calima.generarDatosAnual(map(int, args[1:]))
     else:
         calima.generarDatosAnual()
     station_importer(calima.estaciones)
예제 #3
0
파일: tasks.py 프로젝트: candeira/calima
def updateStation():
    """ 
        Periodic task that updates the lastest anual data and
        import it to the model
    """

    try:
        path = settings.BASEDIR_DATA
    except AttributeError:
        # This should not happen I guess
        path = '/tmp/'
    calima = Calima(path=path)
    calima.actualizar()
    station_importer(calima.estaciones)
예제 #4
0
파일: tasks.py 프로젝트: vrruiz/calima
def updateStation():
    """ 
        Periodic task that updates the lastest anual data and
        import it to the model
    """

    try:
        path = settings.BASEDIR_DATA
    except AttributeError:
        # This should not happen I guess
        path = "/tmp/"
    calima = Calima(path=path)
    calima.actualizar()
    station_importer(calima.estaciones)