Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
dweindl committed Apr 16, 2024
1 parent e15e32d commit 12fa3a7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions documentation/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,10 +446,7 @@ def install_doxygen():
"std::unique_ptr< amici::ExpData >": "ExpData",
"std::unique_ptr< amici::ReturnData >": "ReturnData",
"std::unique_ptr< amici::Solver >": "Solver",
"amici::realtype const": "float",
"amici::realtype": "float",
"int const": "int",
"object &": "object",
}

vector_types = {
Expand Down Expand Up @@ -547,9 +544,9 @@ def fix_typehints(sig: str) -> str:
sig = sig.replace("sunindextype", "int")
sig = sig.replace("H5::H5File", "object")

# remove const
sig = sig.replace(" const ", r" ")
sig = re.sub(r" const$", r"", sig)
# remove const / const&
sig = sig.replace(" const&? ", r" ")
sig = re.sub(r" const&?$", r"", sig)

# remove pass by reference
sig = re.sub(r" &(,|\))", r"\1", sig)
Expand Down

0 comments on commit 12fa3a7

Please sign in to comment.