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

Add CI for peptides and clean-up folder structure #14

Merged
merged 27 commits into from
Mar 8, 2024

Conversation

pm-blanco
Copy link
Collaborator

Fixes #3 and #8. List of changes:

  • Merge all the case-specific scripts for peptides into one single script samples/Beyer2024/peptide.py
  • Create a script to reproduce the data of our preprint samples/Beyer2024/create_paper_data.py
  • Add a README file to explain how to reproduce the data from our preprint with these scripts
  • Substitute the CI test by a CI test that checks that the above scripts still reproduce selected data points of all peptide cases.
  • Clean-up the repository structure

@jngrad I would appreciate your opinion in the framework for the CI test and to reproduce the data of the paper. If you think is sensible, we could use it as template for the tests for globular proteins and polyelectrolytes in dialysis.

@pm-blanco pm-blanco requested a review from jngrad March 5, 2024 18:58
pm-blanco and others added 4 commits March 7, 2024 16:35
Run the testsuite with `make tests`, now that target `tests` is free.
Write temporary files in a temporary folder instead of the git root
folder when running the testsuite. Avoid tqdm progress bars when the
loop body calls a function that uses a progress bar. Use f-strings.
Avoid use of unsafe os.system(f"rm {time_series_folder_path}/*"),
and prefer the more interoperable subprocess.check_output() instead,
which also checks for error codes and automatically escapes strings.
Fix typos and remove trailing whitespace characters.
Copy link
Member

@jngrad jngrad left a comment

Choose a reason for hiding this comment

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

Overall looks good to me. The tree structure still looks a bit weird, but this can be dealt with later as part of #13. The subprocess calls refactoring can also be dealt with in a separate PR.

samples/Beyer2024/create_paper_data.py Show resolved Hide resolved
@pm-blanco pm-blanco merged commit cfc25cc into main Mar 8, 2024
2 checks passed
@pm-blanco pm-blanco deleted the 33-create-folder-paper branch March 8, 2024 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a folder with all scripts to reproduce the data in our paper
2 participants