Skip to content

Commit

Permalink
Tweak documentation styling
Browse files Browse the repository at this point in the history
  • Loading branch information
DillonZChen committed Jun 14, 2024
1 parent 2d33eb7 commit 7d5a175
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.vscode/
wheelhouse/
_wlplan/

# graphs generated by pyvis
*.html
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
WLPlan
======

[![PyPI version](https://badge.fury.io/py/wlplan.svg)](https://badge.fury.io/py/wlplan)
[![License](https://img.shields.io/pypi/l/wlplan)](https://badge.fury.io/py/wlplan)

WLPlan is a package for generating embeddings of PDDL planning problems for machine learning tasks.

## Installation
Expand Down
36 changes: 18 additions & 18 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ m.doc() = "WLPlan: WL Features for PDDL Planning";

/* Planning */
auto planning_m = m.def_submodule("planning");
auto atom = py::class_<planning::Atom>(planning_m, "Atom", R"(
Parameters
auto atom = py::class_<planning::Atom>(planning_m, "Atom",
R"(Parameters
----------
predicate : Predicate
Predicate object.
objects : List[Object]
List of object names.
)");
auto domain = py::class_<planning::Domain>(planning_m, "Domain", R"(
Parameters
auto domain = py::class_<planning::Domain>(planning_m, "Domain",
R"(Parameters
----------
name : str
Domain name.
Expand All @@ -41,20 +41,20 @@ Parameters
constant_objects : List[Object], optional
List of constant objects.
)");
auto object = py::class_<planning::Object>(planning_m, "Object", R"(
Object is a type alias for a str.
auto object = py::class_<planning::Object>(planning_m, "Object",
R"(Object is a type alias for a str.
)");
auto predicate = py::class_<planning::Predicate>(planning_m, "Predicate", R"(
Parameters
auto predicate = py::class_<planning::Predicate>(planning_m, "Predicate",
R"(Parameters
----------
name : str
Predicate name.
arity : int
Predicate arity.
)");
auto problem = py::class_<planning::Problem>(planning_m, "Problem", R"(
Parameters
auto problem = py::class_<planning::Problem>(planning_m, "Problem",
R"(Parameters
----------
domain : Domain
Domain object.
Expand All @@ -68,8 +68,8 @@ Parameters
negative_goals : List[Atom]
List of negative goal atoms.
)");
auto state = py::class_<planning::State>(planning_m, "State", R"(
State is a type alias for a list of Atoms.
auto state = py::class_<planning::State>(planning_m, "State",
R"(State is a type alias for a list of Atoms.
)");

predicate
Expand Down Expand Up @@ -98,8 +98,8 @@ problem

/* Data */
auto data_m = m.def_submodule("data");
auto dataset = py::class_<data::Dataset>(data_m, "Dataset", R"(
WLPlan dataset object.
auto dataset = py::class_<data::Dataset>(data_m, "Dataset",
R"(WLPlan dataset object.
Datasets contain a domain and a list of problem states.
Expand All @@ -111,8 +111,8 @@ Parameters
data : List[ProblemStates]
List of problem states.
)");
auto problem_states = py::class_<data::ProblemStates>(data_m, "ProblemStates", R"(
Stores a problem and training states for the problem.
auto problem_states = py::class_<data::ProblemStates>(data_m, "ProblemStates",
R"(Stores a problem and training states for the problem.
Upon initialisation, the problem and states are checked for consistency.
Expand All @@ -136,8 +136,8 @@ dataset

/* Graph */
auto graph_m = m.def_submodule("graph");
auto graph = py::class_<graph::Graph>(graph_m, "Graph", R"(
WLPlan graph object.
auto graph = py::class_<graph::Graph>(graph_m, "Graph",
R"(WLPlan graph object.
Graphs have integer node colours and edge labels.
Expand Down
2 changes: 1 addition & 1 deletion wlplan/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.2"
__version__ = "0.2.3"

0 comments on commit 7d5a175

Please sign in to comment.