updating to new pydantic requirements for values
This commit is contained in:
@ -25,7 +25,7 @@ class ServiceListener(Consumer):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
logging.info('Starting Solver Service: Tokyo Drift (v1.3.1)...')
|
logging.info('Starting Solver Service: That Was Rash (v1.4.0)...')
|
||||||
|
|
||||||
# ToDo: Figure out a much better way of doing this.
|
# ToDo: Figure out a much better way of doing this.
|
||||||
# LocalStack wants 'endpoint_url', while prod doesnt :(
|
# LocalStack wants 'endpoint_url', while prod doesnt :(
|
||||||
|
@ -3,10 +3,10 @@ from typing import List, Optional, Dict
|
|||||||
|
|
||||||
|
|
||||||
class AdvancedOptions(BaseModel):
|
class AdvancedOptions(BaseModel):
|
||||||
linearity_check: Optional[bool]
|
linearity_check: Optional[bool] = None
|
||||||
show_progress: Optional[bool]
|
show_progress: Optional[bool] = None
|
||||||
max_solution_time: Optional[int]
|
max_solution_time: Optional[int] = None
|
||||||
brand_bound_tolerance: Optional[float]
|
brand_bound_tolerance: Optional[float] = None
|
||||||
max_forms: Optional[int]
|
max_forms: Optional[int] = None
|
||||||
precision: Optional[float]
|
precision: Optional[float] = None
|
||||||
extra_param_range: Optional[List[Dict]]
|
extra_param_range: Optional[List[Dict]] = None
|
||||||
|
@ -8,9 +8,9 @@ from lib.irt.item_information_function import ItemInformationFunction
|
|||||||
|
|
||||||
class Item(BaseModel):
|
class Item(BaseModel):
|
||||||
id: int
|
id: int
|
||||||
position: Optional[int]
|
position: Optional[int] = None
|
||||||
passage_id: Optional[int]
|
passage_id: Optional[int] = None
|
||||||
workflow_state: Optional[str]
|
workflow_state: Optional[str] = None
|
||||||
attributes: List[Attribute]
|
attributes: List[Attribute]
|
||||||
b_param: float = 0.00
|
b_param: float = 0.00
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ from typing import Optional
|
|||||||
class Target(BaseModel):
|
class Target(BaseModel):
|
||||||
theta: float
|
theta: float
|
||||||
value: float
|
value: float
|
||||||
result: Optional[float]
|
result: Optional[float] = None
|
||||||
drift: float = 0.0
|
drift: float = 0.0
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
Reference in New Issue
Block a user