Skip to content

Commit

Permalink
doc and str
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholaswogan committed Jun 11, 2024
1 parent e07fc53 commit b9bdf23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cmake_minimum_required(VERSION "3.14")

project(EQUILIBRATE LANGUAGES Fortran C VERSION "0.1.4")
project(EQUILIBRATE LANGUAGES Fortran C VERSION "0.1.5")

set(CMAKE_Fortran_MODULE_DIRECTORY "${CMAKE_BINARY_DIR}/modules")
include(cmake/CPM.cmake)
Expand Down
4 changes: 3 additions & 1 deletion equilibrate/cython/_equilibrate.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ DEF S_STR_LEN = 20;
DEF ERR_LEN = 1024;

cdef class ChemEquiAnalysis:
"""A chemical equilibrium solver.
"""

cdef cea_pxd.ChemEquiAnalysis *_ptr
cdef cbool _init_called
Expand All @@ -32,7 +34,7 @@ cdef class ChemEquiAnalysis:
raise EquilibrateException('The "__init__" method of ChemEquiAnalysis has not been called.')
PyObject_GenericSetAttr(self, name, value)

def __init__(self, thermofile = None, atoms = None, species = None):
def __init__(self, str thermofile, atoms = None, species = None):
"""Initializes the chemical equilibrium solver given an input thermodynamic file.
The file can only have ".yaml" format. `atoms` and `species` are optional inputs
with the following effects:
Expand Down

0 comments on commit b9bdf23

Please sign in to comment.