Skip to content
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

Refactor dataset.py to use standard practices. #60

Merged
merged 11 commits into from
Jun 22, 2024
Merged

Conversation

Adibvafa
Copy link
Member

@Adibvafa Adibvafa commented Jun 21, 2024

PR Type

Refactor

Short Description

The dataset.py uses redundant classes, methods, and parameters. This PR will refactor the dataset creation principles used in this repository to be modular and follow standard practices.

Tests Added

Add tests for dataset.py

@Adibvafa Adibvafa self-assigned this Jun 21, 2024
@Adibvafa Adibvafa marked this pull request as draft June 21, 2024 15:55
@Adibvafa Adibvafa requested a review from amrit110 June 21, 2024 15:55
@Adibvafa Adibvafa added the refactor Refactor existing code label Jun 21, 2024
@Adibvafa
Copy link
Member Author

@amrit110
Hey Amrit! Could you take a look at the dataset refactoring and provide your suggestions? The original code is in the bottom of the file and the refactored code is at top.

@amrit110
Copy link
Member

amrit110 commented Jun 21, 2024

Wow just went through it. This is a great piece of refactor @Adibvafa! Kudos.

@Adibvafa Adibvafa marked this pull request as ready for review June 22, 2024 03:04
@Adibvafa
Copy link
Member Author

Thank you @amrit110! I also added tests to make sure the refactor is valid. It's good to merge now, please take a look!

@amrit110 amrit110 merged commit 9b2bbde into main Jun 22, 2024
2 of 4 checks passed
@amrit110 amrit110 deleted the feature/mamba branch June 22, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactor existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants