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

Documentation: how to run FESTIM in parallel #856 #871

Conversation

XinShen-CHN
Copy link
Contributor

Proposed changes

Documentation: how to run FESTIM in parallel #856.

Types of changes

What types of changes does your code introduce to FESTIM?

  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Code refactoring
  • Documentation Update (if none of the other choices apply)
  • New tests

Checklist

  • Black formatted
  • Unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

Copy link

codecov bot commented Aug 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.56%. Comparing base (362cf71) to head (d5ec17c).
Report is 148 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #871   +/-   ##
=======================================
  Coverage   99.55%   99.56%           
=======================================
  Files          61       61           
  Lines        2705     2750   +45     
=======================================
+ Hits         2693     2738   +45     
  Misses         12       12           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@RemDelaporteMathurin RemDelaporteMathurin left a comment

Choose a reason for hiding this comment

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

Thanks @XinShen-CHN for adding this!

I see that the documentation test is failing. See my comment below.

@KulaginVladimir do you think this should be at the bottom of this page in "Your first FESTIM script"?

docs/source/userguide/beginners_guide.rst Outdated Show resolved Hide resolved
@KulaginVladimir
Copy link
Collaborator

@RemDelaporteMathurin, I don't. Since parallel computing doesn't always result in faster computation, I wouldn't put it in the "your first FESTIM script".

Personally, I'd make a separate page that could be filled with some additional info/hints/warnings later.

We could also make a demo to show when parallel computing might speed up a simulation.

@XinShen-CHN
Copy link
Contributor Author

Thanks @XinShen-CHN for adding this!

I see that the documentation test is failing. See my comment below.

Thank you Remi!

@RemDelaporteMathurin
Copy link
Collaborator

Personally, I'd make a separate page that could be filled with some additional info/hints/warnings later.

@XinShen-CHN could you make a new User Guide page "Running in parallel" and move the content there instead?

Copy link
Collaborator

@RemDelaporteMathurin RemDelaporteMathurin left a comment

Choose a reason for hiding this comment

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

Xin, you need to:

  • provide the correct extension for the new file (.rst). Also, avoid blank spaces and uppercase letters in filenames. running_in_parallel.rst would be an appropriate filename.
  • add this new file in docs/source/userguide/index.rst if you want it to be counted.

I advise you to try and build the documentation locally on your computer to be able to inspect your changes. Here you will see that these lines don't appear anywhere in the automatically-built documentation.

@RemDelaporteMathurin RemDelaporteMathurin linked an issue Aug 12, 2024 that may be closed by this pull request
@XinShen-CHN
Copy link
Contributor Author

Xin, you need to:

  • provide the correct extension for the new file (.rst). Also, avoid blank spaces and uppercase letters in filenames. running_in_parallel.rst would be an appropriate filename.
  • add this new file in docs/source/userguide/index.rst if you want it to be counted.

I advise you to try and build the documentation locally on your computer to be able to inspect your changes. Here you will see that these lines don't appear anywhere in the automatically-built documentation.

I see. I'll try to fix it.

Sorry for the delays. I was on a vacation.

@RemDelaporteMathurin
Copy link
Collaborator

Hi @XinShen-CHN do you need assistance on this?

@XinShen-CHN
Copy link
Contributor Author

Hi @XinShen-CHN do you need assistance on this?

Yes, I failed to build the documentation locally.

Copy link
Collaborator

@RemDelaporteMathurin RemDelaporteMathurin left a comment

Choose a reason for hiding this comment

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

Hi @XinShen-CHN thanks for these changes. I can assist you in building the docs locally. In the meantime, here's a final suggestion (I'll commit): we need to have a title (with # ) in this page to avoid this:

image

docs/source/userguide/running_in_parallel.rst Show resolved Hide resolved
@RemDelaporteMathurin RemDelaporteMathurin merged commit a1e3aec into festim-dev:main Sep 12, 2024
6 checks passed
@XinShen-CHN
Copy link
Contributor Author

Hi @XinShen-CHN thanks for these changes. I can assist you in building the docs locally. In the meantime, here's a final suggestion (I'll commit): we need to have a title (with # ) in this page to avoid this:

image

Remi, thank you so much!

@XinShen-CHN XinShen-CHN deleted the Documentation--how-to-run-FESTIM-in-parallel-#856 branch September 13, 2024 07:40
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.

Documentation: how to run FESTIM in parallel
3 participants