File tree Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Expand file tree Collapse file tree 3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -426,15 +426,15 @@ def main():
426426 print (err )
427427 print ("Could not create peak function '%s'. Exiting." % options .peakfunction )
428428 return
429-
429+
430430 if options .modelevaluator :
431431 try :
432432 options .modelevaluator = eval ("modelevaluators." + options .modelevaluator )
433433 except Exception as err :
434434 print (err )
435435 print ("Could not find ModelEvaluator '%s'. Exiting." % options .modelevaluator )
436436 return
437-
437+
438438 if options .bcrystal :
439439 from diffpy .srmise .baselines .polynomial import Polynomial
440440
@@ -471,12 +471,12 @@ def main():
471471
472472 bl = NanoSpherical ()
473473 options .baseline = parsepars (bl , options .bspherical )
474-
474+
475475 try :
476-
476+
477477 print (options .baseline )
478478 options .baseline = eval ("baselines." + options .baseline )
479-
479+
480480 except Exception as err :
481481 print (err )
482482 print ("Could not create baseline '%s'. Exiting." % options .baseline )
Original file line number Diff line number Diff line change @@ -100,11 +100,10 @@ def __init__(
100100 The class (not instance) which implements caching of BaseFunction
101101 evaluations.
102102 """
103-
103+
104104 self .parameterdict = parameterdict
105105 self .npars = len (self .parameterdict )
106106
107-
108107 # Checking all these things at run-time is a bit heavy-handed, but the
109108 # overhead is small and it may prevent considerable confusion when
110109 # developing new functions.
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ def read(self, filename):
204204 try :
205205 # Open the file in binary mode, read it, and decode to convert bytes to string
206206 with open (filename , "rb" ) as file :
207- file_content = file .read ().decode (' utf-8' )
207+ file_content = file .read ().decode (" utf-8" )
208208 self .readStr (file_content )
209209 except PDFDataFormatError as err :
210210 basename = os .path .basename (filename )
You can’t perform that action at this time.
0 commit comments