[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/ |
| Comment by arnaud.lefur [ 14/Jun/23 ] |
|
tagged as :
|