Skip to content

Conversation

neomatamune
Copy link
Member

No description provided.

@neomatamune neomatamune requested a review from lalepee September 26, 2024 13:28
- 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`
Copy link
Contributor

@lalepee lalepee left a 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",
Copy link
Contributor

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
Copy link
Contributor

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(
Copy link
Contributor

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,
Copy link
Contributor

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.

@neomatamune neomatamune merged commit 171af69 into main Oct 4, 2024
3 checks passed
@neomatamune neomatamune deleted the AFOS/io_connections_commands branch October 4, 2024 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants