示例#1
0
文件: views.py 项目: j-chacon/freq
 def today(self):
     return jsdt.today()
示例#2
0
 def today(self):
     return jsdt.today()
示例#3
0
文件: views.py 项目: j-chacon/freq
import freq.jsdatetime as jsdt
from freq.buttons import *
import freq.freq_calculator as calculator
from freq.lizard_api import ApiError
from freq.lizard_api import GroundwaterLocations
from freq.lizard_api import GroundwaterTimeSeries


TIMESERIES_MEASUREMENT_FREQUENCY = 'M'
DEFAULT_STATE = {
    'map_': {
        'bounds': [
            [48.0, -6.8],
            [56.2, 18.9]
        ],
        'datepicker': {'start': '1-1-1900', 'end': jsdt.today()},
        'dropdown_0': {'value': 'mean'},
    },
    'startpage': {
        'chart': 'hidden',
        'datepicker': {'start': '1-1-1900', 'end': jsdt.today()},
        'end_js': 1000000000000,
        'graph': {'x': 0, 'y': 0, 'series': 0},
        'measurement_point': 'No Time Series Selected',
        'selected_coords': [],
        'start_js': 0,
        'timeseries_length': -9999,
        'uuid': 'EMPTY',
    },
    'trend_detection': {
        'active': False,
示例#4
0
from freq.lizard_connector import Users
from freq.lizard_connector import TaskAPI

logger = logging.getLogger(__name__)

TIMESERIES_MEASUREMENT_FREQUENCY = 'M'
DEFAULT_STATE = {
    'login': {
        'selected_organisation': '',
        'selected_organisation_id': '',
    },
    'map_': {
        'bounds': [[15, 90], [5, 110]],
        'datepicker': {
            'start': '1-1-1930',
            'end': jsdt.today()
        },
        'dropdown_0': {
            'value': 'GWmBGS | mean'
        },
        'graph': {
            'x': 0,
            'y': 0,
            'series': 0
        },
        'measurement_point': 'No Time Series Selected',
        'uuid': 'EMPTY',
        'end_js': 1000000000000,
        'timeseries_length': -9999,
        'start_js': -1262304000000,
    },