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)¶ 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)¶ Create a
DiagnosticReportAction
.Parameters: - overlayList – The
OverlayList
. - displayCtx – The master
DisplayContext
. - frame – The
FSLeyesFrame
.
- overlayList – The
-
_DiagnosticReportAction__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.
-
_DiagnosticReportAction__formatReport
(reportDict)¶ Converts the given hierarchical dictionary to a JSON-formatted string.
-
_DiagnosticReportAction__generateReport
()¶ Generates and returns a report, a hierarchical dictionary containing information about the current system and FSLeyes state.
-
_DiagnosticReportAction__openGLReport
()¶ Creates and returns a dictionary containing information about the OpenGL platform.
-
_DiagnosticReportAction__settingsReport
()¶ Creates and returns a dictionary containing:
- FSLeyes settings stored via the
settings
module
- FSLeyes settings stored via the
-
__module__
= 'fsleyes.actions.diagnosticreport'¶
-