-
Notifications
You must be signed in to change notification settings - Fork 526
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
Doc api cc #663
Doc api cc #663
Conversation
Codecov Report
@@ Coverage Diff @@
## devel #663 +/- ##
===========================================
- Coverage 82.36% 66.66% -15.71%
===========================================
Files 114 6 -108
Lines 9312 15 -9297
===========================================
- Hits 7670 10 -7660
+ Misses 1642 5 -1637 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We haven't provided any documentation string in deepmd.DeepPot
nor deepmd.DeepPotModelDevi
, so I do not understand how this commit works.
…oxyfile to generated xml/ from C++. And then api_cc.rst can be generated by breathe from xml/.
I found only doxygen to generate C++ api. But it cannot be installed with pip. So I had to add a precompiled directory xml/. Is there a way to include an external package by setup.py? @njzjz |
The following question said doxygen had been installed in the readthedocs. |
It's working now. |
I included an extra package "exhale". C++ API display is looking a lot better now. |
https://deepmd-kit-testdoc.readthedocs.io/en/doc-api_cc/API_CC/namespace_tensorflow.html We have tensorflow namespace in the code? |
@denghuilu Is it possible to remove this line? |
@tuoping Could you give an example of how to write documents for APIs? Then I can fill it. |
Use exhale to invoke doxygen and then generate a structured api_cc |
@tuoping do you know what's wrong with my commit? It doesn't work. |
I recompiled it on readthedocs, and it worked. |
* Doxyfile cannot be installed from pip, therefore I precompiled with doxyfile to generated xml/ from C++. And then api_cc.rst can be generated by breathe from xml/. * Edit conf.py to include doxygen * Edit conf.py to enable doxygen on readthedocs * Add specification in conf.py to refine the html layout of api_cc.rst * Included exhale to make prettier C++ API. * Update conf.py * add a function description to see if it works * it should be put into the header file? * add documents for DeepPot and DeepTensor * add documents for some common functions Co-authored-by: tuoping <[email protected]> Co-authored-by: Jinzhe Zeng <[email protected]>
* fix typo in github actions release to conda * Get from_poscar_path only when from_poscar is true (deepmodeling#537) Change-Id: I17774bee345634e4e72bd783e8112eefaaf9f0d3 Co-authored-by: Zhengju Sha <[email protected]> * feature: merge run.py * fix:fix syntax bug * fix summary ratio bug * fix: fix bug of var(calypso_run_opt_path) not defined * reorganize code v1 * add: add unittest * add: add some explainations of dp+calypso in README.md * change a little bit in readme.md * change position of function * add deepmd-kit>=2.0.1 install_require in setup.py * test failed cause no tensorflow module so add tensorflow in setup.py * calc model devi in command line * fix some small bugs of modd and PBS script of cpu * fix unittest * delete parse_input.dat * fix unittest * first reorganization * secord reorganization * fix bugs * fix: fix bugs in modd_calypso.py write_modd.py and run.py * change functions name and fix bugs * remove modd_calypso.py * remove: remove modd_calypso.py * remove some useless outputs * restore dispatcher/PBS.py * refactor: make some changes in calypso related code - rename model_devi_calypso.py run_calypso.py - rename calypso.py make_calypso.py - add new file calypso_check_outcar.py calypso_run_opt.py - add new file calypso_run_model_devi.py - delete write_modd.py - modify README.md and run.py * refactor: move calypso main code(run.py) into run_calypso.py and modify test_calypso.py * docs: modify README.md related to CALYPSO * delete some useless comments in run.py * add write_model_devi_out function into make_calypso.py for passing unittest * fix a spelling mistake in calypso_run_opt.py (famx -> fmax) * change runopt script's name from run_opt.py to calypso_run_opt.py and fix bug in runopt script * fix unittest Co-authored-by: Han Wang <[email protected]> Co-authored-by: felix5572 <[email protected]> Co-authored-by: shazj99 <[email protected]> Co-authored-by: Zhengju Sha <[email protected]> Co-authored-by: Han Wang <[email protected]>
Made api_cc.rst in doc/development/