File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -343,14 +343,14 @@ class FortranUtils:
343
343
r"([\d.]+)([dD])([+-]?\d{1,3})"
344
344
) # matches a float: 1d9, 1D-3, 1.D+4, etc.
345
345
346
- @classmethod
347
- def replace_fortran_scientific_notation (cls , value ):
346
+ @staticmethod
347
+ def replace_fortran_scientific_notation (value ):
348
348
"""Replace Fortran scientific notation ("D" in exponent) with standard
349
349
scientific notation ("e" in exponent).
350
350
"""
351
351
if isinstance (value , str ):
352
- return cls ._scientific_exp_d_notation_regex .sub (r"\1e\3" , value )
352
+ return FortranUtils ._scientific_exp_d_notation_regex .sub (r"\1e\3" , value )
353
353
elif isinstance (value , list ):
354
- return list (map (cls .replace_fortran_scientific_notation , value ))
354
+ return list (map (FortranUtils .replace_fortran_scientific_notation , value ))
355
355
356
356
return value
You can’t perform that action at this time.
0 commit comments