Skip to content
Snippets Groups Projects
Commit 6dc625ff authored by Stefano Di Frischia's avatar Stefano Di Frischia
Browse files

L2SS-820: capitalise class variables

parent 1c81e705
No related branches found
No related tags found
1 merge request!367Resolve L2SS-820 "Capitalise class variables"
...@@ -140,7 +140,7 @@ class Beamlet(opcua_device): ...@@ -140,7 +140,7 @@ class Beamlet(opcua_device):
# cint16[N_PN][N_POL_BF][A_PN][N_POL][N_BEAMLETS_CTRL] # cint16[N_PN][N_POL_BF][A_PN][N_POL][N_BEAMLETS_CTRL]
# Full Jones matrix of BF weights. # Full Jones matrix of BF weights.
FPGA_bf_weights_xx_xy_yx_yy_R = attribute_wrapper(comms_annotation=["FPGA_bf_weights_xx_xy_yx_yy_R"], datatype=numpy.uint32, dims=(N_POL_BF * A_PN * N_pol * N_BEAMLETS_CTRL, N_PN)) FPGA_bf_weights_xx_xy_yx_yy_R = attribute_wrapper(comms_annotation=["FPGA_bf_weights_xx_xy_yx_yy_R"], datatype=numpy.uint32, dims=(N_POL_BF * A_PN * N_POL * N_BEAMLETS_CTRL, N_PN))
FPGA_bf_weights_xx_xy_yx_yy_RW = attribute_wrapper(comms_annotation=["FPGA_bf_weights_xx_xy_yx_yy_RW"], datatype=numpy.uint32, dims=(N_POL_BF * A_PN * N_POL * N_BEAMLETS_CTRL, N_PN), access=AttrWriteType.READ_WRITE) FPGA_bf_weights_xx_xy_yx_yy_RW = attribute_wrapper(comms_annotation=["FPGA_bf_weights_xx_xy_yx_yy_RW"], datatype=numpy.uint32, dims=(N_POL_BF * A_PN * N_POL * N_BEAMLETS_CTRL, N_PN), access=AttrWriteType.READ_WRITE)
# cint16[N_PN][A_PN][N_BEAMLETS_CTRL] # cint16[N_PN][A_PN][N_BEAMLETS_CTRL]
......
...@@ -61,7 +61,7 @@ class TestTCPReplicator(base.TestCase): ...@@ -61,7 +61,7 @@ class TestTCPReplicator(base.TestCase):
"""Validate option parsing""" """Validate option parsing"""
# Perform string copy of current tcp_bind value # Perform string copy of current tcp_bind value
t_tcp_bind = str(TCPReplicator._default_options['tcp_bind']) t_tcp_bind = str(TCPReplicator._DEFAULT_OPTIONS['tcp_bind'])
test_options = { test_options = {
"random": 12346, # I should be ignored "random": 12346, # I should be ignored
...@@ -72,7 +72,7 @@ class TestTCPReplicator(base.TestCase): ...@@ -72,7 +72,7 @@ class TestTCPReplicator(base.TestCase):
self.assertTrue(replicator.is_alive()) self.assertTrue(replicator.is_alive())
# Ensure replicator initialization does not modify static variable # Ensure replicator initialization does not modify static variable
self.assertEqual(t_tcp_bind, TCPReplicator._default_options['tcp_bind']) self.assertEqual(t_tcp_bind, TCPReplicator._DEFAULT_OPTIONS['tcp_bind'])
# Ensure options are correctly updated upon initialization # Ensure options are correctly updated upon initialization
self.assertEqual(test_options['tcp_bind'], replicator.options['tcp_bind']) self.assertEqual(test_options['tcp_bind'], replicator.options['tcp_bind'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment