示例#1
0
文件: exoread.py 项目: adesam01/fempy
 def open_db(self, filepath):
     """Open the netcdf database file"""
     return nc.netcdf_file(filepath, "r")
示例#2
0
 def open_db(self, filepath, mode="r"):
     """Open the netcdf database file"""
     if mode not in "rw":
         raise ExodusIIFileError("{0}: bad read/write mode".format(mode))
     return nc.netcdf_file(filepath, mode)
示例#3
0
文件: exoread.py 项目: tjfulle/Legacy
 def open_db(self, filepath):
     """Open the netcdf database file"""
     return nc.netcdf_file(filepath, "r")
示例#4
0
文件: genesis.py 项目: adesam01/fempy
 def open_db(self, filepath, mode="r"):
     """Open the netcdf database file"""
     if mode not in "rw":
         raise ExodusIIFileError("{0}: bad read/write mode".format(mode))
     return nc.netcdf_file(filepath, mode)