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.ActionThe
DiagnosticReportActiongenerates a JSON-formatted report file containing information about the current state of FSLeyes. When the thisActionis 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.
-
_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
settingsmodule
-
__module__= 'fsleyes.actions.diagnosticreport'¶
-