[INSTRM-1971] Track the tolerance for certain visit ID Created: 03/May/23  Updated: 14/Jun/23  Resolved: 14/Jun/23

Status: Done
Project: Instrument control development
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: chyan Assignee: chyan
Resolution: Done Votes: 0
Labels: EngRun
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Sprint: Eng12July

 Description   

In the April run, we have changed the convergence tolerance from 10 micron to 5 micron. We need to have a better way to track this.



 Comments   
Comment by arnaud.lefur [ 03/May/23 ]

I definitely agree, number of iterations is currently tracked in pfs_config table (converg_num_iter column), so just add a converg_tolerance column ?

Comment by chyan [ 01/Jun/23 ]

Before the table column is created. We can track with the value using this code.

def findToleranceFromVisit(visit):
    command = f"grep moveToPfsDesign /data/logs/actors/fps/2023-*-*.log | grep {visit}"
    output = subprocess.check_output(command, shell=True, text=True)
    slist_str = str(output)
    pattern = r"\{KEY\(tolerance\)=\[Float\((\d+(\.\d+)?)\)\]\}"
    
    match = re.search(pattern, str(slist_str))

    if match:
        value = float(match.group(1))  # Extract the captured numerical value and convert it to float
        #print(value)
    else:
        print("No match found.")
    
    return value
Comment by arnaud.lefur [ 01/Jun/23 ]

I created the column in spt_operational_database:tickets/INSTRM-1971
fps needs still to be updated to use fill that column in.

Comment by arnaud.lefur [ 14/Jun/23 ]

tagged as :

  • spt_operational_database 0.2.9
  • ics_fpsActor 1.6.10
  • pfs_utils w.2023.24a

  • opdb schema has been updated at the summit using alembic
Generated at Sat Feb 10 16:41:34 JST 2024 using Jira 8.3.4#803005-sha1:1f96e09b3c60279a408a2ae47be3c745f571388b.