qtm-iisc / Twister

43 stars 12 forks source link

Issue in following the tutorial. #9

Open RenanM05 opened 2 years ago

RenanM05 commented 2 years ago

Hi developer,

I am trying to run your code, and I've found some steps are not going smooth.

For e.g.:

  1. It asks to read a file that is renamed with an underscore
  2. I keep receiving this message: Traceback (most recent call last): File "PATH_TO_PYTHON_SCRIPT/SRC/get_angle.py", line 12, in X=read_input("get_ang.inp") File "PATH_TO_PYTHON_SCRIPT/SRC/get_angle_funcs.py", line 953, in read_input return np.array(range_nm),np.array(celldm_a),np.array(a1),np.array(a2),np.array(a3),np.array(celldm_b),np.array(b1),np.array(b2),np.array(b3),np.array(theta_range),np.array(mismatch),np.array(fix_ang),np.array(f_ang),np.array(nba_a),np.array(nba_b),np.array(strain_per),np.array(plot),np.array(strain_layer),np.array(strain_tv),np.array(deepsearch),np.array(f_thresh) UnboundLocalError: local variable 'mismatch' referenced before assignment

i am not sure what's happening.

could you help me address this issue? best, Renan