fix a bug in structure_factor_graph_model.py