Skip to content

Commit

Permalink
forces order of columns
Browse files Browse the repository at this point in the history
  • Loading branch information
forero committed Nov 24, 2020
1 parent 718f958 commit cb3fcc8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions py/fiberassign/assign.py
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ def merge_results(targetfiles, skyfiles, tiles, result_dir=".",

survey = None

some_dt = np.dtype([('BRICKID', '>i4'), ('BRICKNAME', 'S8'), ('BRICK_OBJID', '>i4'),
some_dt = np.dtype([('BRICKNAME', 'S8'), ('BRICKID', '>i4') , ('BRICK_OBJID', '>i4'),
('MORPHTYPE', 'S4'),
('RA', '>f8'), ('DEC', '>f8'),
('EBV', '>f4'),
Expand Down Expand Up @@ -1310,7 +1310,7 @@ def merge_results(targetfiles, skyfiles, tiles, result_dir=".",
tgview = np.frombuffer(tgdata[tf],
dtype=tgdtype[tf]).reshape(tgshape[tf])
# Read data directly into shared buffer
tgview[:] = fd[1].read(columns=some_columns)
tgview[:] = fd[1].read(columns=some_columns)[some_columns]
if survey is None:
(survey, col, sciencemask, stdmask, skymask, suppskymask,
safemask, excludemask) = default_target_masks(tgview)
Expand Down

0 comments on commit cb3fcc8

Please sign in to comment.