Commit dbb512c2 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent db0cbdb2
...@@ -313,7 +313,6 @@ def do_enb(): ...@@ -313,7 +313,6 @@ def do_enb():
ref = ref_of_shared(ishared) ref = ref_of_shared(ishared)
_ = json.loads(ishared['_']) _ = json.loads(ishared['_'])
ishared['_'] = _ ishared['_'] = _
print(ref)
if 'ru_type' in _: if 'ru_type' in _:
iru_dict[ref] = ishared iru_dict[ref] = ishared
elif 'cell_type' in _: elif 'cell_type' in _:
...@@ -321,12 +320,7 @@ def do_enb(): ...@@ -321,12 +320,7 @@ def do_enb():
else: else:
raise AssertionError('enb: unknown shared instance %r' % (ishared,)) raise AssertionError('enb: unknown shared instance %r' % (ishared,))
print() def ru_of_cell(icell): # ~ jcell_ru_ref
print(iru_dict)
print(icell_dict)
# ~ jcell_ru_ref (simplified).
def ru_of_cell(icell):
cell_ref = ref_of_shared(icell) cell_ref = ref_of_shared(icell)
ru = icell['_']['ru'] ru = icell['_']['ru']
if ru['ru_type'] == 'ru_ref': if ru['ru_type'] == 'ru_ref':
...@@ -334,8 +328,7 @@ def do_enb(): ...@@ -334,8 +328,7 @@ def do_enb():
elif ru['ru_type'] == 'ruincell_ref': elif ru['ru_type'] == 'ruincell_ref':
return ru_of_cell(icell_dict[ru['ruincell_ref']]) return ru_of_cell(icell_dict[ru['ruincell_ref']])
else: else:
# embedded ru definition return ru # embedded ru definition
return ru
for cell_ref, icell in icell_dict.items(): for cell_ref, icell in icell_dict.items():
ru = ru_of_cell(icell) ru = ru_of_cell(icell)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment