예제 #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)