feat: automatically load example data in pyOpenMS workflow#185
feat: automatically load example data in pyOpenMS workflow#185t0mdavid-m merged 2 commits intoOpenMS:mainfrom
Conversation
WalkthroughThe changes introduce a check for the presence of mzML files in the workspace directory. If no files are found, the function Changes
Sequence Diagram(s)sequenceDiagram
participant U as User
participant F as FileUpload Module
participant D as Workspace Directory
U->>F: Initiate file upload process
F->>D: Check for mzML files existence
alt Files Present
D-->>F: Return list of mzML files
F->>U: Display mzML files in workspace
else No Files Present
D-->>F: Empty list/none
F->>F: Call load_example_mzML_files()
F->>U: Load and display example mzML files
end
Poem
Tip ⚡🧪 Multi-step agentic review comment chat (experimental)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (4)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
t0mdavid-m
left a comment
There was a problem hiding this comment.
Thank you for your contribution! LGTM! Could you remove the "Example Data" tab? Then the PR should be ready to merge.
|
Hello @t0mdavid-m , Thank you! |
This PR resolves issue #184 by ensuring that the pyOpenMS workflow behaves consistently with the TOPP workflow. If no files are present in the workspace's
mzMLdirectory, the system will automatically load example data.Changes Made:
content/file_upload.pyto check for files in the workspace'smzMLdirectory.fileupload.load_example_mzML_files()is invoked to load example data automatically.Summary by CodeRabbit
New Features
Style