8000 Refactor path handling to use pathlib in generate_model_info.py by AntonPetrov · Pull Request #191 · r2dt-bio/R2DT · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Refactor path handling to use pathlib in generate_model_info.py #191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: develop
Choose a base branch
from

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

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

AntonPetrov and others added 4 commits May 1, 2025 12:05
… readability and maintainability

Co-authored-by: Genie <genie@cosine.sh>
…re.py

Co-authored-by: Genie <genie@cosine.sh>
@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
Co-authored-by: Genie <genie@cosine.sh>
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
0