Closed gijzelaerr closed 10 years ago
Original comment thread migrated from bugzilla
I've been scratching my head long enough to consider this more of a bug report in good-faith than a cry for help: I can't get pybeams_fits to pick up any beam FITS images. It's throwing this error, which we've seen before:
Traceback (most recent call last): File "/home/ianh/trunk/Cattery/Siamese/OMS/InterpolatedBeams.py", line 512, in get_result l,dl = unite_shapes(l,dl); File "/home/ianh/trunk/Cattery/Siamese/OMS/InterpolatedBeams.py", line 37, in unite_shapes if a.shape == b.shape: AttributeError: 'int' object has no attribute 'shape'
This happens on both my beast machine (with and without complete explicit paths) as you can see here:
http://www-astro.physics.ox.ac.uk/~ianh/missingbeams1.jpg
and on my laptop, as you can see here:
http://www-astro.physics.ox.ac.uk/~ianh/missingbeams2.jpg
The former is using FITS images that I've generated myself from the cassbeam output, but I don't think this is the problem as the latter is using the X-band beams that we used for the WHDF paper. These were definitely working at CALIM time as I used this very setup to do the source suppression simulations.
Apologies if I'm doing something stupid, and thanks for your time.
Cheers.
Ah hang on, have you got only a single source in your LSM?
It's definitely a bug, but I have a feeling it only affects the single-source case.
In the two examples I screenshotted I was using the gridded sky module with tens of sources. I just did a check and the error persists using Tigger format sky models with both single and multiple sources. It was also definitely working with a single-source Tigger LSM for the source suppression sims as I was just applying the beam effects to the single bright confusing source.
Cheers.
Hmmm, weird... ok, next question, is sky rotation on?
Yes, sky rotation is on.
All right -- can you either set it up on jake or elwood, or upload a tarball with your MS, your fits files and your .tdl.conf?
I've set up both the L-band and X-band sims on Jake.
/home/ianh/Data/VLA_Beams/L-band/ /home/ianh/Data/VLA_Beams/X-band/
If you enter either of these folders and source run_sim.sh then the bug should spew forth to the terminal window.
I've also left a 1665 MHz cassbeam sim and the script I used to generate the L-band FITS images in:
/home/ianh/Data/VLA_Beams/
although it seems to hang on Jake when it comes to generating the plots (a matplotlib error maybe, certainly not critical -- I can modify it so it just generates the FITS files easily enough).
Cheers.
OK, fixed it in r8832.
One of these how-did-this-ever-work scenarios. Perhaps that's because it should only have affected sims without pointing error, and we always ran it with?
at 2013-01-07 20:38:51 Ian Heywood reported:
(r8829) pybeams_fits (turbo-sim.py) doesn't like my (hitherto working) beam FITS files