-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renamed ParamsSlopeSolver to ParamsSlopeSolverAbstract
- Loading branch information
1 parent
c33318c
commit 651acf1
Showing
4 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
11 changes: 11 additions & 0 deletions
11
opencsp/common/lib/deflectometry/ParamsSlopeSolverAbstract.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
from abc import ABC | ||
from dataclasses import dataclass | ||
|
||
|
||
@dataclass | ||
class ParamsSlopeSolverAbstract(ABC): | ||
"""Abstract SlopeSolver input parameters class. Contains parameters | ||
common to all surface types. | ||
""" | ||
robust_least_squares: bool | ||
downsample: int |
6 changes: 3 additions & 3 deletions
6
opencsp/common/lib/deflectometry/ParamsSlopeSolverParaboloid.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
from dataclasses import dataclass | ||
|
||
from opencsp.common.lib.deflectometry.ParamsSlopeSolverAbstract import ParamsSlopeSolverAbstract | ||
|
||
|
||
@dataclass | ||
class ParamsSlopeSolverParaboloid: | ||
class ParamsSlopeSolverParaboloid(ParamsSlopeSolverAbstract): | ||
"""SlopeSolver input parameters class for parabolic surface type | ||
""" | ||
initial_focal_lengths_xy: tuple[float, float] | ||
robust_least_squares: bool | ||
downsample: int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
from dataclasses import dataclass | ||
|
||
from opencsp.common.lib.deflectometry.ParamsSlopeSolver import ParamsSlopeSolver | ||
from opencsp.common.lib.deflectometry.ParamsSlopeSolverAbstract import ParamsSlopeSolverAbstract | ||
|
||
|
||
@dataclass | ||
class ParamsSlopeSolverPlano(ParamsSlopeSolver): | ||
class ParamsSlopeSolverPlano(ParamsSlopeSolverAbstract): | ||
"""SlopeSolver input parameters class for plano (perfectly flat) surface type | ||
""" | ||
robust_least_squares: bool | ||
downsample: int |