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

Merge cp4-windows to master branch #41

Open
wants to merge 84 commits into
base: master
Choose a base branch
from
Open

Merge cp4-windows to master branch #41

wants to merge 84 commits into from

Conversation

Tiany1Pan
Copy link

No description provided.

vkhodygo and others added 30 commits April 21, 2021 15:10
start with PEP compliance, add f-strings, new imports, make code shorter/more readable
* variable revision number should go up by 1, it was 2 earlier
* CellProfler Module class has a quirky way to introduce new class attributes via inheritance. This is not a Pythonic method to do things so an IDE should show a warning.
* new version of CellProfiler makes one of the functions redundant, at least partially. The rest of it makes little sense any way.
* wx has been updated, libsubmit has been integrated into Parsl, Rynner has a slightly different project structure
Update README.md for this branch
MYPei and others added 17 commits August 9, 2022 15:56
+ Added function save_remote_pipeline to differentiate from save_pipeline, as alterations cause issues when saving locally.
+ Added option to save local copies of scripts in desired directory
+ Added option to set partition of job
+ Now reverts pipeline URLs after submission attempts to avoid irritating path changes in local pipeline
+ Corrected local and cluster save paths for pipeline batch data
+ Updated cellprofiler bash command to include singularity container preamble
+ Fixed DOS linebreak sanitising steps
+ Added a cluster_run_command function to allow for custom commands and command line arguments when running CellProfiler jobs.
+ Removed pipeline file location adjustments
+ Made adjustments to ClusterView to be able to see runs on cluster
+ Added download button to ClusterView module panel, and directory / subfolder options to fine-tune destination folder.
+ Removed RunStatusWindow popup
+ Added dialogs for download process
+ Moved functionality from RunOnCluster prepare_run function into other functions for ease of testing
+ Added parameterised tests for RunOnCluster
+ Added sanitise_scripts function to account for unneeded semi-colons
+ Some alterations to modules based on  issues brought up in review meeting
+ Updated calls to Rynner and Libsubmit with specific git commit IDs
+ Updated sanitise_scripts to use semicolons as separator, improving reliability
+ Fixed test cases for test_group_images
+ Added cleanup lines to download function to remove temporary files when downloading
+ Included rudimentary testing of ClusterView settings
+ Added to do list with a couple of items
Copy link
Member

@edbennett edbennett left a comment

Choose a reason for hiding this comment

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

@TummyPan Clearly a lot of work has gone into these changes, thank you.

Some more tidying is needed for this to be ready for merge, I think. More details are inline in the attached review. Some issues I've highlighted the first time I saw them but occur across many files, so please be careful to check for all occurrences, not just the ones I've specifically called out.

Some general principles

  • For future PRs, please try to avoid submitting PRs that mix large amounts of stylistic changes with bug fixes and other functionality changes, as the former make it very hard to see the latter
  • Where changes are only stylistic and don't affect functionality, please consult on what the preferred style is before making them (and ideally rely on an auto-formatter to make them)
  • Where functionality is being removed, remove it rather than leaving commented out blocks.
  • Watch out for newlines at the end of files.

.gitignore Outdated Show resolved Hide resolved
CPRynner/CPRynner.py Outdated Show resolved Hide resolved
CPRynner/CPRynner.py Outdated Show resolved Hide resolved
CPRynner/CPRynner.py Outdated Show resolved Hide resolved
CPRynner/CPRynner.py Outdated Show resolved Hide resolved
requirements.txt Outdated Show resolved Hide resolved
requirements.txt Outdated Show resolved Hide resolved
runoncluster.py Outdated Show resolved Hide resolved
runoncluster.py Outdated Show resolved Hide resolved
runoncluster.py Outdated Show resolved Hide resolved
@edbennett
Copy link
Member

For future reference: if you ever need to do a wide-ranging set of code formatting changes in another project, this should be done as a separate pull request from any changes to functionality. Mixing the two makes it very difficult for a reviewer to identify the changes in the PR that are relevant to the review.

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.

4 participants