Example #1
0
 def open_db(self, filepath):
     """Open the netcdf database file"""
     return nc.netcdf_file(filepath, "r")
Example #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)
Example #3
0
 def open_db(self, filepath):
     """Open the netcdf database file"""
     return nc.netcdf_file(filepath, "r")
Example #4
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)