Skip to content

Remove merge_ts#79

Merged
lispandfound merged 3 commits intopegasusfrom
remove_merge_ts
Jan 6, 2026
Merged

Remove merge_ts#79
lispandfound merged 3 commits intopegasusfrom
remove_merge_ts

Conversation

@claudio525
Copy link
Contributor

No description provided.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @claudio525, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request systematically removes the merge_ts functionality from the project. This comprehensive cleanup involves deleting the core Python script and its Cython-optimized loop, updating project build configurations to reflect the removal, and eliminating all related documentation and workflow stage definitions. The change streamlines the codebase by removing a component that is no longer needed or has been superseded, though the specific reason for its deprecation is not explicitly stated in the provided context.

Highlights

  • Core Functionality Removal: The primary merge_ts script, responsible for merging EMOD3D timeslices, along with its underlying Cython-optimized merge_ts_loop component, has been completely removed from the project.
  • Build Configuration Cleanup: The pyproject.toml file has been updated to remove the merge-ts entry point, and the entire setup.py file, which handled Cython compilation for merge_ts_loop, has been deleted.
  • Documentation and Workflow Updates: All documentation related to 'Merge Timeslices' in wiki/Stages.md has been removed, and the MergeTimeslices entry has been eliminated from the workflow components table in workflow/__init__.py and the StageIdentifier enum in workflow/scripts/plan_workflow.py.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request aims to remove the merge_ts functionality. The changes are mostly correct, removing the script, its Cython helper, documentation, and project configuration entries. However, I've found a critical issue in workflow/scripts/plan_workflow.py where references to the removed StageIdentifier.MergeTimeslices enum still exist, which will lead to runtime errors. I've left a specific comment on this. Additionally, it appears that the template files workflow/templates/hypocentre/merge_ts.cylc and workflow/templates/nesi/merge_ts.cylc are now unused and should also be removed to complete the cleanup.

Copy link
Contributor

Copilot AI left a comment

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 removes the "merge_ts" (Merge Timeslices) functionality from the workflow system. The merge_ts stage was used to merge output timeslice files from EMOD3D simulations. The removal includes deleting the Python implementation, Cython optimization code, CLI entry points, and associated documentation.

Key changes:

  • Removed the MergeTimeslices stage identifier from the workflow planning system
  • Deleted the merge_ts Python module and Cython loop implementation
  • Removed CLI entry point and build configuration for the merge-ts command
  • Updated documentation to remove references to the Merge Timeslices stage

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
workflow/scripts/plan_workflow.py Removed MergeTimeslices enum value from StageIdentifier class
workflow/scripts/merge_ts_loop.pyx Deleted Cython implementation for efficient file descriptor merging
workflow/scripts/merge_ts.py Deleted Python module containing merge_ts CLI with XYTS and HDF5 merge functions
workflow/__init__.py Removed "Merge Timeslices" entry from the workflow stages documentation table
wiki/Stages.md Removed complete documentation section for the Merge Timeslices stage
setup.py Deleted setup.py file that was used to build the Cython extension
pyproject.toml Removed merge-ts CLI entry point from project scripts

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

Copy link
Contributor

@lispandfound lispandfound left a comment

Choose a reason for hiding this comment

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

Also delete the templates folder in the workflow package.

Copy link
Contributor

Choose a reason for hiding this comment

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

You also need to remove the cython requirement at the top of the pyproject.toml file. This is added to build merge-ts but is no longer needed.

@lispandfound lispandfound merged commit d761351 into pegasus Jan 6, 2026
7 checks passed
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.

4 participants