Skip to content

Improved var_aggregator.py using a dummy communicator#45

Open
spiani wants to merge 1 commit into
mainfrom
serial_var_aggregator
Open

Improved var_aggregator.py using a dummy communicator#45
spiani wants to merge 1 commit into
mainfrom
serial_var_aggregator

Conversation

@spiani

@spiani spiani commented Jun 19, 2026

Copy link
Copy Markdown
Collaborator

Added the possibility to run the var_aggregator.py script in serial mode, without importing and using MPI.
This commit also replaces the print calls with a logging mechanism and makes the argparse more robust by specifying types and using path instead of strings.

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 updates var_aggregator.py to support serial execution without requiring MPI, switches console output from print to logging, and tightens CLI argument parsing by using typed pathlib.Path arguments.

Changes:

  • Add a serial mode using a dummy communicator when --serial is set (avoids importing/using MPI).
  • Replace print calls with a logger-based output approach.
  • Make argparse more robust by using typed path validators (existing_dir_path, existing_file_path, etc.).

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

Comment thread var_aggregator.py
Comment thread var_aggregator.py Outdated
Comment thread var_aggregator.py Outdated
Comment thread var_aggregator.py Outdated
Comment thread var_aggregator.py Outdated
Comment thread var_aggregator.py Outdated
Comment thread var_aggregator.py Outdated
Comment thread var_aggregator.py
Comment thread var_aggregator.py
@spiani spiani force-pushed the serial_var_aggregator branch from 1131581 to bd352fb Compare June 19, 2026 16:24
Added the possibility to run the var_aggregator.py script in
serial mode, without importing and using MPI.
This commit also replaces the print calls with a logging mechanism
and makes the argparse more robust by specifying types and using
path instead of strings.

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 4 comments.

Comment thread var_aggregator.py
Comment thread var_aggregator.py
Comment thread var_aggregator.py
Comment thread var_aggregator.py
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