@@ -81,11 +81,8 @@ def apply_transformation(self, structure: Structure):
81
81
trans = SubstitutionTransformation ({self .charge_balance_sp : {self .charge_balance_sp : 1 - removal_fraction }})
82
82
return trans .apply_transformation (structure )
83
83
84
- def __str__ (self ):
85
- return f"Charge Balance Transformation : Species to remove = { self .charge_balance_sp } "
86
-
87
84
def __repr__ (self ):
88
- return str ( self )
85
+ return f"Charge Balance Transformation : Species to remove = { self . charge_balance_sp } "
89
86
90
87
@property
91
88
def inverse (self ):
@@ -142,11 +139,8 @@ def apply_transformation(self, structure: Structure, return_ranked_list: bool |
142
139
structures .append ({"transformation" : t , "structure" : t .apply_transformation (structure )})
143
140
return structures
144
141
145
- def __str__ (self ):
146
- return f"Super Transformation : Transformations = { ' ' .join (map (str , self ._transformations ))} "
147
-
148
142
def __repr__ (self ):
149
- return str ( self )
143
+ return f"Super Transformation : Transformations = { ' ' . join ( map ( str , self . _transformations )) } "
150
144
151
145
@property
152
146
def inverse (self ):
@@ -246,11 +240,8 @@ def apply_transformation(self, structure: Structure, return_ranked_list: bool |
246
240
outputs .append ({"structure" : new_structure })
247
241
return outputs
248
242
249
- def __str__ (self ):
250
- return f"Multiple Substitution Transformation : Substitution on { self .sp_to_replace } "
251
-
252
243
def __repr__ (self ):
253
- return str ( self )
244
+ return f"Multiple Substitution Transformation : Substitution on { self . sp_to_replace } "
254
245
255
246
@property
256
247
def inverse (self ):
@@ -489,11 +480,8 @@ def sort_func(s):
489
480
return self ._all_structures [0 :num_to_return ]
490
481
return self ._all_structures [0 ]["structure" ]
491
482
492
- def __str__ (self ):
493
- return "EnumerateStructureTransformation"
494
-
495
483
def __repr__ (self ):
496
- return str ( self )
484
+ return "EnumerateStructureTransformation"
497
485
498
486
@property
499
487
def inverse (self ):
@@ -557,11 +545,8 @@ def apply_transformation(self, structure: Structure, return_ranked_list: bool |
557
545
outputs .append (output )
558
546
return outputs
559
547
560
- def __str__ (self ):
561
- return "SubstitutionPredictorTransformation"
562
-
563
548
def __repr__ (self ):
564
- return str ( self )
549
+ return "SubstitutionPredictorTransformation"
565
550
566
551
@property
567
552
def inverse (self ):
@@ -2199,11 +2184,8 @@ def apply_transformation(self, structure: Structure) -> Structure:
2199
2184
coords_are_cartesian = True ,
2200
2185
)
2201
2186
2202
- def __str__ (self ):
2203
- return f"{ __name__ } : rattle_std = { self .rattle_std } "
2204
-
2205
2187
def __repr__ (self ):
2206
- return str ( self )
2188
+ return f" { __name__ } : rattle_std = { self . rattle_std } "
2207
2189
2208
2190
@property
2209
2191
def inverse (self ):
0 commit comments