Skip to content
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

Moved data refreshing from python api to command-line endpoint #21

Merged
merged 2 commits into from
Nov 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ Or from inside Python::

It is also possible to delete and re-download the data archive, in case something goes wrong::

from fv3config import refresh_downloaded_data

refresh_downloaded_data()
$ python -m fv3config.refresh_data

Configuration
-------------
Expand Down
2 changes: 1 addition & 1 deletion fv3config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
write_run_directory, enable_restart
)
from ._exceptions import InvalidFileError, ConfigError
from ._datastore import refresh_downloaded_data, ensure_data_is_downloaded
from ._datastore import ensure_data_is_downloaded

__all__ = [
'config_to_namelist', 'config_from_namelist', 'get_default_config',
Expand Down
4 changes: 4 additions & 0 deletions fv3config/refresh_data.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from ._datastore import refresh_downloaded_data

if __name__ == '__main__':
refresh_downloaded_data()