Skip to content

utf-8 error, when load par file #49

@jlzhang001

Description

@jlzhang001

When I try to run libstempo-toasim-demo.ipynb, it shows utf-8 error. The detail info pasted below. Could you help me to check this problem? Thanks. @vallis @mattpitkin

Python version : 3.7.12
libstempo version: 2.4.5
Tempo2 version : 2022.5.1

UnicodeDecodeError Traceback (most recent call last)
/tmp/ipykernel_27615/1593190486.py in
1 psr = T.tempopulsar(parfile = T.data + 'B1953+29_NANOGrav_dfg+12.par',
----> 2 timfile = T.data + 'B1953+29_NANOGrav_dfg+12.tim')
3 LP.plotres(psr)

libstempo/libstempo.pyx in libstempo.libstempo.tempopulsar.cinit()

libstempo/libstempo.pyx in libstempo.libstempo.tempopulsar._readflags()

libstempo/libstempo.pyx in libstempo.libstempo.lambda1()

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 0: invalid continuation byte

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions