Skip to content
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: 2 additions & 2 deletions src/deep_neurographs/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
@author: Anna Grim
@email: anna.grim@alleninstitute.org

Routines for running inference with machine models that classifies edge
proposals.
Routines for running inference with a machine model that classifies edge proposals.

"""

from datetime import datetime
from time import time
from torch.nn.functional import sigmoid
from torch.utils.data import DataLoader
from tqdm import tqdm

import networkx as nx
Expand Down
6 changes: 3 additions & 3 deletions src/deep_neurographs/utils/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ def write_txt(path, contents):
f.close()


def write_to_s3(local_path, bucket_name, s3_key):
def write_to_s3(local_path, bucket_name, prefix):
"""
Writes a single file on local machine to an s3 bucket.

Expand All @@ -382,7 +382,7 @@ def write_to_s3(local_path, bucket_name, s3_key):
Path to file to be written to s3.
bucket_name : str
Name of s3 bucket.
s3_key : str
prefix : str
Path within s3 bucket.

Returns
Expand All @@ -391,7 +391,7 @@ def write_to_s3(local_path, bucket_name, s3_key):

"""
s3 = boto3.client('s3')
s3.upload_file(local_path, bucket_name, s3_key)
s3.upload_file(local_path, bucket_name, prefix)


# --- math utils ---
Expand Down