Add stub ex-scripts, recentering class, and ctest for recentering task#916
Add stub ex-scripts, recentering class, and ctest for recentering task#916AndrewEichmann-NOAA wants to merge 8 commits into
Conversation
257cef4
| import os | ||
| from logging import getLogger | ||
| from typing import Dict, List, Any | ||
| from wxflow import logit |
There was a problem hiding this comment.
| from wxflow import logit | |
| from wxflow import Task, logit |
| import os | ||
|
|
||
| from wxflow import Logger, cast_strdict_as_dtypedict | ||
| from soca.marine_recenter import MarineRecenter |
There was a problem hiding this comment.
Please add a comment with a TODO: to move marine_recenter.py to ush/python/pygfs/task in the global-workflow so that when the time comes, it is easily achieved.
There was a problem hiding this comment.
If it helps, it would be:
from pygfs.task.marine_recenter import MarineRecenter|
|
||
| class MarineRecenter(): | ||
|
|
||
| def __init__(self, config): |
There was a problem hiding this comment.
Please add stub documentation and follow typing hints. E.g.
| def __init__(self, config): | |
| def __init__(self, config: Dict) -> None: | |
| """Stub constructor for ocean recentering task | |
| Parameters: | |
| ------------ | |
| config: Dict | |
| configuration of XYZ | |
| Returns | |
| -------- | |
| None |
Please see examples of tasks in ush/python/pygfs/task of the global-workflow.
| self.task_config = AttrDict(**self.config, **self.runtime_config, **local_dict) | ||
|
|
||
| #_soca_ensb_yaml_temp | ||
| print(self.task_config) |
There was a problem hiding this comment.
use logger.info or logger.debug
Also, since printing a dictionary, please use pformat
There was a problem hiding this comment.
This is temporary for debugging
| FileHandler({'mkdir': [self.task_config.diags, | ||
| self.task_config.obs_in, | ||
| self.task_config.bkg_dir, | ||
| self.task_config.anl_out, | ||
| self.task_config.static_ens]}).sync() |
There was a problem hiding this comment.
These should be in a yaml, not in python.
There was a problem hiding this comment.
Also, I'm not sure what any of these have to do with the recentering @AndrewEichmann-NOAA . You don't need obs, diags, anl_out or static ensemble ... Let's talk off line, we'll go through the steps that needs to be implemented for this job.
There was a problem hiding this comment.
removed
|
Since this is going beyond stub status, I'm closing this PR and holding off until a nominally working version is ready |
Dependent on NOAA-EMC/global-workflow#2299 being merged, partially addresses #912