Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't pass calibration config-descriptor file via evolver.yml config #234

Open
amitschang opened this issue Dec 17, 2024 · 0 comments
Open
Assignees
Labels
question Further information is requested

Comments

@amitschang
Copy link
Member

I'm not sure if this is actually supposed to work even, but I tried to specify the fitted calibration file to an od sensor via the following config:

  od:
    classinfo: evolver.hardware.standard.od_sensor.ODSensor
    config:
      addr: od_90
      integrations: 500
      calibrator: /calibration_files/default_od90_calibration_config.yml
      name: ODSensor

but I get the following error:

Dec 17 20:51:30 raspberrypi python[856062]: pydantic_core._pydantic_core.ValidationError: 2 validation errors for Config
Dec 17 20:51:30 raspberrypi python[856062]: calibrator.ConfigDescriptor
Dec 17 20:51:30 raspberrypi python[856062]:   Input should be a valid dictionary or object to extract fields from [type=model_attributes_type, input_value='/calibration_file
s/defau..._calibration_config.yml', input_type=str]
Dec 17 20:51:30 raspberrypi python[856062]:     For further information visit https://errors.pydantic.dev/2.7/v/model_attributes_type
Dec 17 20:51:30 raspberrypi python[856062]: calibrator.Config
Dec 17 20:51:30 raspberrypi python[856062]:   Input should be a valid dictionary or object to extract fields from [type=model_attributes_type, input_value='/calibration_file
s/defau..._calibration_config.yml', input_type=str]
Dec 17 20:51:30 raspberrypi python[856062]:     For further information visit https://errors.pydantic.dev/2.7/v/model_attributes_type
Dec 17 20:51:30 raspberrypi python[856062]: ERROR:    Application startup failed. Exiting.
@amitschang amitschang added the question Further information is requested label Dec 17, 2024
@amitschang amitschang assigned amitschang and jamienoss and unassigned amitschang Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants