Skip to content

Fix the documentation issue #174#191

Closed
Imama-Kainat wants to merge 21 commits intoOpenMS:mainfrom
Imama-Kainat:fix-docs-aligned
Closed

Fix the documentation issue #174#191
Imama-Kainat wants to merge 21 commits intoOpenMS:mainfrom
Imama-Kainat:fix-docs-aligned

Conversation

@Imama-Kainat
Copy link

@Imama-Kainat Imama-Kainat commented Mar 19, 2025

#174
I reviewed all relevant files and made necessary changes to ensure the documentation aligns with the actual file structure. While verifying the TOPP Workflow Developer Guide, I found some problems mentioned in issue thread.

🔹 Key Changes:

Verified all files and made minor improvements to align them with the documentation.
Did not find major errors—the documentation is generally well-structured and aligns with the implementation.
Reviewed the session maintenance and parameter-saving approach – it's well-implemented using JSON and executed efficiently.
Suggested improving the README to provide more details, making it easier for beginners to contribute, especially in a Streamlit-based application.

🔹 The documentation is good overall, but adding more details would help beginners understand the workflow and contribute more effectively:)

Let me know if you need any additional changes! 😊

Summary by CodeRabbit

  • Documentation
    • Enhanced the user guide with clearer instructions on workspace access for both online and local modes.
    • Updated build and configuration guidance with revised paths and improved clarity.
    • Refined workflow documentation to better illustrate modular setup and file management, including updates on important members and file upload processes.
    • Improved the readability of steps for creating the Windows executable, ensuring smoother navigation through the installation process.

- The documentation mentions openms.ico as the app icon for the Windows executable.
- However, the existing openms.ico in the �ssets folder contained the old logo.
- Replaced openms.ico with an updated version matching openms_transparent_bg_logo.svg to maintain consistency with the documentation.

This ensures the Windows executable uses the latest logo while keeping the .ico format for compatibility
@coderabbitai
Copy link

coderabbitai bot commented Mar 19, 2025

Walkthrough

The changes improve documentation clarity and code readability across several files. The user guide now clearly distinguishes between Online and Local Modes for workspace access. File paths in build documentation have been updated, and workflow documentation has been expanded with refined instructions and a new Workflow member. Additionally, minor code adjustments in the main application file include explicit imports for JSON handling and additional whitespace for readability.

Changes

File(s) Change Summary
docs/user_guide.md, docs/win_exe_with_pyinstaller.md Restructured workspace access details with explicit labels for Online and Local Modes; added a blank line in the PyInstaller doc to improve readability.
docs/build_app.md Updated file paths in documentation from src/common.py to src/common/common.py for referencing template modifications.
docs/toppframework.py Clarified workflow setup instructions with expanded details on editing files in src/workflow and refined the file upload process; added a new member self.file_manager in the Workflow class documentation.
app.py Added import statements for the json module and an extra blank line to enhance code readability, while preserving the existing logic for checking and loading settings into st.session_state.

Poem

I'm a bunny with a joyful hop,
Watching documentation rise to the top.
Paths aligned and code so neat,
Every line makes my whiskers tweet!
With each change, my heart feels light—
A rabbit's cheer in plain sight!


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 86846e7 and 64ea787.

