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