Skip to content

Commit

Permalink
Renamed ParamsSlopeSolver to ParamsSlopeSolverAbstract
Browse files Browse the repository at this point in the history
  • Loading branch information
braden6521 committed Mar 19, 2024
1 parent c33318c commit 651acf1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
5 changes: 0 additions & 5 deletions opencsp/common/lib/deflectometry/ParamsSlopeSolver.py

This file was deleted.

11 changes: 11 additions & 0 deletions opencsp/common/lib/deflectometry/ParamsSlopeSolverAbstract.py
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
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
6 changes: 2 additions & 4 deletions opencsp/common/lib/deflectometry/ParamsSlopeSolverPlano.py
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

0 comments on commit 651acf1

Please sign in to comment.