sunjerry019 / nanosquared

Open Source M-Squared Measurement Automation using Dataray WinCamD and Ophir NanoScan. WinCamD and NanoScan code may be used independently
GNU General Public License v3.0
6 stars 1 forks source link

Finding of the Rayleigh Length automatically #22

Closed sunjerry019 closed 2 years ago

sunjerry019 commented 2 years ago

This PR should implement the finding of the rayleigh length automatically.

sunjerry019 commented 2 years ago

take_measurements should now work with x and y center

sunjerry019 commented 2 years ago

Automatic finding of the rayleigh length works now using the ITP method. There are still some things to be done, but I think it makes sense to merge it first and focus on the GUI.

Last successful run:

LA4148-C lens with f = 50mm 
Startup                     :  1 m 45 s
Measurement(precision = 10) : 12 m 56 s

Todo

  1. Implement finding_zr the other direction
    • Currently it only allows the lens to be on one end of the stage and not the other
  2. Implement a proper bounding when using find_zR for both axes
    • Instead of running the ITP method with the same bounds for both axes, use the information obtained from measuring one axis to adjust the bound for the ITP Method
  3. Implement timing the operation (Startup and measurement)
  4. Implement a way of breaking a current operation
    • Currently pressing Ctrl+C will cause the entire thing to exit uncleanly
    • This results in the NanoScan software continuing in the background
  5. Add AXES.BOTH support to M.fit_data()
  6. Instruction for adding in metadata for the GUI
    • For example lens used
  7. Check the fitted z_R and see if it matches that found