Skip to content

Fix non-ASCII characters in LALInference example ini file

Description

This fixes the following CI failure:

distance-max=1500|' -e '/mpirun=/c\mpirun=/bin/true ' -e 's|mpi_task_count=8|mpi_task_count=4|' -e 's|machine-count=8|machine-count=4|' -e 's|ntemps=8|ntemps=4|' -e '/accounting_group=/c\accounting_group=ligo.dev.o3.cbc.pe.lalinference' -e 's|sharedfs=False|sharedfs=True|' -e 's|^resume=|#resume=|' -e 's|^#.*mtotal-min=2|mtotal-min=55|' -e 's|^#.*mtotal-max=35|mtotal-max=65|' -e '/^#.*maxmcmc=/c\maxmcmc=100' /builds/lscsoft/lalsuite/lalinference/lib/lalinference_pipe_example.ini
+ lalinference_pipe --run-path ./example -I lalinference/test/injection_standard.xml --daglog-path ./daglog ./example.ini
Traceback (most recent call last):
  File "/usr/bin/lalinference_pipe", line 218, in <module>
    cp.readfp(fp)
  File "/usr/lib64/python3.6/configparser.py", line 763, in readfp
    self.read_file(fp, source=filename)
  File "/usr/lib64/python3.6/configparser.py", line 718, in read_file
    self._read(f, source)
  File "/usr/lib64/python3.6/configparser.py", line 1015, in _read
    for lineno, line in enumerate(fp, start=1):
  File "/usr/lib64/python3.6/encodings/ascii.py", line 26, in decode
    return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 193: ordinal not in range(128)

API Changes and Justification

Backwards Compatible Changes

  • This change introduces no API changes
  • This change adds new API calls

Backwards Incompatible Changes

  • This change modifies an existing API
  • This change removes an existing API

If any of the Backwards Incompatible check boxes are ticked please provide a justification why this change is necessary and why it needs to be done in a backwards incompatible way.

Review Status

N/A

Merge request reports

Loading