b1quint / samfp-tools

Short scripts to process data obtained with SAM-FP at SOAR Telecope
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

phmfit fails after displaying the points that will be used for fitting #18

Closed b1quint closed 7 years ago

b1quint commented 7 years ago
Traceback (most recent call last):
  File "/home/bquint/anaconda2/envs/astroconda/bin/phmfit", line 6, in <module>
    samfp.phmfit.main()
  File "/home/bquint/anaconda2/envs/astroconda/lib/python2.7/site-packages/samfp/phmfit.py", line 56, in main
    n_points=args.npoints, show=args.show_plots)
  File "/home/bquint/anaconda2/envs/astroconda/lib/python2.7/site-packages/samfp/phmfit.py", line 242, in run
    where = np.argmin(np.abs(r[dz_abs_crit][0] - r))
IndexError: boolean index did not match indexed array along dimension 0; dimension is 2496 but corresponding boolean dimension is 2495