Commit 36663cd0 authored by Vacaliuc, Bogdan's avatar Vacaliuc, Bogdan
Browse files

add prompt 3 to distribute flying scan technique

parent 20c04b0e
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -218,7 +218,7 @@ You are working in the tasking project, bl4b-alignment-integration branch. The c

### Prompt 2.1 - 2.3

I ran caget BL4B:Det:N1:Det1:XY:Stat:ComputeProfiles_RBV and the value was 'Yes'. Would you like to confirm that the ProfileAverageX_RBV is mean? I believe that it is mean, but lets check. I have a question on "FittingIOC.py:295 (Data:Y write handler)": how would you update it? It doubles for the purely scalar scans which are done point-per-point. Is the np.sqrt(value) not correct in these cases?
> I ran caget BL4B:Det:N1:Det1:XY:Stat:ComputeProfiles_RBV and the value was 'Yes'. Would you like to confirm that the ProfileAverageX_RBV is mean? I believe that it is mean, but lets check. I have a question on "FittingIOC.py:295 (Data:Y write handler)": how would you update it? It doubles for the purely scalar scans which are done point-per-point. Is the np.sqrt(value) not correct in these cases?

```
FittingIOC.py:295 — is np.sqrt(value) correct for scalar scans?                                                                                   
@@ -308,7 +308,7 @@ FittingIOC.py:295 — is np.sqrt(value) correct for scalar scans?
  Shall I go ahead and stage those edits, or do you want to run the caget verification first?                                                       
```

Regarding confirming ProfileAverageX_RBV, the output of your script is:
> Regarding confirming ProfileAverageX_RBV, the output of your script is:

```
len(avgX) = 256   expected 256 if per-column
@@ -319,9 +319,12 @@ close to 304*avg : True
close to avg     : False
```

I guess that confirms the 'mean' behavior.

Thank you for elucidating the 'WriteDataToPV in Jython', this will be a good project for later, I agree. Let us proceed with Tier A with option B as you suggest. Please write an actionable plan for Option C.
> I guess that confirms the 'mean' behavior.
> 
> Thank you for elucidating the 'WriteDataToPV in Jython', this will be a good project for later, I agree. Let us proceed with Tier A with option B as you suggest. Please write an actionable plan for Option C.

Claude updated the code in [scantools:issue/4850](https://code.ornl.gov/idac/cs/common/scantools/-/tree/issue/4850) and made the plan for Option C in [option-c-error-propagation.md](option-c-error-propagation.md).

## Prompt 3 

You are working in the tasking project, bl4b-alignment-integration branch. The code uses the Experimental Physics Industrial Control System (EPICS) as its basis. Inspect bl4b-scripts; it is currently on the ScriptScan/2026A branch. Read the file bl4b-scripts/flying_z.py - it is a recent example of a very efficient way to opitimize the position of BL4B:Mot:hs. Read the file bl4b-scripts/CHI_scan.py. Please make a plan to synthesize a new file bl4b-scripts/flying_chi.py that performs the function of CHI_scan.py using the efficient camonitor callback and timestamp correlation technique in flying_z.py. You may freely inspect the git log of all code repositories as you need to develop your understanding of the scan system, including modifications to the existing functions as that may be informative towards the types of parameterizations that are needed. If you need a tool to analyze the code or artifacts, please ask me to fetch it for you. If you run into an issue where you need sudo, ask me to execute the line in a separate terminal.