def get(self, name: str, default: np.ndarray) -> np.ndarray:
if name in self:<EOL><INDENT>return self[name]<EOL><DEDENT>else:<EOL><INDENT>if not isinstance(default, np.ndarray):<EOL><INDENT>raise ValueError(f"<STR_LIT>")<EOL><DEDENT>if default.shape[<NUM_LIT:0>] != self.ds.shape[self.axis]:<EOL><INDENT>raise ValueError(f"<STR_LIT>")<EOL><DEDENT>return default<EOL><DEDENT>
Return the value for a named attribute if it exists, else default.
Default has to be a numpy array of correct size.