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

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

Open
BenMoon opened this issue Mar 10, 2021 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@BenMoon
Copy link
Contributor

BenMoon commented Mar 10, 2021

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.

@BenMoon BenMoon added the enhancement New feature or request label Mar 10, 2021
@jokuha
Copy link
Member

jokuha commented Mar 11, 2021

Indeed

  • which should use standard Python tools,
  • be automatically saved and read at program end/start
  • provide a GUI preferences dialog, which also allows to save and store explicit copies of such configurations

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants