fusion-flap / flap

Fusion Library of Analysis Programs
MIT License
11 stars 5 forks source link

test sequence fails #95

Closed refydaniel closed 1 year ago

refydaniel commented 1 year ago

After a fresh installation, the test sequence fails at a point. This has been tested both on linux and windows.

Test image binning through multi-slice<<<<<<<<<<< ** Generating a sequence of test images *** Showing one image Traceback (most recent call last):

File "C:\Users\refyd\git_repositories\flap\tests\flap_tests.py", line 879, in test_binning()

File "C:\Users\refyd\git_repositories\flap\tests\flap_tests.py", line 474, in test_binning flap.slice_data('TEST_VIDEO',

File "C:\Users\refyd\anaconda3\lib\site-packages\flap-1.12.0-py3.9.egg\flap\data_object.py", line 4215, in slice_data raise e

File "C:\Users\refyd\anaconda3\lib\site-packages\flap-1.12.0-py3.9.egg\flap\data_object.py", line 4213, in slice_data ds=d.slice_data(slicing=slicing,summing=summing,options=options)

File "C:\Users\refyd\anaconda3\lib\site-packages\flap-1.12.0-py3.9.egg\flap\data_object.py", line 2254, in slice_data new_data_object.__copy_data(d_slice,tuple(ind_out),tuple(ind))

File "C:\Users\refyd\anaconda3\lib\site-packages\flap-1.12.0-py3.9.egg\flap\data_object.py", line 783, in __copy_data self.data[destination_ind] = source_object.data[source_ind]

ValueError: could not broadcast input array from shape (800,51,5) into shape (800,51,6)

sandorzoletnik commented 1 year ago

This has been corrected. Actually there were several errors which needed to be corrected. This might have been some problem with version hendling.