@@ -221,7 +221,16 @@ macro_rules! impl_estimator {
221221 /// Use Antoine type equation to extrapolate vapor
222222 /// pressure if experimental data is above critial
223223 /// point of model. Defaults to False.
224- ///
224+ /// max_iter : int, optional
225+ /// The maximum number of iterations for critical point
226+ /// and VLE algorithms.
227+ /// tol: float, optional
228+ /// Solution tolerance for critical point
229+ /// and VLE algorithms.
230+ /// verbosity : Verbosity, optional
231+ /// Verbosity for critical point
232+ /// and VLE algorithms.
233+ ///
225234 /// Returns
226235 /// -------
227236 /// ``DataSet``
@@ -231,11 +240,15 @@ macro_rules! impl_estimator {
231240 target: & PySIArray1 ,
232241 temperature: & PySIArray1 ,
233242 extrapolate: Option <bool >,
243+ max_iter: Option <usize >,
244+ tol: Option <f64 >,
245+ verbosity: Option <Verbosity >,
234246 ) -> PyResult <Self > {
235247 Ok ( Self ( Rc :: new( VaporPressure :: <SIUnit >:: new(
236248 target. clone( ) . into( ) ,
237249 temperature. clone( ) . into( ) ,
238250 extrapolate. unwrap_or( false ) ,
251+ Some ( ( max_iter, tol, verbosity) . into( ) ) ,
239252 ) ?) ) )
240253 }
241254
@@ -276,6 +289,15 @@ macro_rules! impl_estimator {
276289 /// Experimental data for liquid density.
277290 /// temperature : SIArray1
278291 /// Temperature for experimental data points.
292+ /// max_iter : int, optional
293+ /// The maximum number of iterations for critical point
294+ /// and VLE algorithms.
295+ /// tol: float, optional
296+ /// Solution tolerance for critical point
297+ /// and VLE algorithms.
298+ /// verbosity : Verbosity, optional
299+ /// Verbosity for critical point
300+ /// and VLE algorithms.
279301 ///
280302 /// Returns
281303 /// -------
@@ -285,10 +307,14 @@ macro_rules! impl_estimator {
285307 fn equilibrium_liquid_density(
286308 target: & PySIArray1 ,
287309 temperature: & PySIArray1 ,
310+ max_iter: Option <usize >,
311+ tol: Option <f64 >,
312+ verbosity: Option <Verbosity >,
288313 ) -> PyResult <Self > {
289314 Ok ( Self ( Rc :: new( EquilibriumLiquidDensity :: <SIUnit >:: new(
290315 target. clone( ) . into( ) ,
291316 temperature. clone( ) . into( ) ,
317+ Some ( ( max_iter, tol, verbosity) . into( ) )
292318 ) ?) ) )
293319 }
294320
0 commit comments