Skip to content

Conversation

@avinxshKD
Copy link

Fixes #238

The write() function was missing a return statement after the ZMQ send path, causing execution to fall through into the file-based write logic. This led to redundant file operations after every ZMQ write.

Added return to match the pattern already used in read()

- safe_literal_eval now reads and parses file content instead of always returning default
- load_params populates the params map from concore.params file
- read() parses list data, extracts simtime from first element, returns rest
- Added initval() to parse simtime string and extract data portion
- Fixed naming to match codebase style (no underscores in function names)

Fixes ControlCore-Project#224
@avinxshKD avinxshKD force-pushed the fix-zmq-write-return branch from e3a88c9 to 44e876e Compare February 10, 2026 10:02
@avinxshKD avinxshKD closed this Feb 10, 2026
@avinxshKD avinxshKD deleted the fix-zmq-write-return branch February 10, 2026 10:06
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.

1 participant