Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in plotting timestamp intervals #364

Open
markmac99 opened this issue Aug 18, 2024 · 2 comments
Open

Bug in plotting timestamp intervals #364

markmac99 opened this issue Aug 18, 2024 · 2 comments
Assignees
Labels

Comments

@markmac99
Copy link
Contributor

The master branch fails during Reprocess with this error

024/08/18 11:15:34-INFO-Reprocess-line:396 - Plotting timestamp intervals...
Tar file not found.
2024/08/18 11:15:34-DEBUG-Reprocess-line:408 - Plotting timestamp interval failed with message:
TypeError('unsupported format string passed to NoneType.__format__')
2024/08/18 11:15:34-DEBUG-Reprocess-line:409 - ['Traceback (most recent call last):\n', '  File "/home/pi/source/RMS/RMS/Reprocess.py", line 402, in processNight\n    jitter_quality, dropped_frame_rate))\n', 'TypeError: unsupported format string passed to NoneType.__format__\n']
2024/08/18 11:15:34-INFO-Reprocess-line:525 - Archiving detections to /home/pi/RMS_data/ArchivedFiles/UK001L_20240817_200017_648946

the code is enclosed in a try/except so it does not halt RMS but its presumably not creating some graph. I'll investigate it.

@markmac99 markmac99 self-assigned this Aug 18, 2024
@markmac99 markmac99 added the bug label Aug 18, 2024
@markmac99
Copy link
Contributor Author

ok, its a simple problem: if the Fieldsums bz2 archive isn't available, then plotFFTimeIntervals() returns None,None,None. However the values are then passed to log.info, which can't print None as a float.
The fix is to check for None before printing. I'll create a fix branch.

@Cybis320
Copy link
Contributor

I think this is fixed in prerelease, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants