Commit c5e97483 authored by mgassner's avatar mgassner
Browse files

fixed a small error

parent d42ae6ca
......@@ -117,8 +117,8 @@ def MutInf(model_name, param, spin_range):
for number_spins in number_spins_range:
print('Number Spins: ', number_spins)
print('Sub Dimension is ', sub_dim)
if param < -1.0:
hamming_weight = None
if param < -1.0 or model_name == 'tfim':
hamming_weight = None
else:
hamming_weight = number_spins //2
......@@ -167,5 +167,5 @@ if __name__ == "__main__":
number_spins = args.number_spins
spin_range = args.spin_range
param = args.param
MI_vs_Entropy(model_name, number_spins, param_range)
#MutInf(model_name, param, spin_range)
\ No newline at end of file
#MI_vs_Entropy(model_name, number_spins, param_range)
MutInf(model_name, param, spin_range)
\ No newline at end of file
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