spinetoolbox.configuration_assistants.spine_opt.configuration_assistant

Widget for assisting the user in configuring SpineOpt.jl.

author:
  1. Marin (KTH)
date:

9.1.2019

Module Contents

Classes

SpineOptConfigurationAssistant A widget with a state machine.
class spinetoolbox.configuration_assistants.spine_opt.configuration_assistant.SpineOptConfigurationAssistant(toolbox)[source]

Bases: spinetoolbox.widgets.state_machine_widget.StateMachineWidget

A widget with a state machine.

Initializes class.

Parameters:
  • window_title (str) –
  • parent (QMainWindow) –
_required_julia_version = 1.1.0[source]
py_call_program_check_needed[source]
spine_opt_process_failed[source]
py_call_installation_needed[source]
py_call_reconfiguration_needed[source]
py_call_process_failed[source]
spine_opt_ready[source]
resolve_julia(self)[source]

Returns Julia executable and project according to user’s Settings.

resolve_python(self)[source]

Returns the full path to Python interpreter according to user’s Settings.

check_kernel_is_ok(self, kernel_name, prgm)[source]

Checks that kernel spec is valid for the configuration assistant to continue.

Parameters:
  • kernel_name (str) – Kernel name
  • prgm (str) – Either “Python” or “Julia”, determines which kernel type to check
Returns:

True if kernel is ok, False otherwise

Return type:

bool

find_julia_version(self)[source]
_make_processing_state(self, name, text)[source]
_make_report_state(self, name, text)[source]
_make_prompt_state(self, name, text)[source]
_make_report_julia_not_found(self)[source]
_make_report_bad_julia_version(self)[source]
_make_welcome(self)[source]
_make_updating_spine_opt(self)[source]
_make_prompt_to_install_latest_spine_opt(self)[source]
_make_installing_latest_spine_opt(self)[source]
_make_report_spine_opt_installation_failed(self)[source]
_make_checking_py_call_program(self)[source]
_make_prompt_to_reconfigure_py_call(self)[source]
_make_prompt_to_install_py_call(self)[source]
_make_report_spine_opt_ready(self)[source]
_make_reconfiguring_py_call(self)[source]
_make_installing_py_call(self)[source]
_make_report_py_call_process_failed(self)[source]
update_spine_opt(self)[source]
install_spine_opt(self)[source]
_handle_spine_opt_process_finished(self, ret)[source]
check_py_call_program(self)[source]
_handle_check_py_call_program_finished(self, ret)[source]
reconfigure_py_call(self)[source]

Starts process that reconfigures PyCall to use selected Python interpreter.

_handle_reconfigure_py_call_finished(self, ret)[source]
install_py_call(self)[source]

Starts process that installs PyCall in current julia version.

_handle_install_py_call_finished(self, ret)[source]
set_up_machine(self)[source]