Commit 1f0ee0b4 authored by Joseph Weston's avatar Joseph Weston
Browse files

remove use of addition between dictionaries and qsymm.Models

This is not an API of qsymm.
parent e2227fbb
......@@ -323,8 +323,8 @@ def model_to_builder(model, norbs, lat_vecs, atom_coords, *, coeffs=None):
# Keep track of the hoppings and onsites by storing those
# which have already been set.
hopping_dict = defaultdict(dict)
onsites_dict = defaultdict(dict)
hopping_dict = defaultdict(lambda: 0)
onsites_dict = defaultdict(lambda: 0)
# Iterate over all terms in the model.
for key, hop_mat in model.items():
Supports Markdown
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