Commit ef15eea7 authored by Tiago Peixoto's avatar Tiago Peixoto

blockmodel.py: Store reference to rec_params/wparams

parent 02067e65
...@@ -84,7 +84,7 @@ enum weight_type ...@@ -84,7 +84,7 @@ enum weight_type
((brec,, eprop_map_t<std::vector<double>>::type, 0)) \ ((brec,, eprop_map_t<std::vector<double>>::type, 0)) \
((bdrec,, eprop_map_t<std::vector<double>>::type, 0)) \ ((bdrec,, eprop_map_t<std::vector<double>>::type, 0)) \
((brecsum,, vprop_map_t<double>::type, 0)) \ ((brecsum,, vprop_map_t<double>::type, 0)) \
((wparams,, std::vector<std::vector<double>>, 0)) \ ((wparams, &, std::vector<std::vector<double>>&, 0)) \
((ignore_degrees,, typename vprop_map_t<uint8_t>::type, 0)) \ ((ignore_degrees,, typename vprop_map_t<uint8_t>::type, 0)) \
((bignore_degrees,, typename vprop_map_t<uint8_t>::type, 0)) \ ((bignore_degrees,, typename vprop_map_t<uint8_t>::type, 0)) \
((allow_empty,, bool, 0)) ((allow_empty,, bool, 0))
......
...@@ -470,7 +470,7 @@ class BlockState(object): ...@@ -470,7 +470,7 @@ class BlockState(object):
ks = list(defaults.keys()) ks = list(defaults.keys())
defaults.update(rec_params[i]) defaults.update(rec_params[i])
rec_params[i] = dict(**defaults) rec_params[i] = defaults.copy()
for k in ks: for k in ks:
ps.append(defaults.pop(k)) ps.append(defaults.pop(k))
if len(defaults) > 0: if len(defaults) > 0:
......
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