Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 939: Clarifying input for Image Scale and removing numba temporarily #942

Merged
merged 2 commits into from
Jan 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions exotic/api/elca.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
# ########################################################################### #

import copy
from numba import njit
# from numba import njit
import numpy as np
import matplotlib.pyplot as plt
from scipy.optimize import least_squares
Expand Down Expand Up @@ -288,7 +288,7 @@ def loglike(pars):
model *= np.median(detrend)
return -0.5 * np.sum(((self.data - model) / self.dataerr) ** 2)

@njit(fastmath=True)
# @njit(fastmath=True)
def prior_transform(upars):
# transform unit cube to prior volume
return boundarray[:, 0] + bounddiff * upars
Expand Down
5 changes: 2 additions & 3 deletions exotic/exotic.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
from matplotlib.animation import FuncAnimation
# Pyplot imports
import matplotlib.pyplot as plt
from numba import njit
# from numba import njit
import numpy as np
# photometry
from photutils import CircularAperture
Expand Down Expand Up @@ -835,7 +835,7 @@ def get_pixel_scale(wcs_header, header, pixel_init):
image_scale = f"Image scale in arcsecs/pixel: {pixel_init}"
else:
log_info("Not able to find Image Scale in the Image Header.")
image_scale_num = user_input("Please enter Image Scale (e.g., 5 arcsec/pixel): ", type_=float)
image_scale_num = user_input("Please enter Image Scale (arcsec/pixel): ", type_=float)
image_scale = f"Image scale in arcsecs/pixel: {image_scale_num}"
return image_scale

Expand Down Expand Up @@ -907,7 +907,6 @@ def find_target(target, hdufile, verbose=False):
return pixcoord[0]


@njit
def gaussian_psf(x, y, x0, y0, a, sigx, sigy, rot, b):
rx = (x - x0) * np.cos(rot) - (y - y0) * np.sin(rot)
ry = (x - x0) * np.sin(rot) + (y - y0) * np.cos(rot)
Expand Down