Skip to content

Commit

Permalink
Access the 'position' field of the spaxels
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiopasra committed Jan 9, 2017
1 parent 5ce6ef3 commit 7b31ee0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,10 @@ def create_lcb(insconf):

lcb_pos = {}
spaxels = insconf.get('LCB.spaxels')
for entry in spaxels:
for entry in spaxels['positions']:
idx = entry[2]
lcb_pos[idx] = (entry[0], entry[1])

lcb = LargeCompactBundle('LCB', fiberset, lcb_pos)

pseudo_slit_lcb = PseudoSlit(name="LCB", insmode='LCB')
Expand Down

0 comments on commit 7b31ee0

Please sign in to comment.