@@ -1185,15 +1185,15 @@ def set_data(
11851185 f"Resizing dimension '{ dname } ' is impossible, because "
11861186 f"a 'TensorConstant' stores its length. To be able "
11871187 f"to change the dimension length, 'fixed' in "
1188- f"'model.add_coord' must be passed False."
1188+ f"'model.add_coord' must be set to ` False` ."
11891189 )
11901190 if length_tensor .owner is None :
11911191 # This is the case if the dimension was initialized
11921192 # from custom coords, but dimension length was not
11931193 # stored in TensorConstant e.g by 'fixed' set to False
11941194
11951195 warnings .warn (
1196- f"You're changing the shape of a shared variable "
1196+ f"You're changing the shape of a variable "
11971197 f"in the '{ dname } ' dimension which was initialized "
11981198 f"from coords. Make sure to update the corresponding "
11991199 f"coords, otherwise you'll get shape issues." ,
@@ -1206,14 +1206,14 @@ def set_data(
12061206 f"Resizing dimension '{ dname } ' with values of length { new_length } would lead to incompatibilities, "
12071207 f"because the dimension was initialized from '{ length_belongs_to } ' which is not a shared variable. "
12081208 f"Check if the dimension was defined implicitly before the shared variable '{ name } ' was created, "
1209- f"for example by a model variable." ,
1209+ f"for example by another model variable." ,
12101210 actual = new_length ,
12111211 expected = old_length ,
12121212 )
12131213 if original_coords is not None :
12141214 if new_coords is None :
12151215 raise ValueError (
1216- f"The '{ name } ' variable already had { len (original_coords )} coord values defined for"
1216+ f"The '{ name } ' variable already had { len (original_coords )} coord values defined for "
12171217 f"its { dname } dimension. With the new values this dimension changes to length "
12181218 f"{ new_length } , so new coord values for the { dname } dimension are required."
12191219 )
0 commit comments