-
Notifications
You must be signed in to change notification settings - Fork 1
Afos/io connections commands #38
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
Conversation
- Accelerator `cosmo_api` can be found in `coal.cosmotech_api` - Accelerator `csm_engine` is moved to `coal.csm.engine` - Removed old `Core` folders - Removed `MultiEnvironment`
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.
Some flavor changes, but LGTM
show_envvar=True, | ||
required=True) | ||
@click.option("--prefix", | ||
"file_prefix", |
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.
Maybe change the name to "prefix_filter" to not confuse with a added prefix to file at upload.
"""Download S3 bucket content to a given folder | ||
Make use of the default AWS/S3 configuration to access the bucket | ||
Will download everything in the bucket unless a prefix is set, then only file following the given preix will be downloaded |
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.
Typo: at the end: the given preix will -> the given prefix will
envvar="CSM_S3_CA_BUNDLE") | ||
@web_help("csm-data/s3-bucket-load") | ||
def s3_bucket_load(target_folder, bucket_name): | ||
def s3_bucket_load( |
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.
Rename to s3_bucket_download to avoid confusion
self.store_location = pathlib.Path(os.environ.get("CSM_PARAMETERS_ABSOLUTE_PATH", ".")) / ".coal/store" | ||
def __init__( | ||
self, | ||
reset=False, |
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.
For a singleton I've understood but now it seem more confusing than useful. looks like a gimmick not to call the reset function.
No description provided.