Skip to content

Commit

Permalink
Merge pull request #129 from zivid/improve-infield-on-kb-for-2.6
Browse files Browse the repository at this point in the history
Update samples reading setting from file
  • Loading branch information
SatjaSivcev authored Jan 5, 2022
2 parents 2cdde1d + b7f1584 commit 82a3635
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/camera/advanced/capture_hdr_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ def _main():
camera = app.connect_camera()

for i in range(1, 4):
camera_model = camera.info.model_name
camera_model = camera.info.model
settings_file = (
Path() / get_sample_data_path() / Path("Settings/" + camera_model[0:9] + f"/Settings0{i :01d}.yml")
Path() / get_sample_data_path() / Path("Settings/" + camera_model[0:8] + f"/Settings0{i :01d}.yml")
)
print(f"Configuring settings from file: {settings_file}")
settings = zivid.Settings.load(settings_file)
Expand Down
4 changes: 2 additions & 2 deletions source/camera/basic/capture_with_settings_from_yml.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ def _main():

print("Creating settings from file")

camera_model = camera.info.model_name
settings_file = Path() / get_sample_data_path() / Path("Settings/" + camera_model[0:9] + "/Settings01.yml")
camera_model = camera.info.model
settings_file = Path() / get_sample_data_path() / Path("Settings/" + camera_model[0:8] + "/Settings01.yml")

print(f"Configuring settings from file: {settings_file}")
settings = zivid.Settings.load(settings_file)
Expand Down

0 comments on commit 82a3635

Please sign in to comment.