Skip to content

Commit

Permalink
Changed naming of the new getter
Browse files Browse the repository at this point in the history
This complies to PEP8 and also somewhat of what to expect from COMSOL
  • Loading branch information
max3-2 authored and john-hen committed Feb 23, 2021
1 parent 62ba3ed commit 2065620
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mph/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,12 @@ def physics(self):
tags = [str(tag) for tag in self.java.physics().tags()]
return [str(self.java.physics(tag).name()) for tag in tags]

def boundaryConditions(self, node):
"""Returns boundary conditions under specified physics node"""
def physic_features(self, node):
"""
Returns features for a specified physics node. Those features
include initial conditions, boundary conditions and COMSOL specific
advanced modeling features connected to the physics type.
"""
physicsTags = [str(tag) for tag in self.java.physics().tags()]
ptag = physicsTags[self.physics().index(node)]
tags = [str(tag) for tag in self.java.physics(ptag).feature().tags()]
Expand Down

0 comments on commit 2065620

Please sign in to comment.