Skip to content

Conversation

@FedericoMusa
Copy link
Contributor

Hi Jan! I've implemented the simulator startup 'armouring' and updated the documentation following the 3.x path.

Fail-Fast Logic: The simulator now checks for --json_file existence and exits with a FATAL error if missing.*

3.x Docs: Detailed the command line parameters in doc/source/library/simulator/config.rst.*

CI Ready: Verified that imports are top-level and compliant with Pylint.*

Ready for merge!

@FedericoMusa FedericoMusa force-pushed the fix/simulator-armouring-and-3x-docs branch from 9d52575 to 5bb6639 Compare February 11, 2026 22:36
if not os.path.exists(args.json_file):
# Configuramos un log básico para asegurar que el error fatal sea visible
pymodbus_apply_logging_config("ERROR")
Log.error(f"FATAL: Configuration file '{args.json_file}' not found.")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make that one log call, instead of 3,since it is only 1 error.

sys.exit(1)
return cmd_args


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

General coding style is 2 empty lines between methods.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Jan, closing this PR in favor of #2877 to avoid duplication. I have consolidated all recent style and logic fixes in the other branch. Sorry for the confusion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants