Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test is not supported for ppc64le (power) architecture #51

Open
asellappen opened this issue Dec 11, 2020 · 8 comments
Open

Test is not supported for ppc64le (power) architecture #51

asellappen opened this issue Dec 11, 2020 · 8 comments
Labels

Comments

@asellappen
Copy link

asellappen commented Dec 11, 2020

Code Sample, a minimal, complete, and verifiable piece of code

test failing for the below on power arch

coverage run --source=pycoast setup.py test

Problem description

Test is failing for power arch when we try to port power cpu arch support on this package,build is completed sucessfully and facing issue at test only.

Reason for build and test :-
I am working for IBM to port cpu arch ppc64le for open sources.This helps us simplify testing later when distributions are re-building and re-releasing,We typically build applications for customers and ISVs, and while we don't use this package directly,we do count on all of the packages in debian/ubuntu to build other packages. So we more likely have this as a second or third level dependency and couldn't tell you explicitly which features we use or our usage model.

Expected Output

should comple test test just like amd64

Actual Result, Traceback if applicable

pls refer https://travis-ci.com/github/asellappen/pycoast/jobs/457849733

======================================================================
FAIL: test_grid_germ (pycoast.tests.test_pycoast.TestPIL)
Check that issue #26 is fixed.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/asellappen/pycoast/pycoast/tests/test_pycoast.py", line 199, in test_grid_germ
    self.assertTrue(fft_metric(grid_data, res), 'Writing of grid to germ failed')
AssertionError: False is not true : Writing of grid to germ failed

Details of complete log a thttps://travis-ci.com/github/asellappen/pycoast/jobs/457849733

Versions of Python, package at hand and relevant dependencies

PYTHON_VERSION=3.7 and its failing for all python version configured on travis job.

Thank you for reporting an issue !

@mraspaud
Copy link
Member

@asellappen thanks for bringing this to our attention. As far as I know, we don't have any devs using this architecture, so it might be a bit difficult to debug. Can you try to check what the fft_metric call returns for this case?

@mraspaud mraspaud added the bug label Dec 11, 2020
@asellappen
Copy link
Author

@mraspaud , Thanks for looking into this , confirmed that fft_metric returns False.

@djhoese
Copy link
Member

djhoese commented Dec 11, 2020

What about the fft_proj_rms function underneath? I'm curious how far off the result is:

def fft_metric(data1, data2, max_value=0.1):
"""Execute FFT metric
"""
rms = fft_proj_rms(data1, data2)
return rms <= max_value

We've had issues in the past where the pycoast tests aren't robust enough to even handle running on different operating systems.

@asellappen
Copy link
Author

@djhoese rms returns below
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 3.5077669097938364
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0
return of rms 0.0

@djhoese
Copy link
Member

djhoese commented Dec 11, 2020

Is that when running all the tests? So all of them are fine except this one particular failing test? Interesting, but I'm not sure what could be wrong that would only effect ppc64le.

@asellappen
Copy link
Author

Yes,all the test are passing excpet this case, I have tried to debug the func fft_proj_rms furthe and found there is an issue on returning value from numby call fft.fft2 for this case, Values returned for ps1 and ps2 are different when we compare this case with successful cases,Pls let me know if you need any further details, so that i can dig more if possible.

def fft_proj_rms(a1, a2):
"""Compute the RMS of differences between FFT vectors of a1
and projection of FFT vectors of a2.
This metric is sensitive to large scale changes and image noise but
insensitive to small rendering differences.
"""

ms = 0
for i in range(3):
    fr1 = np.fft.fft2(a1[:, :, i])
    fr2 = np.fft.fft2(a2[:, :, i])

    ps1 = np.log10(fr1 * fr1.conj()).real
    ps2 = np.log10(fr2 * fr2.conj()).real

    p1 = np.arctan2(fr1.imag, fr1.real)
    p2 = np.arctan2(fr2.imag, fr2.real)

    theta = p2 - p1
    l = ps2 * np.cos(theta)
    ms += ((l - ps1) ** 2).sum() / float(ps1.size)

rms = np.sqrt(ms)
return rms

The below test case is failing

Passing value to the func fft_proj_rms(a1, a2) as below

