to_datafilelist¶
-
ndmapper.utils.to_datafilelist(arg, mode=None)[source] [edit on github]¶ Derive a
DataFileListobject from one or a sequence of objects than can be converted to filename strings (eg.str,FileNameorDataFile). Themodedefaults to'read'when given one or more filenames and to the existing mode forDataFileandDataFileList. Where all of the inputs are existingDataFileinstances, those are re-used by reference (modepermitting), instead of opening new copies.Beware of feeding this inappropriate argument types, as almost anything can be converted to
str...