Skip to content

Conversation

@AntonPetrov
Copy link
Member

This pull request updates the generate_model_info.py file to replace the use of the os module with pathlib for path manipulations. The changes include:

  • Replaced os.path.join with the / operator from pathlib for constructing paths.
  • Used Path.glob for pattern matching instead of glob.glob.
  • Updated file opening methods to use Path.open() instead of the built-in open() function.

These changes improve the readability and maintainability of the code by utilizing the more modern pathlib library for path operations.


This pull request was co-created with Cosine Genie

Original Task: R2DT/vyy62m895ohk
Author: Anton Petrov

@github-actions
Copy link

github-actions bot commented May 1, 2025

Docker image tag(s) pushed:

rnacentral/r2dt:pr-191

Labels added to images:

org.opencontainers.image.created=2025-05-01T18:07:15.580Z
org.opencontainers.image.description=Visualise RNA secondary structure in consistent, reproducible and recognisable layouts
org.opencontainers.image.licenses=Apache-2.0
org.opencontainers.image.revision=e1856ba6b6bf9676e4781e4d5122a918b9ba2f54
org.opencontainers.image.source=https://github.com/r2dt-bio/R2DT
org.opencontainers.image.title=R2DT
org.opencontainers.image.url=https://github.com/r2dt-bio/R2DT
org.opencontainers.image.version=pr-191

@cosineai cosineai bot changed the base branch from main to develop May 1, 2025 18:09
@cosineai cosineai bot force-pushed the cosine/refactor/use-pathlib-u470z3 branch from 0dddf74 to b7e0824 Compare May 1, 2025 18:18
@cosineai cosineai bot force-pushed the cosine/refactor/use-pathlib-u470z3 branch from b7e0824 to 895ff53 Compare May 1, 2025 18:35
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