ivoflipse / pydicom

Automatically exported from code.google.com/p/pydicom
0 stars 1 forks source link

write_file accepts file like object rather than just filename #154

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
write_file currently only takes a string path for the file name. It should also 
be able to take a file like object. See: 
https://github.com/cancan101/pydicom/commit/a28f149ce5b6a17e59be1ef225df734429cb
32e8#diff-e08df3a1d02a03bb56c0ac1b5e47fb5aR336

Original issue reported on code.google.com by agrothberg on 7 Nov 2014 at 4:44

GoogleCodeExporter commented 9 years ago
Good idea.  But would be ideal to model on read_file which does a try/except 
clause and closes the file if not supplied as a file object.

Original comment by darcymason@gmail.com on 8 Nov 2014 at 9:36

GoogleCodeExporter commented 9 years ago
I actually made the change already: 
https://github.com/cancan101/pydicom/commit/53dc75976dcb28354f7f890d010779d5a5b4
0fcb

Original comment by agrothberg on 8 Nov 2014 at 9:37

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 28e93fd8f583.

Original comment by darcymason@gmail.com on 15 Nov 2014 at 10:08