value of a1 at fft_proj_rms [[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
...
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]]
a2 value at fft_proj_rms [[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
...
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]]
fr1 value at fft_proj_rms [[2799342. +0.j -987029.71870284 -18650.54339767j
640296.20637081 -83301.5452094j ... -363729.97542325+287532.14049038j
640296.20637081 +83301.5452094j -987029.71870284 +18650.54339767j]
[ 393706.10537705-677463.2864711j -863950.58922068+773559.79563052j
363123.52084669+182378.28517166j ... -5681.0612726 -26233.382188j
320397.42669349-253183.47022872j -827771.68942971+255058.90103061j]
[ -26653.3156555 -920993.95706081j 342719.40334562+374924.17401379j
525226.26704223-399400.58966939j ... -146670.54869391-141136.72609879j
258763.26191053-316242.63761157j -212796.90354417+402746.72615031j]
...
[ 157111.7201256 +48163.05670246j 148586.3493921 -366035.64786677j
-20187.89944857+249937.53751747j ... -39702.25423195-316373.11488575j
-229567.01844433 +88760.34337117j -107425.60394033+182005.72763324j]
[ -26653.3156555 +920993.95706081j -212796.90354417-402746.72615031j
258763.26191053+316242.63761157j ... -167503.06074218+250423.06873084j
525226.26704223+399400.58966939j 342719.40334562-374924.17401379j]
[ 393706.10537705+677463.2864711j -827771.68942971-255058.90103061j
320397.42669349+253183.47022872j ... -147194.91571179-129660.6792052j
363123.52084669-182378.28517166j -863950.58922068-773559.79563052j]]
fr2 value at fft_proj_rms [[2803932. +0.j -988019.49907958 -19809.66681764j
637405.03945066 -83640.03113734j ... -361049.42547187+286800.98780236j
637405.03945066 +83640.03113734j -988019.49907958 +19809.66681764j]
[ 393081.30355929-680063.95027562j -866350.07075115+775210.72740747j
365196.92967812+184641.86867619j ... -5715.5362397 -27423.98777155j
320495.22042831-251814.76814548j -825644.7778664 +254450.92714214j]
[ -27847.37602095-921619.66875003j 346243.66989399+377611.09095206j
525945.88518791-401083.39864239j ... -148305.47663542-143615.12653197j
261064.79238715-316176.06636991j -215023.18359239+402682.841411j ]
...
[ 158547.1050312 +48329.06055795j 148482.69302675-367163.50908539j
-19944.45168405+251635.16377813j ... -38961.00292408-320687.49375835j
-231593.46317131 +89786.84222441j -106679.16600414+183679.80653755j]
[ -27847.37602095+921619.66875003j -215023.18359239-402682.841411j
261064.79238715+316176.06636991j ... -170740.36401514+251634.60758533j
525945.88518791+401083.39864239j 346243.66989399-377611.09095206j]
[ 393081.30355929+680063.95027562j -825644.7778664 -254450.92714214j
320495.22042831+251814.76814548j ... -146610.39255457-127974.4337793j
365196.92967812-184641.86867619j -866350.07075115-775210.72740747j]]
ps1 value at fft_proj_rms [[12.89411192 11.98881549 11.62005104 ... 11.3323864 11.62005104
11.98881549]
[11.78814079 12.12865944 11.21780107 ... 8.85761277 11.22208246
11.87521238]
[11.92887713 11.41166133 11.63887193 ... 10.61733407 11.22263281
11.31699183]
...
[10.43142444 11.1932916 10.79848714 ... 11.00718521 10.78232507
10.64998042]
[11.92887713 11.31699183 11.22263281 ... 10.9579375 11.63887193
11.41166133]
[11.78814079 11.87521238 11.22208246 ... 10.58521514 11.21780107
12.12865944]]
ps2 value at fft_proj_rms [[12.89553495 11.98970558 11.61624527 ... 11.32758674 11.61624527
11.98970558]
[11.79028508 12.13082059 11.22391476 ... 8.89472715 11.22044248
11.87299175]
[11.92949979 11.41908764 11.64096512 ... 10.6296116 11.22562489
11.31887362]
...
[10.43890423 11.19550156 10.80426239 ... 11.01852753 10.79026552
10.65435673]
[11.92949979 11.31887362 11.22562489 ... 10.96601141 11.64096512
11.41908764]
[11.79028508 11.87299175 11.22044248 ... 10.57831896 11.22391476
12.13082059]]
p1 value at fft_proj_rms [[ 0. -3.12269928 -0.12937182 ... 2.47266522 0.12937182
3.12269928]
[-1.0443543 2.41133866 0.46544488 ... -1.78406163 -0.66874712
2.84269657]
[-1.59972798 0.83024379 -0.65014631 ... -2.37541965 -0.88503029
2.05687688]
...
[ 0.29745775 -1.18518484 1.65139314 ... -1.6956356 2.77265422
2.10400251]
[ 1.59972798 -2.05687688 0.88503029 ... 2.16032989 0.65014631
-0.83024379]
[ 1.0443543 -2.84269657 0.66874712 ... -2.41944352 -0.46544488
-2.41133866]]
p2 value at fft_proj_rms [[ 0. -3.12154547 -0.13047414 ... 2.470304 0.13047414
3.12154547]
[-1.04670561 2.41165748 0.46811386 ... -1.77626879 -0.66596363
2.84264416]
[-1.60100283 0.82870493 -0.65151293 ... -2.37226032 -0.88058327
2.06125427]
...
[ 0.29587715 -1.18649847 1.64989038 ... -1.69169593 2.77174178
2.09697013]
[ 1.60100283 -2.06125427 0.88058327 ... 2.16696365 0.65151293
-0.82870493]
[ 1.04670561 -2.84264416 0.66596363 ... -2.42396016 -0.46811386
-2.41165748]]
theta value at fft_proj_rms [[ 0.00000000e+00 1.15381175e-03 -1.10232436e-03 ... -2.36121211e-03
1.10232436e-03 -1.15381175e-03]
[-2.35130664e-03 3.18820006e-04 2.66897941e-03 ... 7.79283731e-03
2.78348894e-03 -5.24145079e-05]
[-1.27484737e-03 -1.53886380e-03 -1.36662089e-03 ... 3.15933042e-03
4.44701555e-03 4.37739501e-03]
...
[-1.58060319e-03 -1.31362622e-03 -1.50275859e-03 ... 3.93966713e-03
-9.12434255e-04 -7.03238429e-03]
[ 1.27484737e-03 -4.37739501e-03 -4.44701555e-03 ... 6.63376520e-03
1.36662089e-03 1.53886380e-03]
[ 2.35130664e-03 5.24145079e-05 -2.78348894e-03 ... -4.51663213e-03
-2.66897941e-03 -3.18820006e-04]]
fr1 value at fft_proj_rms [[2279624. +0.j -732437.64547079 +1707.25439046j
397455.06247291-122388.59755454j ... -139606.92323356+232829.97484177j
397455.06247291+122388.59755454j -732437.64547079 -1707.25439046j]
[ 548921.93946265-884249.13593159j -852055.54374157+800563.82488316j
322301.97825556+187756.9359162j ... -81375.14861296 -10368.19237624j
383151.93218351-268457.71888823j -833683.77887645+247037.09806091j]
[ 48604.47813228-685977.52027486j 318417.60273291+330714.28474564j
500717.35722766-425960.92048917j ... -182895.21851101-117735.57645468j
281036.56626469-300560.2434546j -235497.40182844+445099.23839853j]
...
[ -57827.15688495+120928.18430635j 103915.84179913-324466.2148486j
-21538.88510827+274603.1106728j ... -4666.60281229-333231.01573316j
-208282.91695145 +72827.77864999j -16756.34306303+176885.79516178j]
[ 48604.47813228+685977.52027486j -235497.40182844-445099.23839853j
281036.56626469+300560.2434546j ... -145467.97036887+260058.26843136j
500717.35722766+425960.92048917j 318417.60273291-330714.28474564j]
[ 548921.93946265+884249.13593159j -833683.77887645-247037.09806091j
383151.93218351+268457.71888823j ... -106264.52068697-146499.78275043j
322301.97825556-187756.9359162j -852055.54374157-800563.82488316j]]
fr2 value at fft_proj_rms [[2284214. +0.00000000e+00j -733427.42584753+5.48130970e+02j
394563.89555276-1.22727083e+05j ... -136926.37328219+2.32098822e+05j
394563.89555276+1.22727083e+05j -733427.42584753-5.48130970e+02j]
[ 548332.67578049-8.86824643e+05j -854473.99718416+8.02206583e+05j
324352.91816844+1.90008921e+05j ... -81388.1679405 -1.15364920e+04j
383227.62757858-2.67110184e+05j -831564.58538325+2.46419852e+05j]
[ 47329.80545433-6.86574819e+05j 321984.30171428+3.33375974e+05j
501476.39920654-4.27663540e+05j ... -184586.5837645 -1.20203638e+05j
283402.15847154-3.00506161e+05j -237708.38946713+4.45035285e+05j]
...
[ -56357.80590031+1.21213684e+05j 103804.36793104-3.25600479e+05j
-21337.19045209+2.76206922e+05j ... -3924.17135934-3.37434414e+05j
-210318.89010535+7.37995757e+04j -16017.36256672+1.78474872e+05j]
[ 47329.80545433+6.86574819e+05j -237708.38946713-4.45035285e+05j
283402.15847154+3.00506161e+05j ... -148765.06703743+2.61229639e+05j
501476.39920654+4.27663540e+05j 321984.30171428-3.33375974e+05j]
[ 548332.67578049+8.86824643e+05j -831564.58538325-2.46419852e+05j
383227.62757858+2.67110184e+05j ... -105647.81798175-1.44826407e+05j
324352.91816844-1.90008921e+05j -854473.99718416-8.02206583e+05j]]
ps1 value at fft_proj_rms [[12.71572644 11.72954368 11.2379193 ... 10.86746684 11.2379193
11.72954368]
[12.03471339 12.13573709 11.14342463 ... 9.82797726 11.34019606
11.87855395]
[11.67479462 11.32379171 11.63564515 ... 10.67497431 11.22870316
11.40410191]
...
[10.25449021 11.06474553 10.88007462 ... 11.045576 10.68740105
10.49926577]
[11.67479462 11.40410191 11.22870316 ... 10.94837009 11.63564515
11.32379171]
[12.03471339 11.87855395 11.34019606 ... 10.51526878 11.14342463
12.13573709]]
ps2 value at fft_proj_rms [[12.71747358 11.73071453 11.2323419 ... 10.86104844 11.2323419
11.73071453]
[12.03628015 12.13787964 11.15016738 ... 9.82976192 11.33887717
11.87634626]
[11.6754347 11.33206143 11.6378645 ... 10.68593083 11.23203181
11.40579303]
...
[10.25209927 11.06740945 10.88505314 ... 11.05643748 10.6961852
10.50663808]
[11.6754347 11.40579303 11.23203181 ... 10.95603375 11.6378645
11.33206143]
[12.03628015 11.87634626 11.33887717 ... 10.50699384 11.15016738
12.13787964]]
p1 value at fft_proj_rms [[ 0. 3.13926174 -0.29871665 ... 2.1109282 0.29871665
-3.13926174]
[-1.0152392 2.38734205 0.5274896 ... -3.01486321 -0.61116613
2.8535155 ]
[-1.50006021 0.80433917 -0.70490108 ... -2.56963611 -0.81895466
2.05744393]
...
[ 2.01684762 -1.26085114 1.64907248 ... -1.58479952 2.80522258
1.66524421]
[ 1.50006021 -2.05744393 0.81895466 ... 2.08080251 0.70490108
-0.80433917]
[ 1.0152392 -2.8535155 0.61116613 ... -2.19833794 -0.5274896
-2.38734205]]
p2 value at fft_proj_rms [[ 0. 3.1408453 -0.30155867 ... 2.1037923 0.30155867
-3.1408453 ]
[-1.01702216 2.38773351 0.52991973 ... -3.00078415 -0.60871063
2.85350366]
[-1.50196909 0.80277872 -0.70612252 ... -2.56437106 -0.81468206
2.06137665]
...
[ 2.00600952 -1.26217411 1.64789395 ... -1.58242524 2.80412188
1.6603023 ]
[ 1.50196909 -2.06137665 0.81468206 ... 2.08847232 0.70612252
-0.80277872]
[ 1.01702216 -2.85350366 0.60871063 ... -2.2010341 -0.52991973
-2.38773351]]
theta value at fft_proj_rms [[ 0.00000000e+00 1.58356162e-03 -2.84201782e-03 ... -7.13589574e-03
2.84201782e-03 -1.58356162e-03]
[-1.78295918e-03 3.91457588e-04 2.43012541e-03 ... 1.40790611e-02
2.45550111e-03 -1.18430866e-05]
[-1.90888269e-03 -1.56045244e-03 -1.22144107e-03 ... 5.26505260e-03
4.27259115e-03 3.93271912e-03]
...
[-1.08380998e-02 -1.32296735e-03 -1.17853435e-03 ... 2.37428157e-03
-1.10070696e-03 -4.94191457e-03]
[ 1.90888269e-03 -3.93271912e-03 -4.27259115e-03 ... 7.66981030e-03
1.22144107e-03 1.56045244e-03]
[ 1.78295918e-03 1.18430866e-05 -2.45550111e-03 ... -2.69616585e-03
-2.43012541e-03 -3.91457588e-04]]
fr1 value at fft_proj_rms [[2160870. +0.j -740785.25463446 +5980.99435174j
290180.66686435-130055.35179783j ... -160084.61623169+223936.64167227j
290180.66686435+130055.35179783j -740785.25463446 -5980.99435174j]
[ 537103.61874885-925043.63606146j -755317.44550663+765345.3653931j
312546.41958646+143632.41783885j ... -2783.3607623 -60856.34640406j
383759.94035791-303460.07154077j -735977.51108956+200194.20366408j]
[ -10460.54569847-632035.82853126j 370387.19944296+382884.16167656j
447087.79641164-390636.39881454j ... -156238.81639112 -64965.55891077j
234645.26330332-233729.8567678j -188391.93427633+497205.53262886j]
...
[-139172.96611761+152644.59556504j 122887.27980706-282486.12871828j
-94320.9601077 +307889.26636669j ... 26098.99249156-326453.82008571j
-278578.30062787+102659.5100845j 16200.02761803+201451.29356643j]
[ -10460.54569847+632035.82853126j -188391.93427633-497205.53262886j
234645.26330332+233729.8567678j ... -106014.19844127+213986.02420207j
447087.79641164+390636.39881454j 370387.19944296-382884.16167656j]
[ 537103.61874885+925043.63606146j -735977.51108956-200194.20366408j
383759.94035791+303460.07154077j ... -31136.50727004-122709.10674512j
312546.41958646-143632.41783885j -755317.44550663-765345.3653931j ]]
fr2 value at fft_proj_rms [[2165460. +0.j -741775.0350112 +4821.87093177j
287289.4999442 -130393.83772577j ... -157404.06628032+223205.48898424j
287289.4999442 +130393.83772577j -741775.0350112 -4821.87093177j]
[ 536514.35506669-927619.14324625j -757735.89894921+766988.12335699j
314597.35949934+145884.40244456j ... -2796.38008983 -62024.64598185j
383835.63575298-302112.5364528j -733858.31759636+199576.95751278j]
[ -11735.21837642-632633.12703287j 373953.89842434+385545.85059236j
447846.83839051-392339.01851575j ... -157930.18164461 -67433.62070486j
237010.85551017-233675.77437159j -190602.92191502+497141.57928269j]
...
[-137703.61513297+152930.09552717j 122775.80593898-283620.39278394j
-94119.26545152+309493.07809672j ... 26841.42394452-330657.21836579j
-280614.27378176+103631.30717708j 16939.00811435+203040.37005525j]
[ -11735.21837642+632633.12703287j -190602.92191502-497141.57928269j
237010.85551017+233675.77437159j ... -109311.29510983+215157.39436949j
447846.83839051+392339.01851575j 373953.89842434-385545.85059236j]
[ 536514.35506669+927619.14324625j -733858.31759636-199576.95751278j
383835.63575298+302112.5364528j ... -30519.80456482-121035.73082081j
314597.35949934-145884.40244456j -757735.89894921-766988.12335699j]]
ps1 value at fft_proj_rms [[12.66925728 11.73941297 11.00483368 ... 10.87952425 11.00483368
11.73941297]
[12.05849664 12.06305474 11.07304177 ... 9.56951927 11.37905104
11.76472939]
[11.60160234 11.45299243 11.54713977 ... 10.45683791 11.0401593
11.45133328]
...
[10.63011742 10.97726482 11.01574627 ... 11.03041048 10.94519692
10.61113959]
[11.60160234 11.45133328 11.0401593 ... 10.75609598 11.54713977
11.45299243]
[12.05849664 11.76472939 11.37905104 ... 10.20485243 11.07304177
12.06305474]]
ps2 value at fft_proj_rms [[12.67110033 11.74056278 10.99798808 ... 10.87271979 10.99798808
11.74056278]
[12.06006479 12.06536848 11.08009866 ... 9.58601046 11.37767368
11.76221251]
[11.60245327 11.46012643 11.54961219 ... 10.46966351 11.04445553
11.45252123]
...
[10.62685239 10.98006897 11.019716 ... 11.04160843 10.95174451
10.61817703]
[11.60245327 11.45252123 11.04445553 ... 10.76523377 11.54961219
11.46012643]
[12.06006479 11.76221251 11.37767368 ... 10.1925983 11.08009866
12.06536848]]
fft p1 value at fft_proj_rms [[ 0. 3.13351897 -0.42134564 ... 2.19142973 0.42134564
-3.13351897]
[-1.04474486 2.34960015 0.43077179 ... -1.61650105 -0.66907824
2.87600713]
[-1.58734537 0.80198689 -0.71811327 ... -2.74753226 -0.78344374
1.93298312]
...
[ 2.31006268 -1.16046886 1.86806586 ... -1.49101904 2.78852199
1.49055241]
[ 1.58734537 -1.93298312 0.78344374 ... 2.03077789 0.71811327
-0.80198689]
[ 1.04474486 -2.87600713 0.66907824 ... -1.81929417 -0.43077179
-2.34960015]]
p2 value at fft_proj_rms [[ 0. 3.1350923 -0.42607261 ... 2.18500237 0.42607261
-3.1350923 ]
[-1.04642722 2.35012643 0.43420293 ... -1.6158508 -0.66681822
2.87605889]
[-1.589344 0.80065959 -0.71942791 ... -2.73804296 -0.77831272
1.93690893]
...
[ 2.30385172 -1.16226366 1.86601749 ... -1.48979795 2.78782715
1.48756227]
[ 1.589344 -1.93690893 0.77831272 ... 2.04086532 0.71942791
-0.80065959]
[ 1.04642722 -2.87605889 0.66681822 ... -1.8178025 -0.43420293
-2.35012643]]
theta value at fft_proj_rms [[ 0.00000000e+00 1.57332412e-03 -4.72697431e-03 ... -6.42735389e-03
4.72697431e-03 -1.57332412e-03]
[-1.68235872e-03 5.26288494e-04 3.43114214e-03 ... 6.50249925e-04
2.26002165e-03 5.17690732e-05]
[-1.99862627e-03 -1.32730096e-03 -1.31464095e-03 ... 9.48930526e-03
5.13101950e-03 3.92581672e-03]
...
[-6.21095814e-03 -1.79479786e-03 -2.04836801e-03 ... 1.22108929e-03
-6.94835319e-04 -2.99013177e-03]
[ 1.99862627e-03 -3.92581672e-03 -5.13101950e-03 ... 1.00874343e-02
1.31464095e-03 1.32730096e-03]
[ 1.68235872e-03 -5.17690732e-05 -2.26002165e-03 ... 1.49166201e-03
-3.43114214e-03 -5.26288494e-04]]
return of rms value at fft_proj_rms 3.5077669097938364
value of rms at func fft_metric 3.5077669097938364
Value of grid_data at fft_metric : False.

