Skip to content
This repository was archived by the owner on Sep 26, 2020. It is now read-only.

Commit 98ad410

Browse files
committed
Fix command names
1 parent 54a3906 commit 98ad410

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

axon/client.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ def impl_get_task_ip(cluster_name, task_arn, region):
575575
return nics[0]["Association"]["PublicIp"]
576576

577577

578-
def impl_upload_untrained_model_file(model_path, bucket_name, region):
578+
def impl_upload_untrained_model(model_path, bucket_name, region):
579579
"""
580580
Uploads an untrained model to S3.
581581
@@ -589,7 +589,7 @@ def impl_upload_untrained_model_file(model_path, bucket_name, region):
589589
print("Uploaded to: {}\n".format(key))
590590

591591

592-
def impl_download_untrained_model_file(model_path, bucket_name, region):
592+
def impl_download_untrained_model(model_path, bucket_name, region):
593593
"""
594594
Downloads an untrained model from S3.
595595
@@ -603,7 +603,7 @@ def impl_download_untrained_model_file(model_path, bucket_name, region):
603603
print("Downloaded from: {}\n".format(key))
604604

605605

606-
def impl_upload_trained_model_file(model_path, bucket_name, region):
606+
def impl_upload_trained_model(model_path, bucket_name, region):
607607
"""
608608
Uploads an trained model to S3.
609609
@@ -617,7 +617,7 @@ def impl_upload_trained_model_file(model_path, bucket_name, region):
617617
print("Uploaded to: {}\n".format(key))
618618

619619

620-
def impl_download_trained_model_file(model_path, bucket_name, region):
620+
def impl_download_trained_model(model_path, bucket_name, region):
621621
"""
622622
Downloads an trained model from S3.
623623
@@ -792,56 +792,56 @@ def get_container_ip(task_arn, region):
792792
print(impl_get_task_ip("axon-autogenerated-cluster", task_arn, region))
793793

794794

795-
@cli.command(name="upload-untrained-model-file")
795+
@cli.command(name="upload-untrained-model")
796796
@click.argument("model-path")
797797
@click.option("--region", help="The region to connect to.",
798798
type=click.Choice(region_choices))
799-
def upload_untrained_model_file(model_path, region):
799+
def upload_untrained_model(model_path, region):
800800
"""
801801
Uploads an untrained model from a local file.
802802
803803
MODEL_PATH The path to the model to upload, ending with the name of the model.
804804
"""
805-
impl_upload_untrained_model_file(model_path, ensure_s3_bucket(region), region)
805+
impl_upload_untrained_model(model_path, ensure_s3_bucket(region), region)
806806

807807

808-
@cli.command(name="download-untrained-model-file")
808+
@cli.command(name="download-untrained-model")
809809
@click.argument("model-path")
810810
@click.option("--region", help="The region to connect to.",
811811
type=click.Choice(region_choices))
812-
def download_untrained_model_file(model_path, region):
812+
def download_untrained_model(model_path, region):
813813
"""
814814
Downloads an untrained model to a local file.
815815
816816
MODEL_PATH The path to download the model to, ending with the name of the model.
817817
"""
818-
impl_download_untrained_model_file(model_path, ensure_s3_bucket(region), region)
818+
impl_download_untrained_model(model_path, ensure_s3_bucket(region), region)
819819

820820

821-
@cli.command(name="upload-trained-model-file")
821+
@cli.command(name="upload-trained-model")
822822
@click.argument("model-path")
823823
@click.option("--region", help="The region to connect to.",
824824
type=click.Choice(region_choices))
825-
def upload_trained_model_file(model_path, region):
825+
def upload_trained_model(model_path, region):
826826
"""
827827
Uploads a trained model from a local file.
828828
829829
MODEL_PATH The path to the model to upload, ending with the name of the model.
830830
"""
831-
impl_upload_trained_model_file(model_path, ensure_s3_bucket(region), region)
831+
impl_upload_trained_model(model_path, ensure_s3_bucket(region), region)
832832

833833

834-
@cli.command(name="download-trained-model-file")
834+
@cli.command(name="download-trained-model")
835835
@click.argument("model-path")
836836
@click.option("--region", help="The region to connect to.",
837837
type=click.Choice(region_choices))
838-
def download_trained_model_file(model_path, region):
838+
def download_trained_model(model_path, region):
839839
"""
840840
Downloads a trained model to a local file.
841841
842842
MODEL_PATH The path to download the model to, ending with the name of the model.
843843
"""
844-
impl_download_trained_model_file(model_path, ensure_s3_bucket(region), region)
844+
impl_download_trained_model(model_path, ensure_s3_bucket(region), region)
845845

846846

847847
@cli.command(name="download-training-script")

0 commit comments

Comments
 (0)