polaris.tasks.ocean.analysis.PublishTask
- class polaris.tasks.ocean.analysis.PublishTask(component, config, tasks)[source]
A task that publishes the results of the other analysis tasks
It carries the one
publishstep of the suite, which depends on every step that makes products. Nothing about the suite makes that step run last on its own, so the suite lists it last.- Variables:
analysis_tasks (list of polaris.tasks.ocean.analysis.AnalysisTask) – The tasks whose steps make the products that are published
- __init__(component, config, tasks)[source]
Create the publish task
- Parameters:
component (polaris.tasks.ocean.Ocean) – The ocean component the task belongs to
config (polaris.config.PolarisConfigParser) – The config parser shared by every analysis task
tasks (list of polaris.tasks.ocean.analysis.AnalysisTask) – The tasks whose steps make products. They are built before this one so that their steps exist, and rebuilt before this task is configured so that the steps this one depends on are the ones the user’s config asked for.
Methods
__init__(component, config, tasks)Create the publish task
add_step([step, subdir, symlink, run_by_default])Add a step to the task and component (if not already present)
configure()Build the steps again now that the user's config file has been read
Build the publish step again, now that a task it depends on has rebuilt its steps
remove_step(step)Remove the given step from this task and the component
set_shared_config(config[, link])Replace the task's config parser with the shared config parser
year_range()Get the range of simulation years this task's steps cover