Skip to content

Commit

Permalink
Moved data refreshing from python api to command-line endpoint (#21)
Browse files Browse the repository at this point in the history
* Moved data refreshing from python api to command-line endpoint

* Updated documentation
  • Loading branch information
Jeremy McGibbon authored Nov 18, 2019
1 parent c30ecf9 commit e81c45d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
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()

0 comments on commit e81c45d

Please sign in to comment.