コード例 #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)