Skip to content
This repository was archived by the owner on Mar 25, 2024. It is now read-only.
This repository was archived by the owner on Mar 25, 2024. It is now read-only.

Add configuration file for different camera IPs and possible settings #6

@BenMoon

Description

@BenMoon

It would be good to have a config file where the camera IP and possibly some other parameters could be defined.
Here's a proposal:

pymepix/etc/default.yaml

This file should keep the settings crucial to establish a connection between the computer and camera and set it up.

pc_ip = 192.168.1.1
tpx_ip = 192.168.1.10
sophy_config = 'path_to_sophy_config'

pymepix/etc/auto_save.yaml

This file should record the last used settings for a specific camera.
camera_name = 'W0006_H05'
    coarse_bias = 50
    fine_bias = 5
    threshold = 120
    sophy_config = 'pymepix/etc/H05.spx'
camera_name = 'W0006_I06'
    coarse_bias = 50
    fine_bias = 7
    threshold = 150
    sophy_config = 'pymepix/etc/I06.spx'

If settings in pymepix/etc/default.yaml contradict settings in pymepix/etc/auto_save.yaml user should be asked which one to load.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions