Skip to content

Conversation

@Reovirus
Copy link
Contributor

  1. CommandFormatter Interface
    Introduced the CommandFormatter interface, encapsulating file operations and validations.​
    Added standard CLI response outputs to enhance user interaction.​
  2. MODES_TO_FILES_PRESET and COMMANDS Configurations (just 2 dicts)
    MODES_TO_FILES_PRESET: format keys with values as lists of possible operation modes (read, write, append).
    COMMANDS: format and mode keys with values as dictionaries containing:
    tool: the tool's presence is verified in the system.
    command: a command formatted for substituting the number of available processors (nproc).
    This structure streamlines adding new formats without altering existing code.​
  3. Binary File Support in CommandFormatter
    Added capabilities for handling binary files.​
    This feature is not currently utilized but provides flexibility for future enhancements.​
  4. Integration with subprocess
    Transitioned to using subprocess for file operations, improving compatibility and performance.​

P.S. The function signatures and responses of auto_open remain unchanged, ensuring backward compatibility. However, the implementation using the CommandFormatter class offers a more convenient and versatile approach, enhancing code maintainability and scalability.​

@Reovirus Reovirus changed the title Refactoring of lib.fileio.auto_open function to work with subprocess Refactoring of lib.fileio.auto_open function to work with subprocess https://github.com/open2c/pairtools/issues/266 Apr 13, 2025
@Reovirus Reovirus changed the title Refactoring of lib.fileio.auto_open function to work with subprocess https://github.com/open2c/pairtools/issues/266 Refactoring of lib.fileio.auto_open function to work with subprocess [266](https://github.com/open2c/pairtools/issues/266) Apr 13, 2025
@Reovirus Reovirus changed the title Refactoring of lib.fileio.auto_open function to work with subprocess [266](https://github.com/open2c/pairtools/issues/266) ​Here's a formatted summary of the pull request titled "Refactoring of lib.fileio.auto_open function to work with subprocess" (#266): Apr 13, 2025
@Reovirus Reovirus changed the title ​Here's a formatted summary of the pull request titled "Refactoring of lib.fileio.auto_open function to work with subprocess" (#266): Refactoring of lib.fileio.auto_open function to work with subprocess (#266) Apr 13, 2025
Reovirus and others added 4 commits April 17, 2025 21:16
Copy link
Member

@agalitsyna agalitsyna left a comment

Choose a reason for hiding this comment

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

Comments from 26 May 2025 Open2C meeting. @golobor @agalitsyna @Phlya

@agalitsyna agalitsyna changed the base branch from master to _remove_pipes_266 June 16, 2025 19:37
@agalitsyna agalitsyna changed the base branch from _remove_pipes_266 to master June 16, 2025 19:37
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Copy link
Member

@agalitsyna agalitsyna left a comment

Choose a reason for hiding this comment

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

Checked backwards compatibility on (1) sample distiller-nf, (2) tests, (3) example notebooks.

@agalitsyna agalitsyna merged commit f896311 into open2c:master Jun 19, 2025
5 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.

3 participants