spinetoolbox.configuration_assistants.spine_opt

SpineOpt.jl config assistant.

author:
  1. Marin (KTH)
date:

17.2.2020

Package Contents

Classes

make_assistant A widget with a state machine.
class spinetoolbox.configuration_assistants.spine_opt.make_assistant(toolbox)

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
py_call_program_check_needed
spine_opt_process_failed
py_call_installation_needed
py_call_reconfiguration_needed
py_call_process_failed
spine_opt_ready
resolve_julia(self)

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

resolve_python(self)

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

check_kernel_is_ok(self, kernel_name, prgm)

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)
_make_processing_state(self, name, text)
_make_report_state(self, name, text)
_make_prompt_state(self, name, text)
_make_report_julia_not_found(self)
_make_report_bad_julia_version(self)
_make_welcome(self)
_make_updating_spine_opt(self)
_make_prompt_to_install_latest_spine_opt(self)
_make_installing_latest_spine_opt(self)
_make_report_spine_opt_installation_failed(self)
_make_checking_py_call_program(self)
_make_prompt_to_reconfigure_py_call(self)
_make_prompt_to_install_py_call(self)
_make_report_spine_opt_ready(self)
_make_reconfiguring_py_call(self)
_make_installing_py_call(self)
_make_report_py_call_process_failed(self)
update_spine_opt(self)
install_spine_opt(self)
_handle_spine_opt_process_finished(self, ret)
check_py_call_program(self)
_handle_check_py_call_program_finished(self, ret)
reconfigure_py_call(self)

Starts process that reconfigures PyCall to use selected Python interpreter.

_handle_reconfigure_py_call_finished(self, ret)
install_py_call(self)

Starts process that installs PyCall in current julia version.

_handle_install_py_call_finished(self, ret)
set_up_machine(self)
spinetoolbox.configuration_assistants.spine_opt.assistant_name = SpineOpt.jl[source]