Giter Club home page Giter Club logo

Comments (4)

RemDelaporteMathurin avatar RemDelaporteMathurin commented on September 24, 2024

@billingsley-john does it mean that properties shouldn't be documented at the class level anymore then ?

from paramak.

shimwell avatar shimwell commented on September 24, 2024

In another project I've added doc strings to these attributes setters using the @Property
https://github.com/ukaea/neutronics_material_maker/blob/72763629cfc9941d6aa5068fe6b304dde2a04c93/neutronics_material_maker/material.py#L235-L286

And it shows up in the docs
https://neutronics-material-maker.readthedocs.io/en/latest/material.html#neutronics_material_maker.material.Material.fispact_material

from paramak.

billingsley-john avatar billingsley-john commented on September 24, 2024

@shimwell sorry, I realize I haven't explained correctly. Docstrings appear in the docs if they're added to the block starting with @Property, but they do not appear if they're added to the block starting with @points.setter (for example).

In shape.py, we have docstrings for points but they're added in @points.setter part rather than the @Property part
https://github.com/ukaea/paramak/blob/develop/paramak/shape.py#L157-L168.

This is also the same for other things such as stp_filename
https://github.com/ukaea/paramak/blob/develop/paramak/shape.py#L237-L251

I shall go through and re-organise the docstrings for these attributes so that they appear in the documentation.
I wanted to raise the issue so that everyone was aware how they have to be documented.

from paramak.

billingsley-john avatar billingsley-john commented on September 24, 2024

@billingsley-john does it mean that properties shouldn't be documented at the class level anymore then ?

I think we should still document properties/attributes, the docstrings just need to be in the correct place. In most scripts, they are already correct.

from paramak.

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.