Skip to content

Commit

Permalink
Pint dimensionless (#79)
Browse files Browse the repository at this point in the history
* Fix assertionerror in pint >= 0.24 in solver.py

* bump version
  • Loading branch information
loganbvh authored Jun 13, 2024
1 parent db30117 commit a495d03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tdgl/solver/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def current_func(t):
return terminal_currents

J_scale = 4 * ((ureg(current_units) / length_units) / K0).to_base_units()
assert "dimensionless" in str(J_scale.units), str(J_scale.units)
assert J_scale.dimensionless, str(J_scale)
J_scale = J_scale.magnitude
self.current_func = lambda t: {
key: J_scale * value for key, value in current_func(t).items()
Expand Down
2 changes: 1 addition & 1 deletion tdgl/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version_info__ = (0, 8, 1)
__version_info__ = (0, 8, 2)
__version__ = ".".join(map(str, __version_info__))


Expand Down

0 comments on commit a495d03

Please sign in to comment.