Skip to content

Commit

Permalink
Doc update
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoMuellner committed Apr 1, 2020
1 parent 55c09ef commit e82f96b
Show file tree
Hide file tree
Showing 6 changed files with 361 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/source/examples/downloading_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.10"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down
346 changes: 346 additions & 0 deletions docs/source/examples/fullframe_sc_data.ipynb

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ of those in jupyter notebooks. However, you can apply the same procedures in the

examples/downloading_data
examples/plotting_things
examples/fullframe_sc_data

Index and search function
-------------------------
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name="smurfs",
version="1.1.8",
version="1.1.9",
author="Marco Müllner",
author_email="[email protected]",
description="Smart UseR Frequency analySer, a fast and easy to use frequency analyser.",
Expand Down
2 changes: 1 addition & 1 deletion smurfs/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.1.8"
__version__ = "1.1.9"
14 changes: 11 additions & 3 deletions smurfs/preprocess/tess.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,29 @@ def pixel_by_pixel(data : eleanor.TargetData, whole_cutout : bool=False):
xrange = np.unique(np.where(aperture_mask)[0])
yrange = np.unique(np.where(aperture_mask)[1])

fig,ax_list = pl.subplots(ncols = len(xrange),nrows=len(yrange),figsize=(8.27,11.69),dpi=100)
fig,ax_list = pl.subplots(nrows = len(xrange),ncols=len(yrange),figsize=(8.27,11.69),dpi=100)
fig : Figure
ax_list : List[Axes]
q = data.quality == 0
[[ax.axis('off') for ax in ax_list_col] for ax_list_col in ax_list]
try:
[[ax.axis('off') for ax in ax_list_col] for ax_list_col in ax_list]
except TypeError:
ax_list = [[i] for i in ax_list]
[[ax.axis('off') for ax in ax_list_col] for ax_list_col in ax_list]
[[ax.tick_params(axis='both',which='both',bottom=False,top=False,left=False,right=False, labelbottom=False,labelleft=False) for ax in ax_list_col] for ax_list_col in ax_list]
for row,col_list in enumerate(indx_mask):
for col in col_list:
flux = data.corrected_flux(flux = data.tpf[:,row,col])
time = data.time
y = flux[q]/np.nanmedian(flux[q])
x = time[q]
ax : Axes = ax_list[row-min(xrange)][col-min(yrange)]
try:
ax : Axes = ax_list[row-min(xrange)][col-min(yrange)]
except IndexError:
ax : Axes = ax_list[col-min(yrange)][row-min(xrange)]
c = 'red' if aperture_mask[row][col] and whole_cutout else 'k'
ax.plot(x,y,'o',c=c,markersize=1)
ax.set_ylim((np.median(y)-2*np.std(y)),(np.median(y)+2*np.std(y)))
ax.axis('on')
fig.suptitle("Pixel by pixel light curve " + ("(Aperture only)" if not whole_cutout else "(full cutout)"))
return fig
Expand Down

0 comments on commit e82f96b

Please sign in to comment.