dlakaplan / LogParse

0 stars 0 forks source link

Multiple observing sessions in a single log file #14

Closed dlakaplan closed 4 years ago

swiggumj commented 4 years ago

Example of this is: examples/logs/p2945.cimalog_20200419.

dlakaplan commented 4 years ago

I have a solution, although it's not elegant:

parse_cimalog -f examples/logs/p2945.cimalog_20200419
### Report for: examples/logs/p2945.cimalog_20200419
### NANOGrav p2945 observation (1.0h elapsed; 0.7h observing; 2 scans)
### 2020-04-19 07:30:24 - 2020-04-19 08:29:34
   396 sec (   171 sec slewing) --> Execute PSR J2043+1711 (std) for 1402s at 1410MHz at linenumber   495 (1260 sec requested) +
    Writing to /share/obs4/usr/pulsar/p2945/puppi_58958_J2043+1711_0248, /share/obs4/usr/pulsar/p2945/puppi_58958_J2043+1711_0249
   529 sec (     8 sec slewing) --> Execute PSR J2043+1711 (std) for 1220s at  430MHz at linenumber  1608 (1320 sec requested) -
    Writing to /share/obs4/usr/pulsar/p2945/puppi_58958_J2043+1711_0250, /share/obs4/usr/pulsar/p2945/puppi_58958_J2043+1711_0251
### Report for: examples/logs/p2945.cimalog_20200419
### NANOGrav p2945 observation (0.9h elapsed; 0.7h observing; 2 scans)
### 2020-04-19 10:03:54 - 2020-04-19 10:55:46
   308 sec (   170 sec slewing) --> Execute PSR J2317+1439 (std) for 1337s at 1410MHz at linenumber  2402 (1200 sec requested) +
    Writing to /share/obs4/usr/pulsar/p2945/puppi_58958_J2317+1439_0256, /share/obs4/usr/pulsar/p2945/puppi_58958_J2317+1439_0257
    81 sec (     8 sec slewing) --> Execute PSR J2317+1439 (std) for 1341s at  430MHz at linenumber  3091 (1200 sec requested) +
    Writing to /share/obs4/usr/pulsar/p2945/puppi_58958_J2317+1439_0258, /share/obs4/usr/pulsar/p2945/puppi_58958_J2317+1439_0259
dlakaplan commented 4 years ago

@marxide : any thoughts on how I implemented this? 45e2f1cb3f8e3160a3c8c2dcde74039dc4951299

dlakaplan commented 4 years ago

@swiggumj : aside from implementation, see if this is returning the right results. If so we can close (for now)

swiggumj commented 4 years ago

It's slightly confusing how the logger output all gets mashed together, but that's mostly cosmetic, and easy enough to figure out which session is which. I think this looks good for now.

dlakaplan commented 4 years ago

I could put in a more dramatic separator between the sessions.

On Apr 27, 2020, at 4:13 PM, Joe Swiggum notifications@github.com wrote:

It's slightly confusing how the logger output all gets mashed together, but that's mostly cosmetic, and easy enough to figure out which session is which. I think this looks good for now.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.