Skip to content

Commit

Permalink
feat: add descriptor class for pressure attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
hanson-hschang committed Aug 13, 2024
1 parent a9ba99b commit b1c68e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cobra/actuations/FREE.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Pressure:
"""

def __set_name__(self, owner: type, name: str) -> None:
self.private_name = "_" + name
self.private_name = "__" + name
setattr(owner, self.private_name, 0.0)

def __get__(self, instance: object, owner: type) -> float:
Expand Down

0 comments on commit b1c68e2

Please sign in to comment.