Skip to content

Commit

Permalink
syntax (add commas)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgrcia committed Jul 2, 2021
1 parent 6b19cf0 commit 72ab170
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prose/pipeline/photometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ def save_xarray(self):
initial_xarray = xr.Dataset()

# TODO: align in time? In case calib and phot are only partially overlapping
initial_xarray = initial_xarray.drop_dims(["star","apertures"],errors="ignore")
initial_xarray = initial_xarray.drop_vars(["annulus_rin","annulus_rout","annulus_area","sky"],errors="ignore")
initial_xarray = initial_xarray.drop_dims(["star", "apertures"], errors="ignore")
initial_xarray = initial_xarray.drop_vars(["annulus_rin", "annulus_rout", "annulus_area", "sky"], errors="ignore")
phot_xarray = self.photometry_s.xarray.xarray
xarray = xr.merge([phot_xarray,initial_xarray], combine_attrs="no_conflicts",join='left',compat='override')
xarray = xr.merge([phot_xarray,initial_xarray], combine_attrs="no_conflicts", join='left', compat='override')
xarray = xarray.transpose("apertures", "star", "time", ...)
xarray = xarray.assign_coords(stars=(("star", "n"), self.stars))
xarray["apertures_sky"] = xarray.sky # mean over stars
Expand Down

0 comments on commit 72ab170

Please sign in to comment.