The same at Successful Test case 1,Passing value to the func fft_proj_rms(a1, a2) as below

a1

[[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
...
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]]

a2 [[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
...
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]
[[0 0 0]
[0 0 0]
[0 0 0]
...
[0 0 0]
[0 0 0]
[0 0 0]]]

fr1 [[ 4669704. +0.j -589896.94275353 -377474.20341772j
-473899.7339169 -380602.64391773j ...
117876.82112361 -153966.53254446j -473899.7339169 +380602.64391773j
-589896.94275353 +377474.20341772j]
[-1382186.89245036 +529113.87131389j -434711.59772372 +767902.06048803j
901765.46088323 +443706.48967431j ...
-324557.93578958 -84865.46141515j 140441.86461512 -15825.21096367j
156406.41107572-1404040.30441462j]
[ -58215.59436435 -206347.79152483j 180786.49032682 -611479.41800525j
-277924.46321087 +63997.09546289j ...
463822.60725891 +122223.377339j -475307.83294529 -197869.46017911j
286914.49589721 +47454.4780481j ]
...
[ -357134.12637543 -277264.95032897j 96458.07762308 -103866.33449178j
-53326.19016785 -470151.86546801j ...
193325.5462026 +29105.83216894j -238248.66804514 +200065.19809265j
139695.32030286 +52770.8951755j ]
[ -58215.59436435 +206347.79152483j 286914.49589721 -47454.4780481j
-475307.83294529 +197869.46017911j ...
-20846.16112773 +251693.47816571j -277924.46321087 -63997.09546289j
180786.49032682 +611479.41800525j]
[-1382186.89245036 -529113.87131389j 156406.41107572+1404040.30441462j
140441.86461512 +15825.21096367j ...
-263616.46271413 +185692.0056401j 901765.46088323 -443706.48967431j
-434711.59772372 -767902.06048803j]]

