Closed magland closed 1 year ago
@magland another option could be read/write, what do you think? Any of these work well, I think I'd order my (slight) preference as:
The confusing thing about write is
context.output.write('somefile.txt')
seems like it would mean writing to somefile.txt, whereas it would really be uploading the content of the file to the output bucket.
I think download/upload is the clearest when data are actually remote. But it's confusing when working with local files.
How about input.get
/ output.set
?
seems like it would mean writing to somefile.txt, whereas it would really be uploading the content of the file to the output bucket.
oh, right, in that case I agree we should avoid read/write. I slightly prefer download/upload, as get/set sounds more like attributes operations what about import / export?
I think I'll go with download/upload
@luiztauffer
I am wondering whether the context.output.set() should be changed to context.output.upload() in dendro processors.
Here's a tutorial example I was putting together
Note the
context.input.download(input_fname)
-- so it seems like the corresponding output command should be upload.But we also want the option of having the input/output files be on the local file system. So perhaps download/upload might not be the right terms. Maybe we should instead have
What are your thoughts?