Closed rossjjennings closed 7 months ago
I tested this and it worked well. Simple change; can merge when passing checks
This is a weird test failure. It's only happening for the Python 3.8 test, and it seems to be some kind of internal mamba thing -- it doesn't even get to the point of running the notebook.
@JPGlaser, once you're feeling better and get a chance, would you mind taking a look at what might be going on?
Retriggered the tests and it seemed to work just fine. Everything looks good so I'm merging it.
In printing the list of tim filenames, the PDF writer code here loops over
toas.filename
. The problem with this is, thefilename
attribute of a PINTTOAs
object might be either a string or a list of strings. Currently, only the list case is handled correctly -- iffilename
is a string, each character will be printed on a separate line. This PR updates the PDF writer code to correctly handle either case.This problem was hidden until recently, because, until recent updates to PINT changed things, the way that
TimingConfiguration.get_model_and_toas()
constructed a TOAs object guaranteed that itsfilename
attribute would be a list, not a string. However, since nanograv/PINT#1593 was merged,filename
is always a string if there is only file associated with theTOAs
object.