Skip to content

Commit 57efa32

Browse files
committed
pass kwargs in type-2 class method
1 parent be21005 commit 57efa32

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

celmech/canonical_transformations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def from_type2_generating_function(cls,F2func,old_qp_vars,new_qp_vars,**kwargs):
461461
warn(msg)
462462
n2o = dict(zip(new_qp_vars,n2o_soln[0]))
463463

464-
return cls(old_qp_vars,new_qp_vars,old_to_new_rule=o2n,new_to_old_rule = n2o)
464+
return cls(old_qp_vars,new_qp_vars,old_to_new_rule=o2n,new_to_old_rule = n2o,**kwargs)
465465

466466
@classmethod
467467
def cartesian_to_polar(cls,old_qp_vars,indices=None,polar_symbol_pairs=None,**kwargs):

0 commit comments

Comments
 (0)