Skip to content

Commit

Permalink
small docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
bpuchala committed Aug 23, 2024
1 parent 6dcda32 commit f34c26e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
16 changes: 15 additions & 1 deletion casm/bset/clexwriter/_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,21 @@ def _print_latex_site_bfuncs(builder):


class ClexulatorWriter:
"""Write Clexulator source files and related files"""
"""Write Clexulator source files and related files
The design is:
- :func:`~casm.bset.write_clexulator` is the intended user interface for
writing Clexulator source files
- :class:`~casm.bset.clexwriter.ClexulatorWriter` implements the things that
all Clexulator writer versions need to do (write the C++ source files,
basis.json, equivalents_info.json, etc.)
- :class:`~casm.bset.clexwriter._methods.WriterV1Basic` or other classes
(WriterV1Diff, etc.) implements the specifics for a particular Clexulator
`version`, by specifying the template files and generating the variables used
by the templates.
"""

def __init__(
self,
Expand Down
3 changes: 2 additions & 1 deletion casm/bset/clexwriter/_write_v1_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@


class WriterV1Basic:
"""Writes standard CASM v1 compatible Clexulator (no automatic differentiation)"""
"""Generates the variables needed for the `v1.basic` Clexulator, the
standard CASM v1 compatible Clexulator (no automatic differentiation)"""

@staticmethod
def template_name():
Expand Down

0 comments on commit f34c26e

Please sign in to comment.