Skip to content

Commit

Permalink
upload combined csv file after use
Browse files Browse the repository at this point in the history
  • Loading branch information
36000 committed Nov 10, 2020
1 parent 36aa6cb commit ff49698
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions examples/cloudknot_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,17 @@ def afq_combine_profiles(dummy_argument):
result_futures.result() # waits for futures to resolve, not needed in notebook
knot.clobber(clobber_pars=True, clobber_repo=True, clobber_image=True)

# we create another knot which takes the resulting profiles of each subject
# and combines them into one csv file
# we create another knot which downloads the resulting profiles of each subject,
# combines them into one csv file, and then uploads that csv file


def afq_combine_profiles(dummy_argument):
from AFQ.api import download_and_combine_afq_profiles
import s3fs

download_and_combine_afq_profiles(
"temp", "my_study_bucket", "my_study_prefix/derivatives/afq")
"temp", "my_study_bucket", "my_study_prefix/derivatives/afq",
upload=s3fs.S3FileSystem())


knot2 = ck.Knot(
Expand Down

0 comments on commit ff49698

Please sign in to comment.