📒 Files selected for processing (1)
  • docs/toppframework.py (3 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/toppframework.py

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
docs/user_guide.md (1)

27-30: Format and clarity improvements for workspace access section.

The changes improve clarity about workspace behavior in different modes and enhance readability with proper formatting.

There's a double punctuation issue in line 30. Consider fixing:

-    - The workspace directory can be specified in `settings.json`.  
-    - Defaults to `..` (parent directory).
+    - The workspace directory can be specified in `settings.json`.  
+    - Defaults to `../` (parent directory).
🧰 Tools
🪛 LanguageTool

[typographical] ~30-~30: Two consecutive dots
Context: ...in settings.json. - Defaults to .. (parent directory). ## Downloading Re...

(DOUBLE_PUNCTUATION)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 81d599e and 781d369.

⛔ Files ignored due to path filters (1)
  • assets/openms.ico is excluded by !**/*.ico
📒 Files selected for processing (4)
  • app.py (1 hunks)
  • docs/toppframework.py (1 hunks)
  • docs/user_guide.md (1 hunks)
  • docs/win_exe_with_pyinstaller.md (1 hunks)
🧰 Additional context used
🪛 Ruff (0.8.2)
app.py

3-3: src.common.common.captcha_control imported but unused

Remove unused import: src.common.common.captcha_control

(F401)


7-7: pyopenms imported but unused

Remove unused import: pyopenms

(F401)

🪛 LanguageTool
docs/user_guide.md

[typographical] ~30-~30: Two consecutive dots
Context: ...in settings.json. - Defaults to .. (parent directory). ## Downloading Re...

(DOUBLE_PUNCTUATION)

🔇 Additional comments (3)
docs/toppframework.py (1)

39-39: Documentation updated to reflect the five important members.

The documentation now correctly specifies that the Workflow class contains five important members rather than four, which accurately reflects the class implementation.

docs/win_exe_with_pyinstaller.md (1)

26-28: Good addition of environment verification step.

Adding verification of the Python environment before installing PyInstaller is a useful improvement that will help users ensure they're using the correct environment, preventing common setup issues.

docs/user_guide.md (1)

23-23: Improved clarity regarding online mode file uploads.

The documentation now clearly specifies that file uploads in online mode are "Not Enabled in Default," which helps prevent user confusion.

@t0mdavid-m t0mdavid-m linked an issue Mar 19, 2025 that may be closed by this pull request
Copy link
Member

@t0mdavid-m t0mdavid-m left a comment

Choose a reason for hiding this comment

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

Thank you for your PR. However, the issue was about fixing the misaligned file paths in the documentation. Could you adjust those as well?

I just saw you asked questions regarding this on Discord:

HI @tom Müller @arslan Siraj
@josh In the developer documentation, it states that to create a custom workflow, we need to edit src/TOPPWorkflow.py. However, this file does not exist in the src folder. Based on the available files, src/WorkflowManager.py appears to serve the same purpose and can be used instead to define and manage workflows. Am I correct in assuming this?

Almost! src/Workflow needs to be edited, which has an example workflow (all workflows inherit from the class you mentioned though).

the contetn/6_TOPP-Workflow also not exist but the content of doucmenation is present in docs/toppframework.py
This is split across multiple files now: topp_workflow_X.py.

Could you kindly check if other file paths in the documentation are also invalid? Feel free to ask questions here. We go through the PRs and issues regularly, so you will get a response as soon as we have the bandwidth.

@t0mdavid-m
Copy link
Member

Could you also merge with the main branch and fix the conflicts?

@Imama-Kainat
Copy link
Author

acknowlege

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
docs/user_guide.md (1)

30-30: Fix typographical error in directory path notation.

The text refers to the parent directory as .. which is correct in code but could be confusing in documentation.

-    - Defaults to `..` (parent directory).
+    - Defaults to the parent directory (`../`).
🧰 Tools
🪛 LanguageTool

[typographical] ~30-~30: Two consecutive dots
Context: ...in settings.json. - Defaults to .. (parent directory). ## Downloading Re...

(DOUBLE_PUNCTUATION)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 7e61eaa and cd1bbf2.

📒 Files selected for processing (2)
  • app.py (1 hunks)
  • docs/user_guide.md (1 hunks)
🧰 Additional context used
🪛 Ruff (0.8.2)
app.py

6-6: pyopenms imported but unused

Remove unused import: pyopenms

(F401)

🪛 LanguageTool
docs/user_guide.md

[typographical] ~30-~30: Two consecutive dots
Context: ...in settings.json. - Defaults to .. (parent directory). ## Downloading Re...

(DOUBLE_PUNCTUATION)

🔇 Additional comments (6)
app.py (3)

3-3: LGTM! Added blank line improves readability.

Adding a blank line after imports helps visually separate import statements from the rest of the code, improving readability.


8-8: LGTM! Another blank line for better code organization.

This additional blank line creates a clear separation between imports and the application code, which is a good practice for code organization.


6-6: Unused import warning.

The pyopenms import is flagged as unused by the static analyzer, but the comment on line 5 explains that it's required for the Windows version to function properly.

Consider adding a more explicit comment that explains why this import is needed even though it's not directly used, to avoid future confusion or removal attempts:

-# For some reason the windows version only works if this is imported here
+# DO NOT REMOVE: The Windows version only works when pyopenms is imported here,
+# even though it's not directly used in this file
🧰 Tools
🪛 Ruff (0.8.2)

6-6: pyopenms imported but unused

Remove unused import: pyopenms

(F401)

docs/user_guide.md (3)

21-21: LGTM! Improved documentation structure.

Adding an empty line after the heading helps with readability and follows proper markdown formatting practices.


25-25: LGTM! Added line break improves readability.

The additional blank line creates a clear separation between different sections in the documentation.


27-30: Improved workspace access documentation.

The changes clarify the workspace behavior in online and local modes, providing users with important information about data persistence and configuration options.

🧰 Tools
🪛 LanguageTool

[typographical] ~30-~30: Two consecutive dots
Context: ...in settings.json. - Defaults to .. (parent directory). ## Downloading Re...

(DOUBLE_PUNCTUATION)

@Imama-Kainat
Copy link
Author

Could you also merge with the main branch and fix the conflicts?

done

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
docs/user_guide.md (1)

39-42: Enhance Clarity on Workspace Persistence Mode.
The updated "Workspace Access" section now clearly differentiates between Online Mode (temporary storage with a seven-day inactivity clearance) and Local Mode (persistent storage on the local machine). Specifying that the workspace directory can be configured via settings.json and defaults to .. (parent directory) is useful for clarity.

Suggestion: Consider adding a brief explanatory note about why .. (parent directory) was chosen as the default. This additional context could help beginners better understand the underlying file structure and rationale behind the configuration.

🧰 Tools
🪛 LanguageTool

[typographical] ~42-~42: Two consecutive dots
Context: ...in settings.json. - Defaults to .. (parent directory). ## Downloading Re...

(DOUBLE_PUNCTUATION)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c5a0605 and d72b090.

📒 Files selected for processing (1)
  • docs/user_guide.md (1 hunks)
🧰 Additional context used
🪛 LanguageTool
docs/user_guide.md

[typographical] ~42-~42: Two consecutive dots
Context: ...in settings.json. - Defaults to .. (parent directory). ## Downloading Re...

(DOUBLE_PUNCTUATION)

@Imama-Kainat
Copy link
Author

image
I hope so that now toppworkflow developer guide is alright

@Imama-Kainat
Copy link
Author

Hi @t0mdavid-m ,
image

I noticed that the developer documentation mentions:

“All input files for the workflow will be stored within the workflow directory in the subdirectory input-files...”

However, based on the current implementation, input files are actually stored inside the active workspace directory (i.e., st.session_state.workspace) under a subfolder named by the upload key (e.g., mzML-files).

There’s no input-files directory in the repo, and this could be misleading for new contributors.
Should I update the documentation to reflect the current structure?

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
docs/build_app.md (1)

33-42: Documentation File Path Update: Correct File Reference

The documentation now correctly directs users to update the app name and repository name in src/common/common.py instead of src/common.py. This change improves clarity regarding the actual file structure of the project. Please verify that all related documentation references align with the updated directory hierarchy, and consider adding a brief note explaining this change for the benefit of new contributors.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between d72b090 and 95974c4.

⛔ Files ignored due to path filters (1)
  • assets/OpenMS.png is excluded by !**/*.png
📒 Files selected for processing (2)
  • docs/build_app.md (1 hunks)
  • docs/toppframework.py (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • docs/toppframework.py

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (3)
.streamlit/config.toml (2)

7-11: Clarifications in the Theme Section
The [theme] section now features clearer inline comments (e.g., explaining the inherited preset theme). One suggestion: if many users are expected to customize the base theme, consider either enabling a default value for base or including an explanatory note as to why it remains commented out.


24-25: Preservation of Font Option Documentation
The commented-out font setting is retained, which is fine if you rely on the default font configuration. However, for contributors who may wish to customize typography, consider adding a brief note in the README regarding how to enable or override this setting.

docs/user_guide.md (1)

27-27: Fix the double punctuation.

There are two consecutive dots in this line which appears to be a typographical error.

-    - The workspace directory can be specified in `settings.json` .  
+    - The workspace directory can be specified in `settings.json`.  
🧰 Tools
🪛 LanguageTool

[typographical] ~27-~27: Two consecutive dots
Context: ...n settings.json . - Defaults to .. (parent directory). - *Online Mode (...

(DOUBLE_PUNCTUATION)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 95974c4 and 2c0d864.

📒 Files selected for processing (10)
  • .github/workflows/build-windows-executable-app.yaml (3 hunks)
  • .github/workflows/ci.yml (1 hunks)
  • .streamlit/config.toml (2 hunks)
  • .streamlit/credentials.toml (0 hunks)
  • content/file_upload.py (2 hunks)
  • docs/installation.md (0 hunks)
  • docs/user_guide.md (1 hunks)
  • docs/win_exe_with_embed_py.md (2 hunks)
  • tests/test_run_subprocess.py (0 hunks)
  • tests/test_simple_workflow.py (0 hunks)
💤 Files with no reviewable changes (4)
  • .streamlit/credentials.toml
  • tests/test_run_subprocess.py
  • tests/test_simple_workflow.py
  • docs/installation.md
✅ Files skipped from review due to trivial changes (1)
  • docs/win_exe_with_embed_py.md
🧰 Additional context used
🧬 Code Definitions (1)
content/file_upload.py (2)
src/common/common.py (4)
  • page_setup (116-288)
  • v_space (419-434)
  • show_table (493-514)
  • tk_directory_dialog (617-636)
src/fileupload.py (2)
  • load_example_mzML_files (72-86)
  • copy_local_mzML_files_from_directory (38-69)
🪛 actionlint (1.7.4)
.github/workflows/build-windows-executable-app.yaml

213-213: the runner of "actions/setup-python@v4" action is too old to run on GitHub Actions. update the action's version to fix this issue

(action)

🪛 LanguageTool
docs/user_guide.md

[typographical] ~27-~27: Two consecutive dots
Context: ...n settings.json . - Defaults to .. (parent directory). - *Online Mode (...

(DOUBLE_PUNCTUATION)

🔇 Additional comments (12)
.streamlit/config.toml (2)

1-6: Clean-Up of Outdated Configuration Options
The removal of the [browser] section and the maxUploadSize setting from the [server] section simplifies the configuration file. This aligns the config with current documentation and reduces potential confusion from deprecated options.


12-23: Consistency of Theme Color Settings
The configuration for primaryColor and the commented-out options for background and text colors are consistent and easy to follow. Just ensure that these settings remain in sync with the behavior described in your documentation to avoid any future discrepancies.

.github/workflows/ci.yml (1)

31-31:

Details

✅ Verification successful

Verify that tests in the tests/ directory are no longer needed.

The CI workflow has been changed to only run test_gui.py instead of also including the tests in the tests/ directory. This aligns with the documentation improvements, but we should verify that the tests in the tests/ directory are indeed no longer needed or have been moved elsewhere.


🏁 Script executed:

#!/bin/bash
# Check if there are tests in the tests/ directory that might need to be run
ls -la tests/
echo "Counting test files in tests/ directory:"
find tests/ -name "test_*.py" | wc -l

Length of output: 244


CI Workflow Verification: Removal of 'tests/' Directory Confirmed

After verification, no tests/ directory or test files were found in the repository. This confirms that the change to run only test_gui.py in the CI workflow is intentional and aligns with the updated documentation. No further action is required.

docs/user_guide.md (1)

18-28: Great addition clarifying online and local mode differences!

This new section clearly explains the differences between online and local modes, which will be very helpful for users to understand the behavior of the application in different contexts.

🧰 Tools
🪛 LanguageTool

[typographical] ~27-~27: Two consecutive dots
Context: ...n settings.json . - Defaults to .. (parent directory). - *Online Mode (...

(DOUBLE_PUNCTUATION)

.github/workflows/build-windows-executable-app.yaml (2)

199-204: Good addition of artifact download step.

Adding this step to download the OpenMS package as an artifact improves the workflow by ensuring the package is available for the build process.


262-262: Nice simplification of the batch file creation.

The batch file creation has been simplified to a single line that starts the Streamlit app, which improves maintainability.

content/file_upload.py (6)

6-6: Good consolidation of imports.

Consolidating the imports from src.common.common into a single line improves code readability.


13-16: Well-structured tab creation for different modes.

The tabs are now created more cleanly, with the "Example Data" tab added and the "Files from local folder" tab conditionally added only in local mode.


31-37: Great addition of an Example Data tab!

Adding a dedicated tab for loading example data provides a more intuitive user experience, especially for new users who want to try the application with sample data.


58-62: Improved warning message formatting.

The warning message about deselecting the "Make a copy of files" option has been reformatted for better readability while preserving the important information.


70-71: Streamlined DataFrame creation.

The DataFrame creation for displaying mzML files has been simplified into a single line, improving code readability.


78-79: Simplified DataFrame concatenation.

The concatenation of external files into the DataFrame has been streamlined, making the code more concise.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
docs/build_app.md (1)

29-29: Path update matches actual implementation - improve readability.

The update correctly reflects the changed file path structure, where common.py is now located within a common subdirectory.

Consider adding the article "a" before "set of useful functions" for better grammatical correctness:

-The `src/common/common.py` file contains set of useful functions for common use (e.g. rendering a table with download button).
+The `src/common/common.py` file contains a set of useful functions for common use (e.g. rendering a table with download button).
🧰 Tools
🪛 LanguageTool

[uncategorized] ~29-~29: You might be missing the article “a” here.
Context: ...common use (e.g. rendering a table with download button). ## Modify the template to bui...

(AI_EN_LECTOR_MISSING_DETERMINER_A)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 2c0d864 and 86846e7.

⛔ Files ignored due to path filters (2)
  • assets/OpenMS.png is excluded by !**/*.png
  • assets/openms.ico is excluded by !**/*.ico
📒 Files selected for processing (5)
  • app.py (1 hunks)
  • docs/build_app.md (1 hunks)
  • docs/toppframework.py (2 hunks)
  • docs/user_guide.md (1 hunks)
  • docs/win_exe_with_pyinstaller.md (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • docs/win_exe_with_pyinstaller.md
🧰 Additional context used
🪛 LanguageTool
docs/build_app.md

[uncategorized] ~29-~29: You might be missing the article “a” here.
Context: ...common use (e.g. rendering a table with download button). ## Modify the template to bui...

(AI_EN_LECTOR_MISSING_DETERMINER_A)

docs/user_guide.md

[typographical] ~42-~42: Two consecutive dots
Context: ...in settings.json. - Defaults to .. (parent directory). ## Downloading Re...

(DOUBLE_PUNCTUATION)

🪛 Ruff (0.8.2)
app.py

6-6: pyopenms imported but unused

Remove unused import: pyopenms

(F401)

🔇 Additional comments (13)
docs/build_app.md (1)

33-33: Path update is consistent with project structure.

This correctly reflects the updated location of the common.py file in the project structure.

app.py (3)

3-4: Good practice: explicit json import added.

Adding an explicit import for the json module is better than relying on implicit imports. This improves code readability and makes dependencies clear.


8-8: Improved code readability with spacing.

Adding whitespace improves readability by separating logical sections of the code.


6-6:

Details

❓ Verification inconclusive

Ignore the unused import warning for pyopenms.

While static analysis flags pyopenms as unused, the comment indicates it's required for Windows compatibility. This is a case where the import should be kept despite being flagged as unused.


🏁 Script executed:

#!/bin/bash
# Check if there are any Windows-specific code paths that use pyopenms
grep -r "if.*windows.*pyopenms" --include="*.py" .

Length of output: 52


Windows Compatibility: Verify pyopenms Import Usage

The current import of pyopenms in app.py (line 6) is intended for Windows compatibility despite being flagged as unused by static analysis. However, our initial grep for Windows-specific usage of pyopenms produced no results. Please manually verify that the import is required for Windows-specific behavior (for example, side effects or compatibility patches) even if its usage isn’t directly visible in conditional code blocks.

  • Location: app.py (line 6)
  • Action: Confirm that pyopenms is necessary for Windows compatibility; if so, add or update an in-code comment to clarify its role for future maintainers.
🧰 Tools
🪛 Ruff (0.8.2)

6-6: pyopenms imported but unused

Remove unused import: pyopenms

(F401)

docs/user_guide.md (1)

39-42: Enhanced workspace documentation improves clarity.

The updated formatting clearly distinguishes between Online and Local modes, making it easier for users to understand the differences in workspace behavior. The additional details about workspace directory configuration in Local Mode are valuable for users.

Note: The .. notation in line 42 is correct as it refers to the parent directory in Unix-style path notation.

🧰 Tools
🪛 LanguageTool

[typographical] ~42-~42: Two consecutive dots
Context: ...in settings.json. - Defaults to .. (parent directory). ## Downloading Re...

(DOUBLE_PUNCTUATION)

docs/toppframework.py (8)

31-31: Grammar correction: "setup" → "set up".

This correction improves the grammatical accuracy of the documentation.


33-33: Updated workflow instructions with accurate file paths.

The revised instructions correctly direct users to edit or extend files in the src/workflow directory, providing specific examples like simpleworkflow.py or mzmlfileworkflow.py. This aligns with the actual project structure.


39-44: Improved modularization documentation.

This update clearly explains how workflow logic has been modularized across multiple files, providing specific examples of files that define different workflows. This helps users understand the project structure better.


46-46: Updated count of important members in Workflow class.

The documentation now correctly states that there are five important members in the Workflow class, which matches the actual implementation.


56-56: Added documentation for the file_manager member.

The addition of documentation for the self.file_manager member is valuable and completes the description of all important members of the Workflow class. This helps users understand how to handle file types and create output directories.


68-68: Storage location clarification.

This update clarifies that input files are stored in the active workspace directory rather than a generic workflow directory, which aligns with the PR objectives to fix documentation issues related to file structure.


70-70: Improved subdirectory naming explanation.

The clarification about how subdirectory names are determined based on the key passed to the self.ui.upload_widget method provides important context for developers.


74-77: Enhanced readability with bullet points.

Converting this section to a bullet point list improves readability and makes the components of the file upload page clearer.

@Imama-Kainat
Copy link
Author

@t0mdavid-m https://docs.google.com/document/d/15YIZpm-cBS3q9tkHYxcuAJJc0LOn_IS6CPFJxc5pg2o/edit?usp=sharing could you please review the gsoc proposal and add comments (feedback) to it

@Imama-Kainat
Copy link
Author

image
There is no such a function in repo

@Imama-Kainat
Copy link
Author

Hi @t0mdavid-m 👋,

I’ve followed the review comments and made the suggested changes. Additionally, I cross-checked the documentation against the current repository structure and references to ensure everything is accurate and up-to-date.

All relevant sections have been revised accordingly, and the documentation is now aligned with the existing codebase and deployment architecture.

Copy link
Member

Choose a reason for hiding this comment

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

I think we should not remove this part of the documentation.

Copy link
Member

Choose a reason for hiding this comment

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

I think the logos have been updated separately.

Copy link
Member

Choose a reason for hiding this comment

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

See above

> 💡 Simply set a name for the workflow and override the **`upload`**, **`configure`**, **`execution`**, and **`results`** methods in your **`Workflow`** class.

The `Workflow` class contains four important members, which you can use to build your own workflow:
There is no longer a single `content/6_TOPP-Workflow.py` file. Workflow logic has been modularized across files like:
Copy link
Member

Choose a reason for hiding this comment

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

The user does not need to know what existed at a previous point in time.

@t0mdavid-m t0mdavid-m self-assigned this Apr 16, 2025
@t0mdavid-m
Copy link
Member

Closing due to inactivity.

@t0mdavid-m t0mdavid-m closed this Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Documentation

2 participants