@@ -201,13 +201,6 @@ def _sympy_operator(self, child):
201201 """Apply appropriate SymPy operators."""
202202 return child
203203
204- @property
205- def julia_name (self ):
206- "Return the name of the equivalent Julia function, for generating Julia code"
207- raise NotImplementedError (
208- "No julia name defined for function {}" .format (self .function )
209- )
210-
211204 def to_equation (self ):
212205 """Convert the node and its subtree into a SymPy equation."""
213206 if self .print_name is not None :
@@ -256,14 +249,6 @@ def _function_new_copy(self, children):
256249 """See :meth:`pybamm.Function._function_new_copy()`"""
257250 return pybamm .simplify_if_constant (self .__class__ (* children ))
258251
259- @property
260- def julia_name (self ):
261- """See :meth:`pybamm.Function.julia_name`"""
262- # By default, the julia name for a specific function is the class name
263- # in lowercase
264- # Some functions may overwrite this
265- return self .__class__ .__name__ .lower ()
266-
267252 def _sympy_operator (self , child ):
268253 """Apply appropriate SymPy operators."""
269254 class_name = self .__class__ .__name__ .lower ()
@@ -281,11 +266,6 @@ def _function_diff(self, children, idx):
281266 """See :meth:`pybamm.Symbol._function_diff()`."""
282267 return 1 / sqrt (children [0 ] ** 2 + 1 )
283268
284- @property
285- def julia_name (self ):
286- """See :meth:`pybamm.Function.julia_name`"""
287- return "asinh"
288-
289269 def _sympy_operator (self , child ):
290270 """Override :meth:`pybamm.Function._sympy_operator`"""
291271 return sympy .asinh (child )
@@ -306,11 +286,6 @@ def _function_diff(self, children, idx):
306286 """See :meth:`pybamm.Function._function_diff()`."""
307287 return 1 / (children [0 ] ** 2 + 1 )
308288
309- @property
310- def julia_name (self ):
311- """See :meth:`pybamm.Function.julia_name`"""
312- return "atan"
313-
314289 def _sympy_operator (self , child ):
315290 """Override :meth:`pybamm.Function._sympy_operator`"""
316291 return sympy .atan (child )
@@ -426,11 +401,6 @@ class Max(SpecificFunction):
426401 def __init__ (self , child ):
427402 super ().__init__ (np .max , child )
428403
429- @property
430- def julia_name (self ):
431- """See :meth:`pybamm.Function.julia_name`"""
432- return "maximum"
433-
434404 def _evaluate_for_shape (self ):
435405 """See :meth:`pybamm.Symbol.evaluate_for_shape_using_domain()`"""
436406 # Max will always return a scalar
@@ -451,11 +421,6 @@ class Min(SpecificFunction):
451421 def __init__ (self , child ):
452422 super ().__init__ (np .min , child )
453423
454- @property
455- def julia_name (self ):
456- """See :meth:`pybamm.Function.julia_name`"""
457- return "minimum"
458-
459424 def _evaluate_for_shape (self ):
460425 """See :meth:`pybamm.Symbol.evaluate_for_shape_using_domain()`"""
461426 # Min will always return a scalar
0 commit comments