Skip to content

Commit

Permalink
Update samples reading setting from file
Browse files Browse the repository at this point in the history
Update samples that read settings from sample data,
because settings folder name have changed,
e.g. "Zivid One" to "zividOne".
  • Loading branch information
SatjaSivcev committed Jan 5, 2022
1 parent 2cdde1d commit b7f1584
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 b7f1584

Please sign in to comment.