Skip to content

Documentation #1

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

Closed
7 tasks done
streeve opened this issue Feb 19, 2020 · 6 comments
Closed
7 tasks done

Documentation #1

streeve opened this issue Feb 19, 2020 · 6 comments

Comments

@streeve
Copy link

streeve commented Feb 19, 2020

I have a few suggestions to improve documentation per openjournals/joss-reviews#2094

Concerning the tutorial:

  • Specify matlab, mtex, and gmsh versions required (potentially gcc underlying gmsh)
  • Data initialization should have a heading and code block formatting (currently only done for the "Improve" section), ideally pointing out this examples from mtex are being used
  • Link to doc page in README (maybe add image)
  • In the "Mesh" and "Customize" sections the figures are not directly from code examples - either be very clear about this or add how to obtain these images as part of the tutorial

The example cases are easy to follow and seem to cover the extent of the intended uses, but unit testing is missing. Some recently accepted joss papers using matlab have what seems to be an offline-automated test suite

  • Add unit tests

I did not see any API documentation (maybe I am forgetting how to access this in matlab)

  • Add API docs

Finally, make sure to add a CONTRIBUTING.md file for Github contributors

  • CONTRIBUTING.md
@DorianDepriester
Copy link
Owner

Thank you @streeve for your quick review. All the points you mentioned have been taken into consideration.

Just to mention, the unit test are not that easy to implement on MATLAB. As far as I know, Code Ocean is the easiest way to provide offline test for reproducibility. The link to the related Capsule has been added in README.md.

Considering the API docs, I am not sure to understand its meaning in the MATLAB scripting context. All functions and methods are provided along with help sections (in addition to documentation). For instance, juste type

help gmshGeo

to get help about the gmshGeo constructor.

@streeve
Copy link
Author

streeve commented Feb 20, 2020

Great, thanks

The Code Ocean online environment is quite nice. My only objection is that (as far as I can tell) it only tests one case. Something like https://github.com/vitorsr/SIHR/blob/master/utils/automated_testing.m could work

@streeve
Copy link
Author

streeve commented Feb 20, 2020

For the API docs, a section just mentioning both help (thank you, I haven't actively used matlab in a while) and methods to make it easy to explore all options in the class

DorianDepriester added a commit that referenced this issue Feb 24, 2020
Fix 6th item in Issue #1
@DorianDepriester
Copy link
Owner

I have added a file named unitTest. It sums up all the examples given in the eponymous folder, plus it plots the geometry in each case.

@DorianDepriester
Copy link
Owner

Alternatively, I have update the code on code Ocean, following your recommendations (that is, provide multiple examples).

Tell me if if need to keep the aforementioned unitTest.m or/and the reference to the capsule.

@streeve
Copy link
Author

streeve commented Feb 28, 2020

I think unitTest.m is exactly what you want: it runs the main examples, is easy to extend, and you can run on Code Ocean or locally

@streeve streeve closed this as completed Feb 28, 2020
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

No branches or pull requests

2 participants