VERITAS-Observatory / V2DL3

VERITAS (VEGAS and Eventdisplay) to DL3 Converter
BSD 3-Clause "New" or "Revised" License
8 stars 1 forks source link

Add run number to value error when observation is outside of IRF boundaries #164

Open GernotMaier opened 1 year ago

GernotMaier commented 1 year ago

It would be very useful when processing a very large number of files with the error message would include the run number.

https://github.com/VERITAS-Observatory/V2DL3/blob/0f1029c1cbcd83fb16f51b0275d0e6aa22e459cd/pyV2DL3/eventdisplay/fillRESPONSE.py#L76

sona-patel commented 1 year ago

but the run number is already printed in the beginning of processing (here), so we know for which run the error message is occurring! Isn't it sufficient?

GernotMaier commented 1 year ago

Not when you have processed 100s of files and want to use grep or something like that to quickly check for certain messages.

What I actually want is to change the log message to INFO:v2dl3:run96012: for e.g., run 96012. Otherwise really hard for bulk processing.