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

Improving the readthedocs documentation #33

Merged
merged 42 commits into from
May 29, 2024
Merged

Conversation

michaeldenes
Copy link
Member

This PR is to improve the documentation of plasticparcels. Currently a lot of information is missing, specifically the required datasets, and some information on the kernels and initialisation maps.

@codecov-commenter
Copy link

codecov-commenter commented May 27, 2024

Codecov Report

Attention: Patch coverage is 0% with 14 lines in your changes are missing coverage. Please review.

Project coverage is 15.43%. Comparing base (7664fd0) to head (fff5309).

Files Patch % Lines
plasticparcels/constructors.py 0.00% 14 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #33   +/-   ##
=======================================
  Coverage   15.43%   15.43%           
=======================================
  Files           6        6           
  Lines         473      473           
=======================================
  Hits           73       73           
  Misses        400      400           
Flag Coverage Δ
unit-tests 15.43% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

docs/paper/paper.md Outdated Show resolved Hide resolved
docs/paper/paper.md Outdated Show resolved Hide resolved
docs/paper/paper.md Outdated Show resolved Hide resolved

# Usage Examples
**TODO fill this in once created**
# Usage Example
The `PlasticParcels` github repository provides several useful tutorials. Here, we briefly demonstrate how `PlasticParcels` can be used for a microplastic dispersal simulation in the Mediterranean Sea. The tutorial can be found on the `PlasticParcels` github repository, ...
Copy link
Member

Choose a reason for hiding this comment

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

This still needs to be done?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I can create this very quickly if we decide to use the one particle per cell approach that is currently implemented. However, we wanted to do this with n particles per grid cell.

I've now created a script that saves the IDs of the grid cell, so that we can randomly distribute particles across a grid cell. The non-trivial part is how to deal with the curvilinear grid.

I think we can distribute on a [0,1]x[0,1] square, and rotate it like we do with the whole Jacobian approach. I just need to figure out how to do that rotation. Then I can run the example and update the plots.

What do you think?

Copy link
Member Author

Choose a reason for hiding this comment

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

I've now included a usage example in the docs/paper/paper.md file

@michaeldenes
Copy link
Member Author

michaeldenes commented May 28, 2024

@erikvansebille , the paper is now in a final draft form (downloadable via the actions tab above).

The only things I can think of are:
a) should we include more references for the line '... users can perform Lagrangian simulations of a wide variety of particulates, such as tuna, plastic, plankton, icebergs, turtles...'?
b) can we remove some of the code in the usage example, and just link to the tutorial and show the plots?

EDIT: and c) dealing with the Copernicus Marine Service reference, what should we reference here?

Copy link
Member

@erikvansebille erikvansebille left a comment

Choose a reason for hiding this comment

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

I added three comments to the paper.md and schematic.png, and also created a PR (#35) with textual and grammar changes/suggestions

docs/paper/schematic.png Outdated Show resolved Hide resolved
docs/paper/paper.md Outdated Show resolved Hide resolved
docs/paper/paper.md Show resolved Hide resolved
@michaeldenes michaeldenes marked this pull request as ready for review May 29, 2024 13:04
@michaeldenes
Copy link
Member Author

@erikvansebille a last double check review before we release a new version and submit?

@erikvansebille
Copy link
Member

@erikvansebille a last double check review before we release a new version and submit?

Yep, I'll check now

Copy link
Member

@erikvansebille erikvansebille left a comment

Choose a reason for hiding this comment

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

Two minor final comments/suggestions

docs/examples/example_Italy_coast.ipynb Outdated Show resolved Hide resolved
docs/index.rst Outdated Show resolved Hide resolved
@michaeldenes michaeldenes merged commit bc30fd0 into main May 29, 2024
6 checks passed
@michaeldenes michaeldenes deleted the update_documentation branch May 29, 2024 14:24
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.

3 participants