mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-30 08:46:27 +08:00
Migrated % string formating
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ class BaseProblem(object):
|
||||
|
||||
def pair(self, d):
|
||||
"""Bind a survey to this problem instance using pointers."""
|
||||
assert isinstance(d, self.surveyPair), "Data object must be an instance of a %s class."%(self.surveyPair.__name__)
|
||||
assert isinstance(d, self.surveyPair), "Data object must be an instance of a {0!s} class.".format((self.surveyPair.__name__))
|
||||
if d.ispaired:
|
||||
raise Exception("The survey object is already paired to a problem. Use survey.unpair()")
|
||||
self._survey = d
|
||||
|
||||
Reference in New Issue
Block a user