WIN32_FILE_ATTRIBUTE_DATA structure

typedef struct _WIN32_FILE_ATTRIBUTE_DATA 
{
  DWORD    dwFileAttributes;
  FILETIME ftCreationTime;
  FILETIME ftLastAccessTime;
  FILETIME ftLastWriteTime;
  DWORD    nFileSizeHigh;
  DWORD    nFileSizeLow;
} WIN32_FILE_ATTRIBUTE_DATA, *LPWIN32_FILE_ATTRIBUTE_DATA;

Members(成员参数)

dwFileAttributes

The file system attribute information for a file or directory.

这是一个文件或者一个目录的系统属性消息。

For possible values and their descriptions, see File Attribute Constants.

ftCreationTime

A FILETIME structure that specifies when the file or directory is created.

当一个文件或者目录被创建的时候,一个FILETIME结构会被确定。

If the underlying file system does not support creation time, this member is zero.

如果文件系统不支持创建时间,那么这个参数为0.

ftLastAccessTime

A FILETIME structure.

For a file, the structure specifies when the file is last read from or written to.

对于一个文件,当第一次被读或者被写入时,这个结构会确定下来。

For a directory, the structure specifies when the directory is created.

对于路径,当这个路径被创建时,这个结构会被确定下来。

For both files and directories, the specified date is correct, but the time of day is always set to midnight. If the underlying file system does not support last access time, this member is zero.

对于文件和路径,这些确定的数据是正确的,但是每天的时间总是被设置在午夜。如果文件系统不支持最后访问时间,那么这个参数为0.

ftLastWriteTime

A FILETIME structure.

For a file, the structure specifies when the file is last written to.

For a directory, the structure specifies when the directory is created.

If the underlying file system does not support last write time, this member is zero.

nFileSizeHigh

The high-order DWORD of the file size.

This member does not have a meaning for directories.

nFileSizeLow

The low-order DWORD of the file size.

This member does not have a meaning for directories.

Remarks

Not all file systems can record creation and last access time, and not all file systems record them in the same manner. For example, on the FAT file system, create time has a resolution of 10 milliseconds, write time has a resolution of 2 seconds, and access time has a resolution of 1 day. On the NTFS file system, access time has a resolution of 1 hour. For more information, see File Times.

不是所有的操作系统可以记录创建和访问时间,并且不是所有的文件系统可以记录这些时间在相同的方式下。例如:在FAT文件系统下,创建时间还有一个10毫秒的决定时间,写入时间有2秒的决定时间,访问时间会有一天的决定时间。在NTFS文件系统,访问时间有1小时的决定时间。

转载于:https://www.cnblogs.com/DeeLMind/p/6884729.html

import scipy.io import mne from mne.bem import make_watershed_bem # Load .mat files inner_skull = scipy.io.loadmat('E:\MATLABproject\data\MRI\Visit1_040318\\tess_mri_COR_MPRAGE_RECON-mocoMEMPRAGE_FOV_220-298665.inner_skull.mat') outer_skull = scipy.io.loadmat('E:\MATLABproject\data\MRI\Visit1_040318\\tess_mri_COR_MPRAGE_RECON-mocoMEMPRAGE_FOV_220-298665.outer_skull.mat') scalp = scipy.io.loadmat('E:\MATLABproject\data\MRI\Visit1_040318\\tess_mri_COR_MPRAGE_RECON-mocoMEMPRAGE_FOV_220-298665.scalp.mat') print(inner_skull.keys()) # Assuming these .mat files contain triangulated surfaces, we will extract vertices and triangles # This might need adjustment based on the actual structure of your .mat files inner_skull_vertices = inner_skull['Vertices'] inner_skull_triangles = inner_skull['Faces'] outer_skull_vertices = outer_skull['Vertices'] outer_skull_triangles = outer_skull['Faces'] scalp_vertices = scalp['Vertices'] scalp_triangles = scalp['Faces'] # Prepare surfaces for MNE surfs = [ mne.bem.BEMSurface(inner_skull_vertices, inner_skull_triangles, sigma=0.01, id=4), # brain mne.bem.BEMSurface(outer_skull_vertices, outer_skull_triangles, sigma=0.016, id=3), # skull mne.bem.BEMSurface(scalp_vertices, scalp_triangles, sigma=0.33, id=5), # skin ] # Create BEM model model = mne.bem.BEM(surfs, conductivity=[0.3, 0.006, 0.3], is_sphere=False) model.plot(show=False) # Create BEM solution solution = mne.make_bem_solution(model) 运行代码时报错; Traceback (most recent call last): File "E:\pythonProject\MEG\头模型.py", line 24, in <module> mne.bem.BEMSurface(inner_skull_vertices, inner_skull_triangles, sigma=0.01, id=4), # brain AttributeError: module 'mne.bem' has no attribute 'BEMSurface'
最新发布
07-16
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值