fr1 [[ 4669704. +0.j -589896.94275353 -377474.20341772j
-473899.7339169 -380602.64391773j ...
117876.82112361 -153966.53254446j -473899.7339169 +380602.64391773j
-589896.94275353 +377474.20341772j]
[-1382186.89245036 +529113.87131389j -434711.59772372 +767902.06048803j
901765.46088323 +443706.48967431j ...
-324557.93578958 -84865.46141515j 140441.86461512 -15825.21096367j
156406.41107572-1404040.30441462j]
[ -58215.59436435 -206347.79152483j 180786.49032682 -611479.41800525j
-277924.46321087 +63997.09546289j ...
463822.60725891 +122223.377339j -475307.83294529 -197869.46017911j
286914.49589721 +47454.4780481j ]
...
[ -357134.12637543 -277264.95032897j 96458.07762308 -103866.33449178j
-53326.19016785 -470151.86546801j ...
193325.5462026 +29105.83216894j -238248.66804514 +200065.19809265j
139695.32030286 +52770.8951755j ]
[ -58215.59436435 +206347.79152483j 286914.49589721 -47454.4780481j
-475307.83294529 +197869.46017911j ...
-20846.16112773 +251693.47816571j -277924.46321087 -63997.09546289j
180786.49032682 +611479.41800525j]
[-1382186.89245036 -529113.87131389j 156406.41107572+1404040.30441462j
140441.86461512 +15825.21096367j ...
-263616.46271413 +185692.0056401j 901765.46088323 -443706.48967431j
-434711.59772372 -767902.06048803j]]

