We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the DBHandler class there is the config_db method
DBHandler
config_db
dnp3-python/src/dnp3_python/dnp3station/station_utils.py
Line 402 in 7d0d314
which in full reads:
@staticmethod def config_db(stack_config): db = {} for number, gv_name in zip([stack_config.dbConfig.sizes.numBinary, stack_config.dbConfig.sizes.numBinaryOutputStatus, stack_config.dbConfig.sizes.numAnalog, stack_config.dbConfig.sizes.numAnalogOutputStatus], ["Analog", "AnalogOutputStatus", "Binary", "BinaryOutputStatus"]): val_body = dict((n, None) for n in range(number)) db[gv_name] = val_body return db
I wonder how this actually works given that the order of the first list in the zip call does not seem to be the same as the one of the second list.
The text was updated successfully, but these errors were encountered:
In the DBHandler class there is the config_db method dnp3-python/src/dnp3_python/dnp3station/station_utils.py Line 402 in 7d0d314 def config_db(stack_config): which in full reads: @staticmethod def config_db(stack_config): db = {} for number, gv_name in zip([stack_config.dbConfig.sizes.numBinary, stack_config.dbConfig.sizes.numBinaryOutputStatus, stack_config.dbConfig.sizes.numAnalog, stack_config.dbConfig.sizes.numAnalogOutputStatus], ["Analog", "AnalogOutputStatus", "Binary", "BinaryOutputStatus"]): val_body = dict((n, None) for n in range(number)) db[gv_name] = val_body return db I wonder how this actually works given that the order of the first list in the zip call does not seem to be the same as the one of the second list.
Thanks for bringing up the issue. Please see #49 for the fix.
Sorry, something went wrong.
kefeimo
No branches or pull requests
In the
DBHandler
class there is theconfig_db
methoddnp3-python/src/dnp3_python/dnp3station/station_utils.py
Line 402 in 7d0d314
which in full reads:
I wonder how this actually works given that the order of the first list in the zip call does not seem to be the same as the one of the second list.
The text was updated successfully, but these errors were encountered: