Skip to content

Commit

Permalink
FIX: motor resolution and grid
Browse files Browse the repository at this point in the history
  • Loading branch information
maffettone committed Dec 13, 2023
1 parent bc14428 commit 6990453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pdf_agents/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(
*args,
motor_names: List[str] = ["xstage", "ystage"],
motor_origins: List[float] = [0.0, 0.0],
motor_resolution: float = 0.0002,
motor_resolution: float = 0.2, # mm
data_key: str = "chi_I",
roi_key: str = "chi_Q",
roi: Optional[Tuple] = None,
Expand Down
2 changes: 1 addition & 1 deletion pdf_agents/sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ def _sample_uncertainty_proxy(self, batch_size=1):
return pick_from_distribution(_x, uwx, num_picks=batch_size), centers
else:
# assume a 2d scan, use a linear model to predict the uncertainty
grid = make_wafer_grid_list(*self.bounds, step=self.motor_resolution)
grid = make_wafer_grid_list(*self.bounds.ravel(), step=self.motor_resolution)
uncertainty_preds = LinearRegression().fit(sorted_independents, min_landscape).predict(grid)
top_indicies = np.argsort(uncertainty_preds)[-batch_size:]
return grid[top_indicies], centers
Expand Down

0 comments on commit 6990453

Please sign in to comment.