ps1 [[13.33857871 11.69060818 11.56754313 ... 10.57519522 11.56754313
11.69060818]
[12.34052385 11.89134103 12.00434562 ... 11.05130691 10.30047276
12.30011531]
[10.66246002 11.60915758 10.91029154 ... 11.36185993 11.42336035
10.92722586]
...
[11.31052474 10.3030313 11.35002783 ... 10.58231246 10.98582381
10.3482961 ]
[10.66246002 10.92722586 11.42336035 ... 10.8047129 10.91029154
11.60915758]
[12.34052385 12.30011531 10.30047276 ... 11.0169296 12.00434562
11.89134103]]

ps2 [[13.33857871 11.69060818 11.56754313 ... 10.57519522 11.56754313
11.69060818]
[12.34052385 11.89134103 12.00434562 ... 11.05130691 10.30047276
12.30011531]
[10.66246002 11.60915758 10.91029154 ... 11.36185993 11.42336035
10.92722586]
...
[11.31052474 10.3030313 11.35002783 ... 10.58231246 10.98582381
10.3482961 ]
[10.66246002 10.92722586 11.42336035 ... 10.8047129 10.91029154
11.60915758]
[12.34052385 12.30011531 10.30047276 ... 11.0169296 12.00434562
11.89134103]]

