You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compared to getPatchPosition() that returns a dict with {patchname:coord}, getPatchSize() returns an ordered array of sizes. However if one has to use both it becomes complicated as dicts are not ordered.
The text was updated successfully, but these errors were encountered:
I forget why getPatchPosition() returns a dict by default, but you can set asArray=True in the call to have it return (RA, Dec) arrays instead (with the same order as getPatchSize()). Not sure if that's helpful in your case, though.
I move everything to dict now with:
sizes = dict(zip(lsm.getPatchNames(), lsm.getPatchSizes(units='degree')))
maybe having all the functions returning the same thing by default is better for consistency, then an option like dict=True or array=True would be great
Compared to getPatchPosition() that returns a dict with {patchname:coord}, getPatchSize() returns an ordered array of sizes. However if one has to use both it becomes complicated as dicts are not ordered.
The text was updated successfully, but these errors were encountered: