This is an update to a new version of dolfin-adjoint as well as a migration from python2 to python3. This package provides adjoint computation for dolfin models in conjunction wiht libadjoint package. OBS-URL: https://build.opensuse.org/request/show/480865 OBS-URL: https://build.opensuse.org/package/show/science/python3-dolfin-adjoint?expand=0&rev=1
16 lines
633 B
Diff
16 lines
633 B
Diff
---
|
|
dolfin_adjoint/timeforms.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
--- a/dolfin_adjoint/timeforms.py
|
|
+++ b/dolfin_adjoint/timeforms.py
|
|
@@ -211,7 +211,7 @@ class TimeMeasure(object):
|
|
interval = slice(START_TIME,FINISH_TIME,None)
|
|
|
|
if interval not in (START_TIME,FINISH_TIME) and not isinstance(interval, (slice, int, float)):
|
|
- raise ValueError, "TimeMeasure can only be indexed with floats, START_TIME and FINISH_TIME."
|
|
+ raise(ValueError, "TimeMeasure can only be indexed with floats, START_TIME and FINISH_TIME.")
|
|
|
|
self.interval = timeslice(interval)
|
|
|