Size error with ACT DR4
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by running the command shown in example/fits.py with the referenced ACT DR4 FITS file. Read tilemaker/processing/fits_simple.py around create_data_from_children and the failing assignment at line 310 to trace the array shapes. Done means the example processes this input without the broadcasting error, with the intended handling of the differing shapes confirmed.
Written by the indexing model from the issue text.
Description
Tried to run the example with ACTPol_148_D5_PA1_S1_1way_I.fits from https://lambda.gsfc.nasa.gov/product/act/actpol_maps_get.html
I get an error in the shape of the arrays:
python fits.py create ACTPol_148_D5_PA1_S1_1way_I.fits ACTPol_148_D5_PA1_S1_1w
ay_I
Traceback (most recent call last):
File "/home/zonca/p/software/tilemaker/example/fits.py", line 48, in <module>
tree = LayerTree(number_of_layers=number_of_layers, image_pixel_size=tile_size, image=fits_image)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/zonca/p/software/tilemaker/tilemaker/processing/fits_simple.py", line 422, in __init__
layer.create_data_from_children()
File "/home/zonca/p/software/tilemaker/tilemaker/processing/fits_simple.py", line 382, in create_data_from_children
node.create_data_from_children()
File "/home/zonca/p/software/tilemaker/tilemaker/processing/fits_simple.py", line 310, in create_data_from_children
data_buffer[covered_region] = 0.25 * child_data
~~~~~~~~~~~^^^^^^^^^^^^^^^^
ValueError: could not broadcast input array from shape (667,675) into shape (674,675)
- Dominant language
- Python
- Stars
- 6
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from simonsobs/tilemaker
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Map title / loading Open
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
-
Difficulty 4/5 3-5 days Newbie friendliness 32/100
All issues in simonsobs/tilemaker
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100