Skip to content

Commit

Permalink
hist range
Browse files Browse the repository at this point in the history
  • Loading branch information
msdos committed Jun 26, 2020
1 parent 8fcfa3f commit cf1fe1b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions bin/detect_and_match_moving_positioners
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,6 @@ ypix1=ypix1[indices_1]
xpix2=xpix2[indices_2]
ypix2=ypix2[indices_2]



# adjust a possible transfo between the two FVC images
corr=SimpleCorr()
corr.fit(xpix2,ypix2,xpix1,ypix1)
Expand All @@ -105,7 +103,7 @@ xfp2,yfp2=fvc2fp.fvc2fp(xpix2,ypix2)
dxfp=xfp2-xfp1
dyfp=yfp2-yfp1
distfp=np.sqrt(dxfp**2+dyfp**2)

# selection of moving positioners
detected=(distfp>args.min_move_mm)&(distfp<args.max_move_mm)

Expand Down Expand Up @@ -219,7 +217,7 @@ if args.plot :
name="histo-{}".format(os.path.basename(args.outfile).split(".")[0])

plt.figure(name)
plt.hist(distfp,bins=100)
plt.hist(distfp[distfp<1.],bins=100)
plt.xlabel("dist (mm)")
plt.axvline(args.min_move_mm)
plt.axvline(args.max_move_mm)
Expand Down

0 comments on commit cf1fe1b

Please sign in to comment.