@@ -224,7 +224,7 @@ def _read_parse_dataset_duplicate_characters(line: str) -> str:
224224 # NOTE: subtract one since we will already have one character from
225225 # the original one we are duplicating from.
226226 nduplicates = DUP_digits [char ] - 1
227- new_line += line [i - 1 ] * nduplicates
227+ new_line += line [i - 1 ] * nduplicates
228228 else :
229229 new_line += char
230230 return "" .join (new_line )
@@ -451,16 +451,16 @@ def _read_post_process_data_xy(
451451 if jcamp_dict .get (_DATA_XY_TYPE_KEY ) == _DATA_FORMAT_XYYY :
452452 xstart .append (jcamp_dict ['lastx' ])
453453 x = np .array ([])
454- for n in range (len (xnum )- 1 ):
455- dx = (xstart [n + 1 ] - xstart [n ]) / xnum [n ]
456- x = np .append (x , xstart [n ]+ (dx * np .arange (xnum [n ])))
454+ for n in range (len (xnum ) - 1 ):
455+ dx = (xstart [n + 1 ] - xstart [n ]) / xnum [n ]
456+ x = np .append (x , xstart [n ] + (dx * np .arange (xnum [n ])))
457457
458458 if xnum [len (xnum ) - 1 ] > 1 :
459459 numerator = (jcamp_dict ['lastx' ] - xstart [len (xnum )- 1 ])
460- denominator = (xnum [len (xnum )- 1 ] - 1.0 )
460+ denominator = (xnum [len (xnum ) - 1 ] - 1.0 )
461461 dx = numerator / denominator
462462
463- xnext = xstart [len (xnum )- 1 ] + (dx * np .arange (xnum [len (xnum )- 1 ]))
463+ xnext = xstart [len (xnum ) - 1 ] + (dx * np .arange (xnum [len (xnum ) - 1 ]))
464464 x = np .append (x , xnext )
465465 else :
466466 x = np .append (x , jcamp_dict ['lastx' ])
@@ -660,7 +660,7 @@ def _read_get_aspects_section(jcamp_dict: dict) -> dict:
660660 "@id" : "measurement/1" ,
661661 "@type" : "sdo:measurement" ,
662662 "techniqueType" : "cao:spectroscopy" ,
663- "instrument" : f'{ jcamp_dict .get ("spectrometer/data system" )} ' ,
663+ "instrument" : f'{ jcamp_dict .get ("spectrometer/data system" )} ' ,
664664 }
665665
666666 settings = []
0 commit comments