Closed GoogleCodeExporter closed 9 years ago
At a guess the root cause is the new building variability.
I reverted to revision 1175 and it didn't fall over, at this point in the code.
[I stopped it before it completted]
Original comment by duncan.g...@gmail.com
on 8 Aug 2012 at 6:42
Here's the same run, on the head revision, with some print statements added.
It shows how the calculation -bb*x1 gets too big;
bb [[[ 0.6816922 ]
[ 0.57944567]
[-0.99316559]
...,
[-2.35933135]
[-0.67337015]
[-0.42201514]]]
x1 [[[ 5.08136008]
[ 98.88233282]
[-20.43479414]
...,
[-20.43479414]
[-20.43479414]
[-20.43479414]]]
(-bb*x1 [[[ -3.46392352]
[-57.29693976]
[-20.29513437]
...,
[-48.21245041]
[-13.76018036]
[ -8.62379247]]]
P0: do site 639 of 6305
bb [[[-3.80778872]
[-3.80778872]
[-3.80778872]
...,
[-3.80778872]
[-3.80778872]
[-3.80778872]]]
x1 [[[ 0.69660483]
[ 473.03675947]
[ 0.69660483]
...,
[ 140.10562641]
[ 0.69660483]
[ 0.69660483]]]
(-bb*x1 [[[ 2.65252402]
[ 1801.22403731]
[ 2.65252402]
...,
[ 533.492624 ]
[ 2.65252402]
[ 2.65252402]]]
Original comment by duncan.g...@gmail.com
on 8 Aug 2012 at 6:58
I've changed csm_use_variability to False for this demo.
It still crushes.
Original comment by duncan.g...@gmail.com
on 8 Aug 2012 at 7:01
Also, the demo
python setdata_ScenRisk.py
breaks if it isn't sub-sampling the sites.
Original comment by duncan.g...@gmail.com
on 20 Aug 2012 at 4:17
1. csm_variability_method should be set to None instead of False in case of no
sampling.
2. More appropriate way to avoid this error is to take samples using log normal
instead of normal (in capacity_spectrum_functions.py). When normal is used
there is still a chance to have a negative value of any of the parameters. For
the reference the C value was -0.00175307 when the run crashed, which should be
always positive.
Original comment by dyna...@gmail.com
on 21 Aug 2012 at 1:14
Fixed by rolling back the capacity curve with variable parameters in revision
1220.
Original comment by duncan.g...@gmail.com
on 21 Aug 2012 at 7:44
Original issue reported on code.google.com by
duncan.g...@gmail.com
on 8 Aug 2012 at 6:16