p1 [[ 0. -2.57235143 -2.46494666 ... -0.91738557 2.46494666
2.57235143]
[ 2.77599319 2.08591851 0.45726097 ... -2.88583866 -0.11220827
-1.45985634]
[-1.84577321 -1.28333121 2.9152698 ... 0.25765597 -2.74711614
0.16391199]
...
[-2.48143295 -0.82236262 -1.68373699 ... 0.1494312 2.44308957
0.36118564]
[ 1.84577321 -0.16391199 2.74711614 ... 1.65343132 -2.9152698
1.28333121]
[-2.77599319 1.45985634 0.11220827 ... 2.52791833 -0.45726097
-2.08591851]]

p2 [[ 0. -2.57235143 -2.46494666 ... -0.91738557 2.46494666
2.57235143]
[ 2.77599319 2.08591851 0.45726097 ... -2.88583866 -0.11220827
-1.45985634]
[-1.84577321 -1.28333121 2.9152698 ... 0.25765597 -2.74711614
0.16391199]
...
[-2.48143295 -0.82236262 -1.68373699 ... 0.1494312 2.44308957
0.36118564]
[ 1.84577321 -0.16391199 2.74711614 ... 1.65343132 -2.9152698
1.28333121]
[-2.77599319 1.45985634 0.11220827 ... 2.52791833 -0.45726097
-2.08591851]]

theta [[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
...
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]]

