Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------- >> begin captured logging << --------------------
- root: DEBUG: Loading Job from /home/ute/work/openquake/tests/data/config.gem
- root: DEBUG: Slurping /home/ute/work/openquake/tests/data/GmpeLogicTree.inp
- root: DEBUG: Slurping /home/ute/work/openquake/tests/data/ErfLogicTree.inp
- root: DEBUG: Loading Job from /home/ute/work/openquake/tests/data/config_with_includes.gem
- root: DEBUG: Slurping /home/ute/work/openquake/tests/data/GmpeLogicTree.inp
- root: DEBUG: Slurping /home/ute/work/openquake/tests/data/ErfLogicTree.inp
- root: DEBUG: Loading Job from /home/ute/work/openquake/smoketests/simplecase/config.gem
- root: DEBUG: Slurping /home/ute/work/openquake/smoketests/simplecase/gmpe_logic_tree.xml
- root: DEBUG: Slurping /home/ute/work/openquake/smoketests/simplecase/source_model_logic_tree.xml
- root: DEBUG: Found data at /home/ute/work/openquake/smoketests/simplecase/small_exposure.xml
- 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))
- root: DEBUG: Loaded 177 sites from exposure portfolio.
- root: DEBUG: Job has partitioned 177 sites into 2 blocks
- root: DEBUG: Job b99432ae Launching openquake.hazard.job.HazJobMixin for Hazard
- root: INFO: Going to run hazard for 1 histories of 1 realizations each.
- root: INFO: Storing source model from job config
- root: DEBUG: Generating GMF image, grid is 13 col by 7 rows
- 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]
- root: DEBUG: Job b99432ae Launching openquake.risk.job.RiskJobMixin for Risk
- root: DEBUG: Found data at /home/ute/work/openquake/smoketests/simplecase/small_exposure.xml
- root: DEBUG: starting task block, block_id = BLOCK:22 of 2
- root: DEBUG: starting task block, block_id = BLOCK:23 of 2
- root: DEBUG: Serializing loss_ratio_curves
- root: DEBUG: Found data at /home/ute/work/openquake/smoketests/simplecase/computed_output/simplecase-block-BLOCK:22.xml
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- ERROR: test_an_empty_hazard_curve_produces_an_empty_mean_curve (tests.MeanHazardCurveComputationTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 416, in test_an_empty_hazard_curve_produces_an_empty_mean_curve
- self._run([shapes.Site(2.0, 5.0)])
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 512, in _run
- self.job_id, sites)
- File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 136, in compute_mean_hazard_curves
- curves_at(job_id, site)))}
- File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 80, in curves_at
- raw_curves = kvs.mget_decoded(pattern)
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 53, in mget_decoded
- for value in mget(regexp):
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
- values = get_client(binary=False).mget(keys)
- File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
- return cmd(*args, **kwargs)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
- keys = list_or_args('mget', keys, args)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
- keys.extend(args)
- AttributeError: 'str' object has no attribute 'extend'
- ======================================================================
- ERROR: test_process_the_curves_for_a_single_site (tests.MeanHazardCurveComputationTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 351, in test_process_the_curves_for_a_single_site
- self._run([shapes.Site(2.0, 5.0)])
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 512, in _run
- self.job_id, sites)
- File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 136, in compute_mean_hazard_curves
- curves_at(job_id, site)))}
- File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 80, in curves_at
- raw_curves = kvs.mget_decoded(pattern)
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 53, in mget_decoded
- for value in mget(regexp):
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
- values = get_client(binary=False).mget(keys)
- File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
- return cmd(*args, **kwargs)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
- keys = list_or_args('mget', keys, args)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
- keys.extend(args)
- AttributeError: 'str' object has no attribute 'extend'
- ======================================================================
- ERROR: test_process_the_curves_for_multiple_sites (tests.MeanHazardCurveComputationTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 362, in test_process_the_curves_for_multiple_sites
- shapes.Site(1.5, 1.5), shapes.Site(2.0, 1.5)])
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 512, in _run
- self.job_id, sites)
- File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 136, in compute_mean_hazard_curves
- curves_at(job_id, site)))}
- File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 80, in curves_at
- raw_curves = kvs.mget_decoded(pattern)
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 53, in mget_decoded
- for value in mget(regexp):
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
- values = get_client(binary=False).mget(keys)
- File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
- return cmd(*args, **kwargs)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
- keys = list_or_args('mget', keys, args)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
- keys.extend(args)
- AttributeError: 'str' object has no attribute 'extend'
- ======================================================================
- ERROR: test_reads_and_stores_the_mean_curve_in_kvs (tests.MeanHazardCurveComputationTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 496, in test_reads_and_stores_the_mean_curve_in_kvs
- self._run([shapes.Site(2.0, 5.0)])
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 512, in _run
- self.job_id, sites)
- File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 136, in compute_mean_hazard_curves
- curves_at(job_id, site)))}
- File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 80, in curves_at
- raw_curves = kvs.mget_decoded(pattern)
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 53, in mget_decoded
- for value in mget(regexp):
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
- values = get_client(binary=False).mget(keys)
- File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
- return cmd(*args, **kwargs)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
- keys = list_or_args('mget', keys, args)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
- keys.extend(args)
- AttributeError: 'str' object has no attribute 'extend'
- ======================================================================
- ERROR: Create SVG plots for hazard curves read from an NRML file. The
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/output_unittest.py", line 297, in test_hazardcurve_plot_generation_multiple_sites_multiple_curves
- curve_title='Example Hazard Curves')
- File "/home/ute/work/openquake/openquake/output/curve.py", line 139, in __init__
- nrml_input_path, curve_title)
- File "/home/ute/work/openquake/openquake/output/curve.py", line 43, in __init__
- self._parse_nrml_file()
- File "/home/ute/work/openquake/openquake/output/curve.py", line 159, in _parse_nrml_file
- 'path': self._generate_filename(site_hash),
- File "/home/ute/work/openquake/openquake/output/curve.py", line 70, in _generate_filename
- self.output_base_path, site_lon, site_lat)
- TypeError: float argument required, not str
- -------------------- >> begin captured logging << --------------------
- root: DEBUG: Found data at /home/ute/work/openquake/tests/data/example-hazard-curves-for-plotting.xml
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- ERROR: Create SVG plots for loss curves read from an NRML file. The
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/output_unittest.py", line 252, in test_loss_curve_plot_generation_multiple_sites
- curve_title="This is a test loss curve")
- File "/home/ute/work/openquake/openquake/output/curve.py", line 93, in __init__
- nrml_input_path, curve_title)
- File "/home/ute/work/openquake/openquake/output/curve.py", line 43, in __init__
- self._parse_nrml_file()
- File "/home/ute/work/openquake/openquake/output/curve.py", line 112, in _parse_nrml_file
- 'path': self._generate_filename(site_hash),
- File "/home/ute/work/openquake/openquake/output/curve.py", line 70, in _generate_filename
- self.output_base_path, site_lon, site_lat)
- TypeError: float argument required, not str
- -------------------- >> begin captured logging << --------------------
- root: DEBUG: Found data at /home/ute/work/openquake/tests/data/example-loss-curves-for-plotting.xml
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- ERROR: Create SVG plots for loss ratio curves read from an NRML file. The
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/output_unittest.py", line 230, in test_loss_ratio_curve_plot_generation_multiple_sites
- mode='loss_ratio')
- File "/home/ute/work/openquake/openquake/output/curve.py", line 93, in __init__
- nrml_input_path, curve_title)
- File "/home/ute/work/openquake/openquake/output/curve.py", line 43, in __init__
- self._parse_nrml_file()
- File "/home/ute/work/openquake/openquake/output/curve.py", line 112, in _parse_nrml_file
- 'path': self._generate_filename(site_hash),
- File "/home/ute/work/openquake/openquake/output/curve.py", line 70, in _generate_filename
- self.output_base_path, site_lon, site_lat)
- TypeError: float argument required, not str
- -------------------- >> begin captured logging << --------------------
- root: DEBUG: Found data at /home/ute/work/openquake/tests/data/example-loss-ratio-curves-for-plotting.xml
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- ERROR: test_can_build_an_aggregate_curve_from_kvs (tests.ProbabilisticEventBasedTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/risk_tests.py", line 351, in test_can_build_an_aggregate_curve_from_kvs
- aggregate_curve = prob.AggregateLossCurve.from_kvs(job_id)
- File "/home/ute/work/openquake/openquake/risk/probabilistic_event_based.py", line 132, in from_kvs
- aggregate_curve.append(shapes.Curve.from_json(kvs.get(key)))
- File "/home/ute/work/openquake/openquake/shapes.py", line 393, in from_json
- as_dict = json.JSONDecoder().decode(json_str)
- File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
- obj, end = self.raw_decode(s, idx=_w(s, 0).end())
- TypeError: expected string or buffer
- -------------------- >> begin captured logging << --------------------
- root: DEBUG: Found 65 stored loss curves...
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- ERROR: test_accepts_also_signs (tests.QuantileHazardCurveComputationTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 595, in test_accepts_also_signs
- self._has_computed_quantile_for_site(shapes.Site(2.0, 5.0), 0.00)
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 783, in _has_computed_quantile_for_site
- str(value).replace(".", ""))))
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
- values = get_client(binary=False).mget(keys)
- File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
- return cmd(*args, **kwargs)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
- keys = list_or_args('mget', keys, args)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
- keys.extend(args)
- AttributeError: 'str' object has no attribute 'extend'
- -------------------- >> begin captured logging << --------------------
- root: DEBUG: List of QUANTILES is [0.0, 0.5, 1.0]
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!000 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!050 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!100 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- ERROR: test_an_empty_hazard_curve_produces_an_empty_quantile_curve (tests.QuantileHazardCurveComputationTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 665, in test_an_empty_hazard_curve_produces_an_empty_quantile_curve
- self._run([shapes.Site(2.0, 5.0)])
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 764, in _run
- self.engine, sites)
- File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 168, in compute_quantile_hazard_curves
- curves_at(job.id, site), quantile))}
- File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 80, in curves_at
- raw_curves = kvs.mget_decoded(pattern)
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 53, in mget_decoded
- for value in mget(regexp):
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
- values = get_client(binary=False).mget(keys)
- File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
- return cmd(*args, **kwargs)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
- keys = list_or_args('mget', keys, args)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
- keys.extend(args)
- AttributeError: 'str' object has no attribute 'extend'
- -------------------- >> begin captured logging << --------------------
- root: DEBUG: List of QUANTILES is [0.75]
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- ERROR: test_computes_all_the_levels_specified (tests.QuantileHazardCurveComputationTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 560, in test_computes_all_the_levels_specified
- self._has_computed_quantile_for_site(shapes.Site(2.0, 5.0), 0.25)
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 783, in _has_computed_quantile_for_site
- str(value).replace(".", ""))))
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
- values = get_client(binary=False).mget(keys)
- File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
- return cmd(*args, **kwargs)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
- keys = list_or_args('mget', keys, args)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
- keys.extend(args)
- AttributeError: 'str' object has no attribute 'extend'
- -------------------- >> begin captured logging << --------------------
- root: DEBUG: List of QUANTILES is [0.25, 0.5, 0.75]
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!025 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!050 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!075 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- ERROR: test_computes_just_the_quantiles_in_range (tests.QuantileHazardCurveComputationTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 570, in test_computes_just_the_quantiles_in_range
- self._has_computed_quantile_for_site(shapes.Site(2.0, 5.0), 0.00)
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 783, in _has_computed_quantile_for_site
- str(value).replace(".", ""))))
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
- values = get_client(binary=False).mget(keys)
- File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
- return cmd(*args, **kwargs)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
- keys = list_or_args('mget', keys, args)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
- keys.extend(args)
- AttributeError: 'str' object has no attribute 'extend'
- -------------------- >> begin captured logging << --------------------
- root: DEBUG: List of QUANTILES is [0.0, 0.25, 0.5, 0.75, 1.0]
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!000 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!025 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!050 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!075 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!100 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- ERROR: test_just_numeric_values_are_allowed (tests.QuantileHazardCurveComputationTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 585, in test_just_numeric_values_are_allowed
- self._has_computed_quantile_for_site(shapes.Site(2.0, 5.0), 0.00)
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 783, in _has_computed_quantile_for_site
- str(value).replace(".", ""))))
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
- values = get_client(binary=False).mget(keys)
- File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
- return cmd(*args, **kwargs)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
- keys = list_or_args('mget', keys, args)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
- keys.extend(args)
- AttributeError: 'str' object has no attribute 'extend'
- -------------------- >> begin captured logging << --------------------
- root: DEBUG: List of QUANTILES is [0.0, 0.5, 1.0]
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!000 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!050 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!5.0!100 is {'site_lon': 2.0, 'curve': [], 'site_lat': 5.0}
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- ERROR: test_process_all_the_sites_given (tests.QuantileHazardCurveComputationTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 605, in test_process_all_the_sites_given
- self._has_computed_quantile_for_site(shapes.Site(1.5, 1.0), 0.25)
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 783, in _has_computed_quantile_for_site
- str(value).replace(".", ""))))
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
- values = get_client(binary=False).mget(keys)
- File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
- return cmd(*args, **kwargs)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
- keys = list_or_args('mget', keys, args)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
- keys.extend(args)
- AttributeError: 'str' object has no attribute 'extend'
- -------------------- >> begin captured logging << --------------------
- root: DEBUG: List of QUANTILES is [0.25, 0.5]
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!1.5!1.0!025 is {'site_lon': 1.5, 'curve': [], 'site_lat': 1.0}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!1.5!1.0!050 is {'site_lon': 1.5, 'curve': [], 'site_lat': 1.0}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!1.0!025 is {'site_lon': 2.0, 'curve': [], 'site_lat': 1.0}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!1.0!050 is {'site_lon': 2.0, 'curve': [], 'site_lat': 1.0}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!1.5!1.5!025 is {'site_lon': 1.5, 'curve': [], 'site_lat': 1.5}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!1.5!1.5!050 is {'site_lon': 1.5, 'curve': [], 'site_lat': 1.5}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!1.5!025 is {'site_lon': 2.0, 'curve': [], 'site_lat': 1.5}
- root: DEBUG: QUANTILE curve at quantile_hazard_curve!1234!2.0!1.5!050 is {'site_lon': 2.0, 'curve': [], 'site_lat': 1.5}
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- ERROR: test_reads_and_stores_the_quantile_curve_in_kvs (tests.QuantileHazardCurveComputationTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 747, in test_reads_and_stores_the_quantile_curve_in_kvs
- self._run([shapes.Site(2.0, 5.0)])
- File "/home/ute/work/openquake/tests/hazard_unittest.py", line 764, in _run
- self.engine, sites)
- File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 168, in compute_quantile_hazard_curves
- curves_at(job.id, site), quantile))}
- File "/home/ute/work/openquake/openquake/hazard/classical_psha.py", line 80, in curves_at
- raw_curves = kvs.mget_decoded(pattern)
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 53, in mget_decoded
- for value in mget(regexp):
- File "/home/ute/work/openquake/openquake/kvs/__init__.py", line 41, in mget
- values = get_client(binary=False).mget(keys)
- File "/home/ute/work/openquake/openquake/kvs/redis.py", line 67, in call
- return cmd(*args, **kwargs)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 618, in mget
- keys = list_or_args('mget', keys, args)
- File "/usr/lib/python2.6/site-packages/redis-2.2.2-py2.6.egg/redis/client.py", line 130, in list_or_args
- keys.extend(args)
- AttributeError: 'str' object has no attribute 'extend'
- -------------------- >> begin captured logging << --------------------
- root: DEBUG: List of QUANTILES is [0.75]
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- ERROR: test_plots_the_aggregate_curve (tests.risk_tests.AggregateLossCurveMixinTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/risk_tests.py", line 617, in test_plots_the_aggregate_curve
- self._execute_mixin()
- File "/home/ute/work/openquake/tests/risk_tests.py", line 600, in _execute_mixin
- self.engine.execute()
- File "/home/ute/work/openquake/openquake/risk/job/aggregate_loss_curve.py", line 59, in execute
- aggregate_loss_curve = prob.AggregateLossCurve.from_kvs(self.id)
- File "/home/ute/work/openquake/openquake/risk/probabilistic_event_based.py", line 132, in from_kvs
- aggregate_curve.append(shapes.Curve.from_json(kvs.get(key)))
- File "/home/ute/work/openquake/openquake/shapes.py", line 393, in from_json
- as_dict = json.JSONDecoder().decode(json_str)
- File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
- obj, end = self.raw_decode(s, idx=_w(s, 0).end())
- TypeError: expected string or buffer
- -------------------- >> begin captured logging << --------------------
- root: DEBUG: Found 65 stored loss curves...
- --------------------- >> end captured logging << ---------------------
- ======================================================================
- ERROR: test_can_build_an_aggregate_curve_from_kvs (tests.risk_tests.ProbabilisticEventBasedTestCase)
- ----------------------------------------------------------------------
- Traceback (most recent call last):
- File "/home/ute/work/openquake/tests/risk_tests.py", line 351, in test_can_build_an_aggregate_curve_from_kvs
- aggregate_curve = prob.AggregateLossCurve.from_kvs(job_id)
- File "/home/ute/work/openquake/openquake/risk/probabilistic_event_based.py", line 132, in from_kvs
- aggregate_curve.append(shapes.Curve.from_json(kvs.get(key)))
- File "/home/ute/work/openquake/openquake/shapes.py", line 393, in from_json
- as_dict = json.JSONDecoder().decode(json_str)
- File "/usr/lib/python2.6/json/decoder.py", line 319, in decode
- obj, end = self.raw_decode(s, idx=_w(s, 0).end())
- TypeError: expected string or buffer
- -------------------- >> begin captured logging << --------------------
- root: DEBUG: Found 65 stored loss curves...
- --------------------- >> end captured logging << ---------------------
- ----------------------------------------------------------------------
- Ran 206 tests in 45.258s
- FAILED (SKIP=6, errors=20)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement