def doorient(self):
assert self.cal1Dfn.is_file(<EOL>), '<STR_LIT>'.format(self.cal1Dfn)<EOL>with h5py.File(self.cal1Dfn, '<STR_LIT:r>') as f:<EOL><INDENT>az = f['<STR_LIT>'][()]<EOL>el = f['<STR_LIT>'][()]<EOL>ra = f['<STR_LIT>'][()]<EOL>dec = f['<STR_LIT>'][()]<EOL><DEDENT>assert az.ndim == el.ndim == <NUM_LIT:2><EOL>assert az.shape == el.shape<EOL>if self.transpose:<EOL><INDENT>logging.debug(<EOL>'<STR_LIT>'.format(self.name))<EOL>az = az.T<EOL>el = el.T<EOL>ra = ra.T<EOL>dec = dec.T<EOL><DEDENT>if self.fliplr:<EOL><INDENT>logging.debug(<EOL>'<STR_LIT>'.format(self.name))<EOL>az = np.fliplr(az)<EOL>el = np.fliplr(el)<EOL>ra = np.fliplr(ra)<EOL>dec = np.fliplr(dec)<EOL><DEDENT>if self.flipud:<EOL><INDENT>logging.debug(<EOL>'<STR_LIT>'.format(self.name))<EOL>az = np.flipud(az)<EOL>el = np.flipud(el)<EOL>ra = np.flipud(ra)<EOL>dec = np.flipud(dec)<EOL><DEDENT>if self.rotccw != <NUM_LIT:0>:<EOL><INDENT>logging.debug(<EOL>'<STR_LIT>'.format(self.name))<EOL>az = np.rot90(az, self.rotccw)<EOL>el = np.rot90(el, self.rotccw)<EOL>ra = np.rot90(ra, self.rotccw)<EOL>dec = np.rot90(dec, self.rotccw)<EOL><DEDENT>self.az = az<EOL>self.el = el<EOL>self.ra = ra<EOL>self.dec = dec<EOL>
NOTE: we need to retrieve values in case no modifications are done.
(since we'd get a closed h5py handle)