File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ def _raw_technosphere_iterator(self, negative=True):
228
228
yield (row , col , value )
229
229
230
230
def _raw_biosphere_iterator (self ):
231
- bm = lambda x : any (obj [ "matrix" ] == "biosphere_matrix" for obj in x .values ())
231
+ bm = lambda x : any (obj . get ( "matrix" ) == "biosphere_matrix" for obj in x .values ())
232
232
for resource in filter (bm , self .resources ):
233
233
for (row , col ), value in zip (
234
234
resource ["indices" ]["array" ], resource ["data" ]["array" ]
Original file line number Diff line number Diff line change @@ -489,3 +489,10 @@ def test_iotable_filtered_datapackage(iotable_fixture):
489
489
IOTableExchanges (datapackage = dp , target = get_node (code = "b" ))
490
490
with pytest .raises (InvalidDatapackage ):
491
491
IOTableExchanges (datapackage = dp , target = get_node (code = "a" ))
492
+
493
+
494
+ def test_iotable_readonlyexchange_iterator (iotable_fixture ):
495
+
496
+ act = get_activity (('cat' ,'b' ))
497
+
498
+ list (act .exchanges ())
You can’t perform that action at this time.
0 commit comments