fsleyes.actions.diagnosticreport
¶
This module provides the DiagnosticReportAction
, which allows
the user to generate a report of the current FSLeyes state, to send to me
for bug reporting purposes.
- class fsleyes.actions.diagnosticreport.DiagnosticReportAction(overlayList, displayCtx, frame)[source]¶
Bases:
fsleyes.actions.base.Action
The
DiagnosticReportAction
generates a JSON-formatted report file containing information about the current state of FSLeyes. When the thisAction
is run, the user is prompted to select a location to save the file Then the report is generated, and written out to the specified location.- __init__(overlayList, displayCtx, frame)[source]¶
Create a
DiagnosticReportAction
.- Parameters
overlayList – The
OverlayList
.displayCtx – The master
DisplayContext
.frame – The
FSLeyesFrame
.
- __action()¶
This method is the guts of the
DiagnosticReportAction
. It does the following:Prompts the user to select a location to save the report file.
Generates the report.
Formats the report as JSON.
Saves the report to the specified location.
- __generateReport()¶
Generates and returns a report, a hierarchical dictionary containing information about the current system and FSLeyes state.
- __settingsReport()¶
Creates and returns a dictionary containing:
FSLeyes settings stored via the
settings
module
- __openGLReport()¶
Creates and returns a dictionary containing information about the OpenGL platform.
- __formatReport(reportDict)¶
Converts the given hierarchical dictionary to a JSON-formatted string.
- __annotations__ = {}¶
- __module__ = 'fsleyes.actions.diagnosticreport'¶