fr1 [[ 4593372. +0.j -529395.14502257 -352019.17099045j
-504746.94625967 -403977.31806764j ...
136705.15588963 -152618.30103981j -504746.94625967 +403977.31806764j
-529395.14502257 +352019.17099045j]
[-1341083.91860694 +481348.90228516j -483797.78986245 +790903.6367975j
931320.67515716 +438939.7755395j ...
-337096.95703774 -76003.19595799j 141795.49584513 -44832.80231364j
141137.37854467-1353517.33466868j]
[ -58337.57155295 -175042.67484215j 195269.96222224 -634612.00337787j
-288904.75500599 +68017.22328725j ...
474462.96152006 +114267.44821173j -471601.6585082 -191871.5844431j
276082.96519963 +27460.63463729j]
...
[ -348467.71167378 -266728.60108925j 87996.05688891 -110312.32372204j
-40298.98886549 -461399.10773887j ...
187566.99345303 +46426.02946562j -219759.41274591 +195010.6270155j
123352.02607328 +44308.54121008j]
[ -58337.57155295 +175042.67484215j 276082.96519963 -27460.63463729j
-471601.6585082 +191871.5844431j ...
-30518.80518968 +248923.57234088j -288904.75500599 -68017.22328725j
195269.96222224 +634612.00337787j]
[-1341083.91860694 -481348.90228516j 141137.37854467+1353517.33466868j
141795.49584513 +44832.80231364j ...
-268137.43335644 +172843.71745036j 931320.67515716 -438939.7755395j
-483797.78986245 -790903.6367975j ]]
fr1 [[ 4593372. +0.j -529395.14502257 -352019.17099045j
-504746.94625967 -403977.31806764j ...
136705.15588963 -152618.30103981j -504746.94625967 +403977.31806764j
-529395.14502257 +352019.17099045j]
[-1341083.91860694 +481348.90228516j -483797.78986245 +790903.6367975j
931320.67515716 +438939.7755395j ...
-337096.95703774 -76003.19595799j 141795.49584513 -44832.80231364j
141137.37854467-1353517.33466868j]
[ -58337.57155295 -175042.67484215j 195269.96222224 -634612.00337787j
-288904.75500599 +68017.22328725j ...
474462.96152006 +114267.44821173j -471601.6585082 -191871.5844431j
276082.96519963 +27460.63463729j]
...
[ -348467.71167378 -266728.60108925j 87996.05688891 -110312.32372204j
-40298.98886549 -461399.10773887j ...
187566.99345303 +46426.02946562j -219759.41274591 +195010.6270155j
123352.02607328 +44308.54121008j]
[ -58337.57155295 +175042.67484215j 276082.96519963 -27460.63463729j
-471601.6585082 +191871.5844431j ...
-30518.80518968 +248923.57234088j -288904.75500599 -68017.22328725j
195269.96222224 +634612.00337787j]
[-1341083.91860694 -481348.90228516j 141137.37854467+1353517.33466868j
141795.49584513 +44832.80231364j ...
-268137.43335644 +172843.71745036j 931320.67515716 -438939.7755395j
-483797.78986245 -790903.6367975j ]]
ps1 [[13.32426324 11.60657129 11.62114215 ... 10.62304911 11.62114215
11.60657129]
[12.30753943 11.93429078 12.02531665 ... 11.07704377 10.34470546
12.26762432]
[10.53203051 11.64430341 10.94493795 ... 11.37689098 11.41367325
10.88635472]
...
[11.28459741 10.29911739 11.33145391 ... 10.57213655 10.93612826
10.2349971 ]
[10.53203051 10.88635472 11.41367325 ... 10.79861158 10.94493795
11.64430341]
[12.30753943 12.26762432 10.34470546 ... 11.00763101 12.02531665
11.93429078]]

ps2 [[13.32426324 11.60657129 11.62114215 ... 10.62304911 11.62114215
11.60657129]
[12.30753943 11.93429078 12.02531665 ... 11.07704377 10.34470546
12.26762432]
[10.53203051 11.64430341 10.94493795 ... 11.37689098 11.41367325
10.88635472]
...
[11.28459741 10.29911739 11.33145391 ... 10.57213655 10.93612826
10.2349971 ]
[10.53203051 10.88635472 11.41367325 ... 10.79861158 10.94493795
11.64430341]
[12.30753943 12.26762432 10.34470546 ... 11.00763101 12.02531665
11.93429078]]

p1 [[ 0. -2.55478224 -2.46663459 ... -0.84034403 2.46663459
2.55478224]
[ 2.79698883 2.11977625 0.44043247 ... -2.9198367 -0.30623332
-1.46689729]
[-1.89249553 -1.27229059 2.910372 ... 0.23633467 -2.75519427
0.09913907]
...
[-2.48828752 -0.89745986 -1.65791609 ... 0.24264041 2.41579252
0.34485073]
[ 1.89249553 -0.09913907 2.75519427 ... 1.69279062 -2.910372
1.27229059]
[-2.79698883 1.46689729 0.30623332 ... 2.5690168 -0.44043247
-2.11977625]]

p2 [[ 0. -2.55478224 -2.46663459 ... -0.84034403 2.46663459
2.55478224]
[ 2.79698883 2.11977625 0.44043247 ... -2.9198367 -0.30623332
-1.46689729]
[-1.89249553 -1.27229059 2.910372 ... 0.23633467 -2.75519427
0.09913907]
...
[-2.48828752 -0.89745986 -1.65791609 ... 0.24264041 2.41579252
0.34485073]
[ 1.89249553 -0.09913907 2.75519427 ... 1.69279062 -2.910372
1.27229059]
[-2.79698883 1.46689729 0.30623332 ... 2.5690168 -0.44043247
-2.11977625]]

theta [[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
...
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]]

fr1 [[ 4583004. +0.j -520542.66007104 -346809.5793856j
-509597.06610975 -412705.57704606j ...
136476.51998542 -162132.83379862j -509597.06610975 +412705.57704606j
-520542.66007104 +346809.5793856j ]
[-1340857.34460385 +471060.73607752j -489156.83320001 +799565.54515117j
940071.98705872 +434330.04122566j ...
-327624.79329019 -76018.6164195j 133226.19533985 -49846.06450945j
146117.64670869-1344611.55605481j]
[ -48286.84432522 -174600.99386271j 186927.71460657 -640032.22273321j
-284601.10784899 +76653.30407992j ...
474274.69370543 +123544.52812177j -466512.13857225 -200151.98768376j
267265.85433979 +32142.23017094j]
...
[ -349102.03533676 -276390.40614187j 83670.26422249 -101726.79054372j
-32428.09487647 -466470.66764443j ...
196317.24230819 +45610.15601167j -228143.30054545 +191065.79129418j
128739.21335628 +52213.44319505j]
[ -48286.84432522 +174600.99386271j 267265.85433979 -32142.23017094j
-466512.13857225 +200151.98768376j ...
-29879.3862572 +258070.75056329j -284601.10784899 -76653.30407992j
186927.71460657 +640032.22273321j]
[-1340857.34460385 -471060.73607752j 146117.64670869+1344611.55605481j
133226.19533985 +49846.06450945j ...
-277542.13963811 +173283.98322874j 940071.98705872 -434330.04122566j
-489156.83320001 -799565.54515117j]]

