def solve_nonlinear(self, params, unknowns, resids): """ Calculate output. """ azimuth, elevation = computepositionspherical(self.n, params['r_e2s_B']) unknowns['azimuth'] = azimuth unknowns['elevation'] = elevation
def solve_nonlinear(self, params, unknowns, resids): """ Calculate output. """ azimuth, elevation = computepositionspherical(self.n, params["r_e2s_B"]) unknowns["azimuth"] = azimuth unknowns["elevation"] = elevation
def execute(self): azimuth, elevation = computepositionspherical(self.n, self.r_e2s_B) self.azimuth = azimuth self.elevation = elevation