to_datafilelist¶
-
ndmapper.utils.
to_datafilelist
(arg, mode=None)[source] [edit on github]¶ Derive a
DataFileList
object from one or a sequence of objects than can be converted to filename strings (eg.str
,FileName
orDataFile
). Themode
defaults to'read'
when given one or more filenames and to the existing mode forDataFile
andDataFileList
. Where all of the inputs are existingDataFile
instances, those are re-used by reference (mode
permitting), instead of opening new copies.Beware of feeding this inappropriate argument types, as almost anything can be converted to
str
...