fr1 [[ 4583004. +0.j -520542.66007104 -346809.5793856j
-509597.06610975 -412705.57704606j ...
136476.51998542 -162132.83379862j -509597.06610975 +412705.57704606j
-520542.66007104 +346809.5793856j ]
[-1340857.34460385 +471060.73607752j -489156.83320001 +799565.54515117j
940071.98705872 +434330.04122566j ...
-327624.79329019 -76018.6164195j 133226.19533985 -49846.06450945j
146117.64670869-1344611.55605481j]
[ -48286.84432522 -174600.99386271j 186927.71460657 -640032.22273321j
-284601.10784899 +76653.30407992j ...
474274.69370543 +123544.52812177j -466512.13857225 -200151.98768376j
267265.85433979 +32142.23017094j]
...
[ -349102.03533676 -276390.40614187j 83670.26422249 -101726.79054372j
-32428.09487647 -466470.66764443j ...
196317.24230819 +45610.15601167j -228143.30054545 +191065.79129418j
128739.21335628 +52213.44319505j]
[ -48286.84432522 +174600.99386271j 267265.85433979 -32142.23017094j
-466512.13857225 +200151.98768376j ...
-29879.3862572 +258070.75056329j -284601.10784899 -76653.30407992j
186927.71460657 +640032.22273321j]
[-1340857.34460385 -471060.73607752j 146117.64670869+1344611.55605481j
133226.19533985 +49846.06450945j ...
-277542.13963811 +173283.98322874j 940071.98705872 -434330.04122566j
-489156.83320001 -799565.54515117j]]

ps1 [[13.32230047 11.59244497 11.63348367 ... 10.65237106 11.63348367
11.59244497]
[12.30530764 11.94378105 12.03034787 ... 11.05352725 10.30607851
12.2622922 ]
[10.51610055 11.64795306 10.93888742 ... 11.38057252 11.41110497
10.86012326]
...
[11.29724362 10.23927577 11.33974246 ... 10.60874789 10.94721555
10.28555795]
[10.51610055 10.86012326 11.41110497 ... 10.8292606 10.93888742
11.64795306]
[12.30530764 12.2622922 10.30607851 ... 11.02961498 12.03034787
11.94378105]]

ps2 [[13.32230047 11.59244497 11.63348367 ... 10.65237106 11.63348367
11.59244497]
[12.30530764 11.94378105 12.03034787 ... 11.05352725 10.30607851
12.2622922 ]
[10.51610055 11.64795306 10.93888742 ... 11.38057252 11.41110497
10.86012326]
...
[11.29724362 10.23927577 11.33974246 ... 10.60874789 10.94721555
10.28555795]
[10.51610055 10.86012326 11.41110497 ... 10.8292606 10.93888742
11.64795306]
[12.30530764 12.2622922 10.30607851 ... 11.02961498 12.03034787
11.94378105]]

p1 [[ 0. -2.55388119 -2.46086446 ... -0.871107 2.46086446
2.55388119]
[ 2.80374852 2.11983134 0.43280291 ... -2.91359759 -0.35802186
-1.46255204]
[-1.84060799 -1.2866399 2.87849987 ... 0.25482839 -2.73630576
0.11968832]
...
[-2.47192208 -0.88248577 -1.64020263 ... 0.22827909 2.44441127
0.3853034 ]
[ 1.84060799 -0.11968832 2.73630576 ... 1.68606293 -2.87849987
1.2866399 ]
[-2.80374852 1.46255204 0.35802186 ... 2.58345947 -0.43280291
-2.11983134]]

p2 [[ 0. -2.55388119 -2.46086446 ... -0.871107 2.46086446
2.55388119]
[ 2.80374852 2.11983134 0.43280291 ... -2.91359759 -0.35802186
-1.46255204]
[-1.84060799 -1.2866399 2.87849987 ... 0.25482839 -2.73630576
0.11968832]
...
[-2.47192208 -0.88248577 -1.64020263 ... 0.22827909 2.44441127
0.3853034 ]
[ 1.84060799 -0.11968832 2.73630576 ... 1.68606293 -2.87849987
1.2866399 ]
[-2.80374852 1.46255204 0.35802186 ... 2.58345947 -0.43280291
-2.11983134]]

theta [[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
...
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]
[0. 0. 0. ... 0. 0. 0.]]

rms 0.0

@djhoese
Copy link
Member

djhoese commented Dec 14, 2020

The RMS is only a check to compare two images. If we could save the image generated by the test and then compare it to the expected output maybe we could get an idea what is wrong.

@asellappen
Copy link
Author

asellappen commented Dec 15, 2020

@djhoese ,Yes.That's right ,I am reaching out some expertise at my IBM team to get help for fixing this issue ,meanwhile i am putting on hold .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants