本文整理汇总了Python中ClearMap.IO.copyFile方法的典型用法代码示例。如果您正苦于以下问题:Python IO.copyFile方法的具体用法?Python IO.copyFile怎么用?Python IO.copyFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ClearMap.IO
的用法示例。
在下文中一共展示了IO.copyFile方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: copyData
# 需要导入模块: from ClearMap import IO [as 别名]
# 或者: from ClearMap.IO import copyFile [as 别名]
def copyData(source, sink):
"""Copy a imaris file from source to sink
Arguments:
source (str): file name pattern of source
sink (str): file name pattern of sink
Returns:
str: file name patttern of the copy
"""
io.copyFile(source, sink);
示例2: copyData
# 需要导入模块: from ClearMap import IO [as 别名]
# 或者: from ClearMap.IO import copyFile [as 别名]
def copyData(source, sink):
"""Copy an nrrd file from source to sink
Arguments:
source (str): file name pattern of source
sink (str): file name pattern of sink
Returns:
str: file name of the copy
Notes:
Todo: dealt with nrdh header files!
"""
io.copyFile(source, sink);
示例3: copyData
# 需要导入模块: from ClearMap import IO [as 别名]
# 或者: from ClearMap.IO import copyFile [as 别名]
def copyData(source, sink):
"""Copy a data file from source to sink when for entire list of files
Arguments:
source (str): file name pattern of source
sink (str): file name pattern of sink
Returns:
str: file name patttern of the copy
"""
(fileheader, fileext, digitfrmt) = splitFileExpression(sink)
fp, fl = readFileList(source)
for i in range(len(fl)):
io.copyFile(os.path.join(fp, fl[i]), fileheader + (digitfrmt % i) + fileext)
return sink