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 this Action 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
_DiagnosticReportAction__action()

This method is the guts of the DiagnosticReportAction. It does the following:

  1. Prompts the user to select a location to save the report file.

  2. Generates the report.

  3. Formats the report as JSON.

  4. 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

__module__ = 'fsleyes.actions.diagnosticreport'