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

Commit

Permalink
some fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Samartsev committed Jan 19, 2024
1 parent 3ddcf77 commit 0672060
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pymepix/pymepix_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(self,
int(cfg.default_cfg.get('timepix').get('tpx_port', 50000))),
udp_ip_port=(cfg.default_cfg['timepix']['udp_ip'], cfg.default_cfg['timepix']['udp_port']),
pc_ip = cfg.default_cfg['timepix']['pc_ip'],
api_address=(cfg.default_cfg['api_channel']['ip'],
api_channel_address=(cfg.default_cfg['api_channel']['ip'],
cfg.default_cfg['api_channel']['port']),

pipeline_class=PixelPipeline,
Expand All @@ -105,8 +105,9 @@ def __init__(self,
Logger.__init__(self, "Pymepix")

self._channel = Data_Channel()
self.chanAddress = api_channel_address
self._channel.start()
self._channel.register(f'tcp://{api_address[0]}:{api_address[1]}')
self._channel.register(f'tcp://{api_channel_address[0]}:{api_channel_address[1]}')

self.camera_generation = camera_generation

Expand Down Expand Up @@ -287,7 +288,6 @@ def numDevices(self):

@property
def chanAddress(self):
"""Bias voltage in volts"""
return self._channel_address

@chanAddress.setter
Expand Down

0 comments on commit 0672060

Please sign in to comment.