Open ajvanengelen opened 6 years ago
Thanks -- this is working now for a stack of three maps (I, Q, U), which is my nominal usage case.
I am finding, though, that it is not working for my initial test run, where I sent it a single map. In that case there is a shape mismatch at some point:
/global/u2/e/engelen/actsims/bin/testAberrate.py in <module>()
31 aberratedMap = aberration.aberrate(inMap,
32 aberration.dir_equ,
---> 33 aberration.beta)#, modulation = True)
34
/global/u2/e/engelen/enlib/aberration.py in aberrate(imap, dir, beta, mode, order, recenter)
48 omap[1] = c*omap[1] + s*omap[2]
49 omap[2] =-s*omap[1] + c*omap[2]
---> 50 omap *= pos[2+pol,None]
51 return omap
52
ValueError: non-broadcastable output operand with shape (10801,21600) doesn't match the broadcast shape (1,10801,21600)
Not sure if you'd call this a bug or not, technically.
Alex
I am getting the following error within coordinates.py, using a fresh git pull of enlib. I am getting this when using the aberrate routines -- these have not changed in a couple of years, but coordinates.py has been updated within the last 26 days, evidently.