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 publish step 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:

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

rebuild_steps()

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