-
-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor configs to runtimes #75
Conversation
|
||
|
||
class BaseRuntime: | ||
"""Base configuration class that defines abstract methods (storage, run_config and executor) for subclasses.""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"""Base runtime class
Values to move to
|
'intermediate': {'uri': '/tmp/flow-outputs/intermediates', 'storage_options': {}}, | ||
'results': {'uri': '/tmp/flow-outputs/results', 'storage_options': {}}, | ||
'temporary': {'uri': '/tmp/cmip6/temp/', 'storage_options': {}}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #76 for a follow up that will allow more reasonable defaults.
'results': {'uri': '/tmp/flow-outputs/results', 'storage_options': {}}, | ||
'temporary': {'uri': '/tmp/cmip6/temp/', 'storage_options': {}}, | ||
}, | ||
'methods': {'bcsd': {}, 'gard': {}, 'maca': {}}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@orianac - anything you think should be added here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'deepsd'?
'storage.results.uri': '/tmp/results', | ||
'storage.temporary.uri': '/tmp/temporary', | ||
} | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see #76 for a todo item here (this does not work as desired)
# cloud_runtime = CloudRuntime() | ||
# assert isinstance(cloud_runtime, BaseRuntime) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be nice to find a way to mock this runtime. Added a todo in #76
No description provided.