Skip to content

Commit

Permalink
Merge pull request #141 from gquarles/main
Browse files Browse the repository at this point in the history
Remove redundant assignments
  • Loading branch information
achael authored Oct 29, 2021
2 parents cee999a + 6dd5981 commit 3f78975
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion ehtim/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -2879,7 +2879,6 @@ def hough_ring(self, edgetype='canny', thresh=0.2, num_circles=3, radius_range=N
meanval = np.mean(im.imvec)

im_norm = im.imvec / (maxval + .01 * meanval)
im_norm = im_norm
im_norm = im_norm.astype('float') # is it a problem if it's double??
im_norm[np.isnan(im.imvec)] = 0 # mask nans to 0
im.imvec = im_norm
Expand Down
1 change: 0 additions & 1 deletion ehtim/parloop.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def run_loop(self, arglist, processes=-1):
"""Run the loop on the list of arguments with multiple processes
"""

processes = processes
n = len(arglist)

if not type(arglist[0]) is list:
Expand Down
1 change: 0 additions & 1 deletion ehtim/plotting/comp_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -774,7 +774,6 @@ def plotall_obs_im_cphases(obs, imlist,

if display_mode == 'individual':
ax = False
axislabels = axislabels

else:
ax = plt.subplot2grid((nrows, ncols), (nplot/ncols, nplot % ncols), fig=fig)
Expand Down
4 changes: 0 additions & 4 deletions ehtim/plotting/summary_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,6 @@ def imgsum(im_or_mov, obs, obs_uncal, outname, outdir='.', title='imgsum', comme
# user comments
if len(commentstr) > 1:
titlestr = titlestr+'\n'+str(commentstr)
else:
titlestr = titlestr

plt.suptitle(titlestr, y=.9, va='center', fontsize=int(1.2*fontsize))

Expand Down Expand Up @@ -871,8 +869,6 @@ def imgsum_pol(im, obs, obs_uncal, outname,
# user comments
if len(commentstr) > 1:
titlestr = titlestr+'\n'+str(commentstr)
else:
titlestr = titlestr

plt.suptitle(titlestr, y=.9, va='center', fontsize=int(1.2*fontsize))

Expand Down

0 comments on commit 3f78975

Please sign in to comment.