GithubHelp home page GithubHelp logo

Comments (15)

rcjackson avatar rcjackson commented on July 17, 2024

from act.

zssherman avatar zssherman commented on July 17, 2024

Might need to add qcfilter to the init file docs. I don't see it referenced. Some functions use single quotes instead of doubles, but I don't think that would effect it at all.

from act.

kenkehoe avatar kenkehoe commented on July 17, 2024

qcfilter imports qctests. Could that be part of the issue?

from act.

AdamTheisen avatar AdamTheisen commented on July 17, 2024

@zssherman where exactly is that init file you are referring to?

from act.

zssherman avatar zssherman commented on July 17, 2024

@AdamTheisen For example, in the retrievals where calculate_stability_indices :

act.retrievals (act.retrievals)

.. currentmodule:: act.retrievals
This module contains various retrievals for ARM datsets.
.. autosummary::
:toctree: generated/
calculate_stability_indicies

from .stability_indices import calculate_stability_indicies

So maybe under :toctree: generated/ qcfilter functions need to be added. Similar to what seen in the retrieval init

from act.

AdamTheisen avatar AdamTheisen commented on July 17, 2024

Documentation is showing up now.

from act.

kenkehoe avatar kenkehoe commented on July 17, 2024

I'm not sure this is resolved. The classes are listed in the documentation but my doc strings are not showing up nor all the method names. I am happy to look into solving this but I don't understand enough to know where to start. I tried running the doc generation locally and ran into issues. Can we reopen this to remind me to look into again?

from act.

AdamTheisen avatar AdamTheisen commented on July 17, 2024

@kenkehoe Check out ACT/docs/source/API/plotting.rst. This may give you a good lead into what to do for the QC part.

When you make changes there, you can run "make html" in the ACT/docs folder. Once that completes you can check out the html page by opening ACT/docs/build/html/index.html

from act.

AdamTheisen avatar AdamTheisen commented on July 17, 2024

Note, I also think you need to add documentation to the QCTests class.

from act.

kenkehoe avatar kenkehoe commented on July 17, 2024

I have documentation to the QCTests class but it is not showing up. Does anyone have suggestions on how to fix this? Looks like the function documentation is showing up but none of my method documentation is being processed.

from act.

AdamTheisen avatar AdamTheisen commented on July 17, 2024

@kenkehoe The only thing I can see at the moment is that the QCTests class is not initialized. See the Display class in plotting/plot.py. It has documentation on the class and an initializer

def __init__(self, obj, subplot_shape=(1,), ds_name=None,
             subplot_kw=None, **kwargs): 

from act.

AdamTheisen avatar AdamTheisen commented on July 17, 2024

I am also seeing warnings when I try and build the documentation for the qc

/anaconda3/lib/python3.7/site-packages/numpydoc/docscrape.py:424: UserWarning: Unknown section Example: in the docstring of <function parse_bit at 0x1c1ce85048> in /Users/atheisen/Code/ACT/act/qc/qcfilter.py.
warn(msg)

/anaconda3/lib/python3.7/site-packages/numpydoc/docscrape.py:424: UserWarning: Unknown section Example in the docstring of <function set_bit at 0x1c1ce19ea0> in /Users/atheisen/Code/ACT/act/qc/qcfilter.py.
warn(msg)

/anaconda3/lib/python3.7/site-packages/numpydoc/docscrape.py:424: UserWarning: Unknown section Example: in the docstring of <function unset_bit at 0x1c1ce7c2f0> in /Users/atheisen/Code/ACT/act/qc/qcfilter.py.
warn(msg)

/anaconda3/lib/python3.7/site-packages/numpydoc/docscrape.py:424: UserWarning: Unknown section Example in the docstring of <function rolling_window at 0x1c1ce7c158> in /Users/atheisen/Code/ACT/act/qc/qctests.py.

from act.

kenkehoe avatar kenkehoe commented on July 17, 2024

OK thanks. I've made a few changes and things are not fixed but better. I'll keep looking into it.

from act.

AdamTheisen avatar AdamTheisen commented on July 17, 2024

@kenkehoe how is this looking now?

from act.

kenkehoe avatar kenkehoe commented on July 17, 2024

I needed to list each method to get the QC to show up but it is there now. We can close this and I'll look into why I need to list the methods another day.

from act.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.