Skip to content

Refactor how cubit is initialized and log messaging functionality#141

Merged
isteinbrecher merged 1 commit into
imcs-compsim:mainfrom
isteinbrecher:refactor-init-and-messages
Jun 19, 2026
Merged

Refactor how cubit is initialized and log messaging functionality#141
isteinbrecher merged 1 commit into
imcs-compsim:mainfrom
isteinbrecher:refactor-init-and-messages

Conversation

@isteinbrecher

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR refactors the Cubit wrapper initialization handshake between the host and client processes, and moves Cubit message/log capture into the client via a message handler (with a Python 2 log-file fallback).

Changes:

  • Refactor Cubit initialization so the host sends a single parameters dictionary (including init_arguments) and the client performs cubit.init(...) immediately after receiving it.
  • Remove host-side log-file polling/printing and introduce a client-side message handler to forward messages/errors back to the host (Python 2 uses a log-file fallback).
  • Remove temp_log from global configuration (conf.py) as log handling is no longer managed on the host side.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.

File Description
src/cubitpy/cubit_wrapper/cubit_wrapper_host.py Refactors initialization flow and how init arguments are passed to the client.
src/cubitpy/cubit_wrapper/cubit_wrapper_client.py Implements init-from-parameters, adds message handling, and Python 2 log fallback.
src/cubitpy/conf.py Removes temp_log configuration that is no longer used.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/cubitpy/cubit_wrapper/cubit_wrapper_host.py
Comment thread src/cubitpy/cubit_wrapper/cubit_wrapper_host.py
Comment thread src/cubitpy/cubit_wrapper/cubit_wrapper_client.py
Comment thread src/cubitpy/cubit_wrapper/cubit_wrapper_client.py Outdated
Comment thread src/cubitpy/cubit_wrapper/cubit_wrapper_client.py
Comment thread src/cubitpy/cubit_wrapper/cubit_wrapper_client.py
@isteinbrecher isteinbrecher force-pushed the refactor-init-and-messages branch from 804af61 to 4c6184a Compare June 19, 2026 07:03
@isteinbrecher isteinbrecher merged commit 9e5a5ae into imcs-compsim:main Jun 19, 2026
1 of 2 checks passed
@isteinbrecher isteinbrecher deleted the refactor-init-and-messages branch June 19, 2026 07:03
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