Ejemplo n.º 1
0
    },
)

plotpub_template = \
'\nPublished %(variety)s %(key)s plot for %(date)s to :\n%(filepath)s'
GRAPE.publish.plots = ({
    'group': '[email protected]',
    'key': 'Kill-vs-Temp-@-Geneva-NY',
    'msg': plotpub_template
}, )

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# grape variety configurations
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

from frost.grape.phenology import GrapeVariety
from frost.grape.varieties import PHENOLOGY, GRAPES

VARIETIES = ConfigObject('varieties', GRAPE)

for grape in GRAPES:
    cultivar = grape['cultivar']
    variety = GrapeVariety(grape['name'], None, grape['description'], cultivar,
                           PHENOLOGY[cultivar], grape['hardiness'],
                           grape['ecodormancy_threshold'],
                           grape['acclimation_rate'],
                           grape['deacclimation_rate'],
                           grape['stage_thresholds'], grape['theta'])
    VARIETIES.addChild(variety)
Ejemplo n.º 2
0
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

PROVENANCE_RECORD_TYPE = (
    ('obs_date', '|S10'),
    ('processed', '|S20'),
)
GDD_PROVENANCE_STATS = (('min', '<i2'), ('max', '<i2'), ('avg', '<i2'))

# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #

APPLE = ConfigObject('apple', None, 'animation.start')

APPLE.end_day = (6, 30)
APPLE.start_day = (9, 1)

APPLE.gdd_thresholds = ((43, 86), )
APPLE.gdd_provenance_empty = ('', '', -32768, -32768, -32768)
APPLE.gdd_provenance_type = PROVENANCE_RECORD_TYPE + GDD_PROVENANCE_STATS

APPLE.animation.start.chill = (9, 15)
APPLE.animation.start.gdd = (2, 1)
APPLE.animation.start.stage = (2, 1)
APPLE.animation.start.kill = (2, 1)

from frost.apple.chill.config import CHILL
APPLE.addChild(CHILL)

from frost.apple.variety.config import VARIETY, VARIETIES
APPLE.addChild(VARIETY)
APPLE.addChild(VARIETIES)