Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.15 KB | None | 0 0
  1. -------------------- >> begin captured logging << --------------------
  2. root: DEBUG: Loading Job from /home/ute/work/openquake/tests/data/config.gem
  3. root: DEBUG: Slurping /home/ute/work/openquake/tests/data/GmpeLogicTree.inp
  4. root: DEBUG: Slurping /home/ute/work/openquake/tests/data/ErfLogicTree.inp
  5. root: DEBUG: Loading Job from /home/ute/work/openquake/tests/data/config_with_includes.gem
  6. root: DEBUG: Slurping /home/ute/work/openquake/tests/data/GmpeLogicTree.inp
  7. root: DEBUG: Slurping /home/ute/work/openquake/tests/data/ErfLogicTree.inp
  8. root: DEBUG: Loading Job from /home/ute/work/openquake/smoketests/simplecase/config.gem
  9. root: DEBUG: Slurping /home/ute/work/openquake/smoketests/simplecase/gmpe_logic_tree.xml
  10. root: DEBUG: Slurping /home/ute/work/openquake/smoketests/simplecase/source_model_logic_tree.xml
  11. root: DEBUG: Found data at /home/ute/work/openquake/smoketests/simplecase/small_exposure.xml
  12. root: DEBUG: Constraining exposure parsing to POLYGON ((-118.2999999999999972 33.8800000000000026, -118.0600000000000023 33.8800000000000026, -118.0600000000000023 33.7599999999999980, -118.2999999999999972 33.7599999999999980, -118.2999999999999972 33.8800000000000026))
  13. root: DEBUG: Loaded 177 sites from exposure portfolio.
  14. root: DEBUG: Job has partitioned 177 sites into 2 blocks
  15. root: DEBUG: Job b99432ae Launching openquake.hazard.job.HazJobMixin for Hazard
  16. root: INFO: Going to run hazard for 1 histories of 1 realizations each.
  17. root: INFO: Storing source model from job config
  18. root: DEBUG: Generating GMF image, grid is 13 col by 7 rows
  19. root: DEBUG: IML: [0.0050000000000000001, 0.0070000000000000001, 0.0097999999999999997, 0.0137, 0.019199999999999998, 0.0269, 0.037600000000000001, 0.052699999999999997, 0.073800000000000004, 0.10299999999999999, 0.14499999999999999, 0.20300000000000001, 0.28399999999999997, 0.39700000000000002, 0.55600000000000005, 0.77800000000000002, 1.0900000000000001, 1.52, 2.1299999999999999]
  20. root: DEBUG: Job b99432ae Launching openquake.risk.job.RiskJobMixin for Risk
  21. root: DEBUG: Found data at /home/ute/work/openquake/smoketests/simplecase/small_exposure.xml
  22. root: DEBUG: starting task block, block_id = BLOCK:22 of 2
  23. root: DEBUG: starting task block, block_id = BLOCK:23 of 2
  24. root: DEBUG: Serializing loss_ratio_curves
  25. root: DEBUG: Found data at /home/ute/work/openquake/smoketests/simplecase/computed_output/simplecase-block-BLOCK:22.xml
  26. --------------------- >> end captured logging << ---------------------
  27.  
  28. ======================================================================
  29. ERROR: test_an_empty_hazard_curve_produces_an_empty_mean_curve (tests.MeanHazardCurveComputationTestCase)
  30. ----------------------------------------------------------------------
  31. Traceback (most recent call last):
  32. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 416, in test_an_empty_hazard_curve_produces_an_empty_mean_curve
  33. self._run([shapes.Site(2.0, 5.0)])
  34. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 512, in _run
  35. self.job_id, sites)
  36. File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 136, in compute_mean_hazard_curves
  37. curves_at(job_id, site)))}
  38. File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 80, in curves_at
  39. raw_curves = kvs.mget_decoded(pattern)
  40. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 53, in mget_decoded
  41. for value in mget(regexp):
  42. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
  43. values = get_client(binary=False).mget(keys)
  44. File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
  45. return cmd(*args, **kwargs)
  46. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
  47. keys = list_or_args('mget', keys, args)
  48. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
  49. keys.extend(args)
  50. AttributeError: 'str' object has no attribute 'extend'
  51.  
  52. ======================================================================
  53. ERROR: test_process_the_curves_for_a_single_site (tests.MeanHazardCurveComputationTestCase)
  54. ----------------------------------------------------------------------
  55. Traceback (most recent call last):
  56. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 351, in test_process_the_curves_for_a_single_site
  57. self._run([shapes.Site(2.0, 5.0)])
  58. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 512, in _run
  59. self.job_id, sites)
  60. File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 136, in compute_mean_hazard_curves
  61. curves_at(job_id, site)))}
  62. File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 80, in curves_at
  63. raw_curves = kvs.mget_decoded(pattern)
  64. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 53, in mget_decoded
  65. for value in mget(regexp):
  66. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
  67. values = get_client(binary=False).mget(keys)
  68. File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
  69. return cmd(*args, **kwargs)
  70. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
  71. keys = list_or_args('mget', keys, args)
  72. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
  73. keys.extend(args)
  74. AttributeError: 'str' object has no attribute 'extend'
  75.  
  76. ======================================================================
  77. ERROR: test_process_the_curves_for_multiple_sites (tests.MeanHazardCurveComputationTestCase)
  78. ----------------------------------------------------------------------
  79. Traceback (most recent call last):
  80. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 362, in test_process_the_curves_for_multiple_sites
  81. shapes.Site(1.5, 1.5), shapes.Site(2.0, 1.5)])
  82. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 512, in _run
  83. self.job_id, sites)
  84. File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 136, in compute_mean_hazard_curves
  85. curves_at(job_id, site)))}
  86. File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 80, in curves_at
  87. raw_curves = kvs.mget_decoded(pattern)
  88. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 53, in mget_decoded
  89. for value in mget(regexp):
  90. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
  91. values = get_client(binary=False).mget(keys)
  92. File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
  93. return cmd(*args, **kwargs)
  94. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
  95. keys = list_or_args('mget', keys, args)
  96. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
  97. keys.extend(args)
  98. AttributeError: 'str' object has no attribute 'extend'
  99.  
  100. ======================================================================
  101. ERROR: test_reads_and_stores_the_mean_curve_in_kvs (tests.MeanHazardCurveComputationTestCase)
  102. ----------------------------------------------------------------------
  103. Traceback (most recent call last):
  104. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 496, in test_reads_and_stores_the_mean_curve_in_kvs
  105. self._run([shapes.Site(2.0, 5.0)])
  106. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 512, in _run
  107. self.job_id, sites)
  108. File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 136, in compute_mean_hazard_curves
  109. curves_at(job_id, site)))}
  110. File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 80, in curves_at
  111. raw_curves = kvs.mget_decoded(pattern)
  112. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 53, in mget_decoded
  113. for value in mget(regexp):
  114. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
  115. values = get_client(binary=False).mget(keys)
  116. File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
  117. return cmd(*args, **kwargs)
  118. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
  119. keys = list_or_args('mget', keys, args)
  120. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
  121. keys.extend(args)
  122. AttributeError: 'str' object has no attribute 'extend'
  123.  
  124. ======================================================================
  125. ERROR: Create SVG plots for hazard curves read from an NRML file. The
  126. ----------------------------------------------------------------------
  127. Traceback (most recent call last):
  128. File "/home/ute/work/openquake/tests/output_unittest.py", line 297, in test_hazardcurve_plot_generation_multiple_sites_multiple_curves
  129. curve_title='Example Hazard Curves')
  130. File "/home/ute/work/openquake/openquake/output/curve.py", line 139, in __init__
  131. nrml_input_path, curve_title)
  132. File "/home/ute/work/openquake/openquake/output/curve.py", line 43, in __init__
  133. self._parse_nrml_file()
  134. File "/home/ute/work/openquake/openquake/output/curve.py", line 159, in _parse_nrml_file
  135. 'path': self._generate_filename(site_hash),
  136. File "/home/ute/work/openquake/openquake/output/curve.py", line 70, in _generate_filename
  137. self.output_base_path, site_lon, site_lat)
  138. TypeError: float argument required, not str
  139. -------------------- >> begin captured logging << --------------------
  140. root: DEBUG: Found data at /home/ute/work/openquake/tests/data/example-hazard-curves-for-plotting.xml
  141. --------------------- >> end captured logging << ---------------------
  142.  
  143. ======================================================================
  144. ERROR: Create SVG plots for loss curves read from an NRML file. The
  145. ----------------------------------------------------------------------
  146. Traceback (most recent call last):
  147. File "/home/ute/work/openquake/tests/output_unittest.py", line 252, in test_loss_curve_plot_generation_multiple_sites
  148. curve_title="This is a test loss curve")
  149. File "/home/ute/work/openquake/openquake/output/curve.py", line 93, in __init__
  150. nrml_input_path, curve_title)
  151. File "/home/ute/work/openquake/openquake/output/curve.py", line 43, in __init__
  152. self._parse_nrml_file()
  153. File "/home/ute/work/openquake/openquake/output/curve.py", line 112, in _parse_nrml_file
  154. 'path': self._generate_filename(site_hash),
  155. File "/home/ute/work/openquake/openquake/output/curve.py", line 70, in _generate_filename
  156. self.output_base_path, site_lon, site_lat)
  157. TypeError: float argument required, not str
  158. -------------------- >> begin captured logging << --------------------
  159. root: DEBUG: Found data at /home/ute/work/openquake/tests/data/example-loss-curves-for-plotting.xml
  160. --------------------- >> end captured logging << ---------------------
  161.  
  162. ======================================================================
  163. ERROR: Create SVG plots for loss ratio curves read from an NRML file. The
  164. ----------------------------------------------------------------------
  165. Traceback (most recent call last):
  166. File "/home/ute/work/openquake/tests/output_unittest.py", line 230, in test_loss_ratio_curve_plot_generation_multiple_sites
  167. mode='loss_ratio')
  168. File "/home/ute/work/openquake/openquake/output/curve.py", line 93, in __init__
  169. nrml_input_path, curve_title)
  170. File "/home/ute/work/openquake/openquake/output/curve.py", line 43, in __init__
  171. self._parse_nrml_file()
  172. File "/home/ute/work/openquake/openquake/output/curve.py", line 112, in _parse_nrml_file
  173. 'path': self._generate_filename(site_hash),
  174. File "/home/ute/work/openquake/openquake/output/curve.py", line 70, in _generate_filename
  175. self.output_base_path, site_lon, site_lat)
  176. TypeError: float argument required, not str
  177. -------------------- >> begin captured logging << --------------------
  178. root: DEBUG: Found data at /home/ute/work/openquake/tests/data/example-loss-ratio-curves-for-plotting.xml
  179. --------------------- >> end captured logging << ---------------------
  180.  
  181. ======================================================================
  182. ERROR: test_can_build_an_aggregate_curve_from_kvs (tests.ProbabilisticEventBasedTestCase)
  183. ----------------------------------------------------------------------
  184. Traceback (most recent call last):
  185. File "/home/ute/work/openquake/tests/risk_tests.py", line 351, in test_can_build_an_aggregate_curve_from_kvs
  186. aggregate_curve = prob.AggregateLossCurve.from_kvs(job_id)
  187. File "/home/ute/work/openquake/openquake/risk/probabilistic_event_based.py", line 132, in from_kvs
  188. aggregate_curve.append(shapes.Curve.from_json(kvs.get(key)))
  189. File "/home/ute/work/openquake/openquake/shapes.py", line 393, in from_json
  190. as_dict = json.JSONDecoder().decode(json_str)
  191. File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
  192. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  193. TypeError: expected string or buffer
  194. -------------------- >> begin captured logging << --------------------
  195. root: DEBUG: Found 65 stored loss curves...
  196. --------------------- >> end captured logging << ---------------------
  197.  
  198. ======================================================================
  199. ERROR: test_accepts_also_signs (tests.QuantileHazardCurveComputationTestCase)
  200. ----------------------------------------------------------------------
  201. Traceback (most recent call last):
  202. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 595, in test_accepts_also_signs
  203. self._has_computed_quantile_for_site(shapes.Site(2.0, 5.0), 0.00)
  204. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 783, in _has_computed_quantile_for_site
  205. str(value).replace(".", ""))))
  206. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
  207. values = get_client(binary=False).mget(keys)
  208. File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
  209. return cmd(*args, **kwargs)
  210. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
  211. keys = list_or_args('mget', keys, args)
  212. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
  213. keys.extend(args)
  214. AttributeError: 'str' object has no attribute 'extend'
  215. -------------------- >> begin captured logging << --------------------
  216. root: DEBUG: List of QUANTILES is [0.0, 0.5, 1.0]
  217. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!000 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
  218. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!050 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
  219. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!100 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
  220. --------------------- >> end captured logging << ---------------------
  221.  
  222. ======================================================================
  223. ERROR: test_an_empty_hazard_curve_produces_an_empty_quantile_curve (tests.QuantileHazardCurveComputationTestCase)
  224. ----------------------------------------------------------------------
  225. Traceback (most recent call last):
  226. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 665, in test_an_empty_hazard_curve_produces_an_empty_quantile_curve
  227. self._run([shapes.Site(2.0, 5.0)])
  228. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 764, in _run
  229. self.engine, sites)
  230. File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 168, in compute_quantile_hazard_curves
  231. curves_at(job.id, site), quantile))}
  232. File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 80, in curves_at
  233. raw_curves = kvs.mget_decoded(pattern)
  234. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 53, in mget_decoded
  235. for value in mget(regexp):
  236. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
  237. values = get_client(binary=False).mget(keys)
  238. File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
  239. return cmd(*args, **kwargs)
  240. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
  241. keys = list_or_args('mget', keys, args)
  242. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
  243. keys.extend(args)
  244. AttributeError: 'str' object has no attribute 'extend'
  245. -------------------- >> begin captured logging << --------------------
  246. root: DEBUG: List of QUANTILES is [0.75]
  247. --------------------- >> end captured logging << ---------------------
  248.  
  249. ======================================================================
  250. ERROR: test_computes_all_the_levels_specified (tests.QuantileHazardCurveComputationTestCase)
  251. ----------------------------------------------------------------------
  252. Traceback (most recent call last):
  253. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 560, in test_computes_all_the_levels_specified
  254. self._has_computed_quantile_for_site(shapes.Site(2.0, 5.0), 0.25)
  255. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 783, in _has_computed_quantile_for_site
  256. str(value).replace(".", ""))))
  257. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
  258. values = get_client(binary=False).mget(keys)
  259. File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
  260. return cmd(*args, **kwargs)
  261. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
  262. keys = list_or_args('mget', keys, args)
  263. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
  264. keys.extend(args)
  265. AttributeError: 'str' object has no attribute 'extend'
  266. -------------------- >> begin captured logging << --------------------
  267. root: DEBUG: List of QUANTILES is [0.25, 0.5, 0.75]
  268. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!025 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
  269. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!050 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
  270. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!075 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
  271. --------------------- >> end captured logging << ---------------------
  272.  
  273. ======================================================================
  274. ERROR: test_computes_just_the_quantiles_in_range (tests.QuantileHazardCurveComputationTestCase)
  275. ----------------------------------------------------------------------
  276. Traceback (most recent call last):
  277. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 570, in test_computes_just_the_quantiles_in_range
  278. self._has_computed_quantile_for_site(shapes.Site(2.0, 5.0), 0.00)
  279. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 783, in _has_computed_quantile_for_site
  280. str(value).replace(".", ""))))
  281. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
  282. values = get_client(binary=False).mget(keys)
  283. File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
  284. return cmd(*args, **kwargs)
  285. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
  286. keys = list_or_args('mget', keys, args)
  287. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
  288. keys.extend(args)
  289. AttributeError: 'str' object has no attribute 'extend'
  290. -------------------- >> begin captured logging << --------------------
  291. root: DEBUG: List of QUANTILES is [0.0, 0.25, 0.5, 0.75, 1.0]
  292. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!000 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
  293. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!025 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
  294. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!050 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
  295. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!075 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
  296. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!100 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
  297. --------------------- >> end captured logging << ---------------------
  298.  
  299. ======================================================================
  300. ERROR: test_just_numeric_values_are_allowed (tests.QuantileHazardCurveComputationTestCase)
  301. ----------------------------------------------------------------------
  302. Traceback (most recent call last):
  303. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 585, in test_just_numeric_values_are_allowed
  304. self._has_computed_quantile_for_site(shapes.Site(2.0, 5.0), 0.00)
  305. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 783, in _has_computed_quantile_for_site
  306. str(value).replace(".", ""))))
  307. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
  308. values = get_client(binary=False).mget(keys)
  309. File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
  310. return cmd(*args, **kwargs)
  311. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
  312. keys = list_or_args('mget', keys, args)
  313. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
  314. keys.extend(args)
  315. AttributeError: 'str' object has no attribute 'extend'
  316. -------------------- >> begin captured logging << --------------------
  317. root: DEBUG: List of QUANTILES is [0.0, 0.5, 1.0]
  318. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!000 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
  319. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!050 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
  320. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!100 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
  321. --------------------- >> end captured logging << ---------------------
  322.  
  323. ======================================================================
  324. ERROR: test_process_all_the_sites_given (tests.QuantileHazardCurveComputationTestCase)
  325. ----------------------------------------------------------------------
  326. Traceback (most recent call last):
  327. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 605, in test_process_all_the_sites_given
  328. self._has_computed_quantile_for_site(shapes.Site(1.5, 1.0), 0.25)
  329. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 783, in _has_computed_quantile_for_site
  330. str(value).replace(".", ""))))
  331. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
  332. values = get_client(binary=False).mget(keys)
  333. File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
  334. return cmd(*args, **kwargs)
  335. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
  336. keys = list_or_args('mget', keys, args)
  337. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
  338. keys.extend(args)
  339. AttributeError: 'str' object has no attribute 'extend'
  340. -------------------- >> begin captured logging << --------------------
  341. root: DEBUG: List of QUANTILES is [0.25, 0.5]
  342. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!1.5!1.0!025 is {'site_lon': 1.5, 'curve': [], 'site_lat': 1.0}
  343. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!1.5!1.0!050 is {'site_lon': 1.5, 'curve': [], 'site_lat': 1.0}
  344. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!1.0!025 is {'site_lon': 2.0, 'curve': [], 'site_lat': 1.0}
  345. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!1.0!050 is {'site_lon': 2.0, 'curve': [], 'site_lat': 1.0}
  346. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!1.5!1.5!025 is {'site_lon': 1.5, 'curve': [], 'site_lat': 1.5}
  347. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!1.5!1.5!050 is {'site_lon': 1.5, 'curve': [], 'site_lat': 1.5}
  348. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!1.5!025 is {'site_lon': 2.0, 'curve': [], 'site_lat': 1.5}
  349. root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!1.5!050 is {'site_lon': 2.0, 'curve': [], 'site_lat': 1.5}
  350. --------------------- >> end captured logging << ---------------------
  351.  
  352. ======================================================================
  353. ERROR: test_reads_and_stores_the_quantile_curve_in_kvs (tests.QuantileHazardCurveComputationTestCase)
  354. ----------------------------------------------------------------------
  355. Traceback (most recent call last):
  356. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 747, in test_reads_and_stores_the_quantile_curve_in_kvs
  357. self._run([shapes.Site(2.0, 5.0)])
  358. File "/home/ute/work/openquake/tests/hazard_unittest.py", line 764, in _run
  359. self.engine, sites)
  360. File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 168, in compute_quantile_hazard_curves
  361. curves_at(job.id, site), quantile))}
  362. File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 80, in curves_at
  363. raw_curves = kvs.mget_decoded(pattern)
  364. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 53, in mget_decoded
  365. for value in mget(regexp):
  366. File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
  367. values = get_client(binary=False).mget(keys)
  368. File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
  369. return cmd(*args, **kwargs)
  370. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
  371. keys = list_or_args('mget', keys, args)
  372. File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
  373. keys.extend(args)
  374. AttributeError: 'str' object has no attribute 'extend'
  375. -------------------- >> begin captured logging << --------------------
  376. root: DEBUG: List of QUANTILES is [0.75]
  377. --------------------- >> end captured logging << ---------------------
  378.  
  379. ======================================================================
  380. ERROR: test_plots_the_aggregate_curve (tests.risk_tests.AggregateLossCurveMixinTestCase)
  381. ----------------------------------------------------------------------
  382. Traceback (most recent call last):
  383. File "/home/ute/work/openquake/tests/risk_tests.py", line 617, in test_plots_the_aggregate_curve
  384. self._execute_mixin()
  385. File "/home/ute/work/openquake/tests/risk_tests.py", line 600, in _execute_mixin
  386. self.engine.execute()
  387. File "/home/ute/work/openquake/openquake/risk/job/aggregate_loss_curve.py", line 59, in execute
  388. aggregate_loss_curve = prob.AggregateLossCurve.from_kvs(self.id)
  389. File "/home/ute/work/openquake/openquake/risk/probabilistic_event_based.py", line 132, in from_kvs
  390. aggregate_curve.append(shapes.Curve.from_json(kvs.get(key)))
  391. File "/home/ute/work/openquake/openquake/shapes.py", line 393, in from_json
  392. as_dict = json.JSONDecoder().decode(json_str)
  393. File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
  394. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  395. TypeError: expected string or buffer
  396. -------------------- >> begin captured logging << --------------------
  397. root: DEBUG: Found 65 stored loss curves...
  398. --------------------- >> end captured logging << ---------------------
  399.  
  400. ======================================================================
  401. ERROR: test_can_build_an_aggregate_curve_from_kvs (tests.risk_tests.ProbabilisticEventBasedTestCase)
  402. ----------------------------------------------------------------------
  403. Traceback (most recent call last):
  404. File "/home/ute/work/openquake/tests/risk_tests.py", line 351, in test_can_build_an_aggregate_curve_from_kvs
  405. aggregate_curve = prob.AggregateLossCurve.from_kvs(job_id)
  406. File "/home/ute/work/openquake/openquake/risk/probabilistic_event_based.py", line 132, in from_kvs
  407. aggregate_curve.append(shapes.Curve.from_json(kvs.get(key)))
  408. File "/home/ute/work/openquake/openquake/shapes.py", line 393, in from_json
  409. as_dict = json.JSONDecoder().decode(json_str)
  410. File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
  411. obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  412. TypeError: expected string or buffer
  413. -------------------- >> begin captured logging << --------------------
  414. root: DEBUG: Found 65 stored loss curves...
  415. --------------------- >> end captured logging << ---------------------
  416.  
  417. ----------------------------------------------------------------------
  418. Ran 206 tests in 45.258s
  419.  
  420. FAILED (SKIP=6, errors=20)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement