Skip to main content
Ctrl+K
ewoksorange 2.0.1 documentation - Home ewoksorange 2.0.1 documentation - Home
ewoksorange 2.0
  • How-to Guides ?
  • Tutorials
  • Development
  • ewoks orange API
  • GitLab
  • pypi
  • How-to Guides ?
  • Tutorials
  • Development
  • ewoks orange API
  • GitLab
  • pypi

Section Navigation

  • ewoksorange
    • ewoksorange.bindings
      • ewoksorange.bindings.bindings
        • ewoksorange.bindings.bindings.convert_graph
        • ewoksorange.bindings.bindings.execute_graph
        • ewoksorange.bindings.bindings.load_graph
        • ewoksorange.bindings.bindings.ows_file_context
        • ewoksorange.bindings.bindings.save_graph
      • ewoksorange.bindings.events
        • ewoksorange.bindings.events.scheme_ewoks_events
      • ewoksorange.bindings.invalid_data
        • ewoksorange.bindings.invalid_data.as_invalidation
        • ewoksorange.bindings.invalid_data.as_missing
        • ewoksorange.bindings.invalid_data.is_invalid_data
      • ewoksorange.bindings.owsconvert
        • ewoksorange.bindings.owsconvert.ewoks_to_ows
        • ewoksorange.bindings.owsconvert.graph_is_supported
        • ewoksorange.bindings.owsconvert.node_data_to_default_inputs
        • ewoksorange.bindings.owsconvert.ows_to_ewoks
        • ewoksorange.bindings.owsconvert.read_ows
        • ewoksorange.bindings.owsconvert.task_to_widget
        • ewoksorange.bindings.owsconvert.task_to_widgets
        • ewoksorange.bindings.owsconvert.widget_to_task
        • ewoksorange.bindings.owsconvert.write_ows
        • ewoksorange.bindings.owsconvert.OwsNodeWrapper
        • ewoksorange.bindings.owsconvert.OwsSchemeWrapper
      • ewoksorange.bindings.owsettings
        • ewoksorange.bindings.owsettings.get_settings
        • ewoksorange.bindings.owsettings.is_setting
      • ewoksorange.bindings.owsignal_manager
        • ewoksorange.bindings.owsignal_manager.can_enable_dynamic_patch
        • ewoksorange.bindings.owsignal_manager.patch_signal_manager
        • ewoksorange.bindings.owsignal_manager.set_input_value
        • ewoksorange.bindings.owsignal_manager.SignalManagerWithOutputTracking
        • ewoksorange.bindings.owsignal_manager.SignalManagerWithScheme
        • ewoksorange.bindings.owsignal_manager.SignalManagerWithoutScheme
      • ewoksorange.bindings.owsignals
        • ewoksorange.bindings.owsignals.get_ewoks_to_orange_mapping
        • ewoksorange.bindings.owsignals.get_input_names
        • ewoksorange.bindings.owsignals.get_orange_to_ewoks_mapping
        • ewoksorange.bindings.owsignals.get_output_names
        • ewoksorange.bindings.owsignals.get_signal_container
        • ewoksorange.bindings.owsignals.get_signals
        • ewoksorange.bindings.owsignals.is_signal
        • ewoksorange.bindings.owsignals.receive_dynamic_input
        • ewoksorange.bindings.owsignals.signal_ewoks_to_orange_name
        • ewoksorange.bindings.owsignals.signal_orange_to_ewoks_name
        • ewoksorange.bindings.owsignals.validate_inputs
        • ewoksorange.bindings.owsignals.validate_outputs
      • ewoksorange.bindings.owwidgets
        • ewoksorange.bindings.owwidgets.is_ewoks_widget
        • ewoksorange.bindings.owwidgets.is_ewoks_widget_class
        • ewoksorange.bindings.owwidgets.is_native_widget
        • ewoksorange.bindings.owwidgets.is_native_widget_class
        • ewoksorange.bindings.owwidgets.is_orange_widget
        • ewoksorange.bindings.owwidgets.is_orange_widget_class
        • ewoksorange.bindings.owwidgets.prepare_OWEwoksWidgetclass
        • ewoksorange.bindings.owwidgets.summarize_object
        • ewoksorange.bindings.owwidgets.summarize_variable
        • ewoksorange.bindings.owwidgets.OWEwoksBaseWidget
        • ewoksorange.bindings.owwidgets.OWEwoksWidgetNoThread
        • ewoksorange.bindings.owwidgets.OWEwoksWidgetOneThread
        • ewoksorange.bindings.owwidgets.OWEwoksWidgetOneThreadPerRun
        • ewoksorange.bindings.owwidgets.OWEwoksWidgetWithTaskStack
      • ewoksorange.bindings.progress
        • ewoksorange.bindings.progress.QProgress
      • ewoksorange.bindings.qtapp
        • ewoksorange.bindings.qtapp.absorb_nonbase_exception
        • ewoksorange.bindings.qtapp.close_qtapp
        • ewoksorange.bindings.qtapp.ensure_qtapp
        • ewoksorange.bindings.qtapp.get_all_qtwidgets
        • ewoksorange.bindings.qtapp.get_qtapp
        • ewoksorange.bindings.qtapp.process_qtapp_events
        • ewoksorange.bindings.qtapp.qt_message_handler
        • ewoksorange.bindings.qtapp.qtapp_context
        • ewoksorange.bindings.qtapp.QtEvent
      • ewoksorange.bindings.taskexecutor
        • ewoksorange.bindings.taskexecutor.TaskExecutor
        • ewoksorange.bindings.taskexecutor.ThreadedTaskExecutor
      • ewoksorange.bindings.taskexecutor_queue
        • ewoksorange.bindings.taskexecutor_queue.TaskExecutorQueue
      • ewoksorange.bindings.taskwrapper
        • ewoksorange.bindings.taskwrapper.execute_ewoks_owwidget
        • ewoksorange.bindings.taskwrapper.execute_native_owwidget
        • ewoksorange.bindings.taskwrapper.instantiate_owwidget
        • ewoksorange.bindings.taskwrapper.owwidget_task_wrapper
    • ewoksorange.canvas
      • ewoksorange.canvas.config
        • ewoksorange.canvas.config.widgets_entry_points
        • ewoksorange.canvas.config.Config
      • ewoksorange.canvas.handler
        • ewoksorange.canvas.handler.OrangeCanvasHandler
      • ewoksorange.canvas.main
        • ewoksorange.canvas.main.main
        • ewoksorange.canvas.main.temporary_log_handlers
      • ewoksorange.canvas.utils
        • ewoksorange.canvas.utils.get_orange_canvas
    • ewoksorange.discovery
      • ewoksorange.discovery.widget_discovery
    • ewoksorange.engine
      • ewoksorange.engine.OrangeWorkflowEngine
    • ewoksorange.gui
      • ewoksorange.gui.data_viewer
        • ewoksorange.gui.data_viewer.DataViewer
      • ewoksorange.gui.orange_imports
      • ewoksorange.gui.parameterform
        • ewoksorange.gui.parameterform.default_deserialize
        • ewoksorange.gui.parameterform.default_serialize
        • ewoksorange.gui.parameterform.ParameterForm
      • ewoksorange.gui.qtsignals
        • ewoksorange.gui.qtsignals.block_signals
      • ewoksorange.gui.simpletypesmixin
        • ewoksorange.gui.simpletypesmixin.IntegerAdderMixin
        • ewoksorange.gui.simpletypesmixin.SimpleTypesWidgetMixin
    • ewoksorange.oasys_patch
    • ewoksorange.orange_version
    • ewoksorange.pkg_meta
      • ewoksorange.pkg_meta.get_distribution
      • ewoksorange.pkg_meta.get_distribution_name
    • ewoksorange.registration
      • ewoksorange.registration.get_owwidget_descriptions
      • ewoksorange.registration.register_owwidget
      • ewoksorange.registration.widget_discovery
    • ewoksorange.tests
      • ewoksorange.tests.conftest
        • ewoksorange.tests.conftest.collect_garbage
        • ewoksorange.tests.conftest.ewoks_orange_canvas
        • ewoksorange.tests.conftest.global_cleanup_orange
        • ewoksorange.tests.conftest.global_cleanup_pytest
        • ewoksorange.tests.conftest.qtapp
        • ewoksorange.tests.conftest.raw_ewoks_orange_canvas
        • ewoksorange.tests.conftest.safe_session_fixture
        • ewoksorange.tests.conftest.warn_qtwidgets_alive
      • ewoksorange.tests.examples
        • ewoksorange.tests.examples.tasks
        • ewoksorange.tests.examples.widgets
      • ewoksorange.tests.test_OneThreadPerRun
        • ewoksorange.tests.test_OneThreadPerRun.test_OWEwoksWidgetOneThreadPerRun
        • ewoksorange.tests.test_OneThreadPerRun.DummyTask
        • ewoksorange.tests.test_OneThreadPerRun.MyObject
        • ewoksorange.tests.test_OneThreadPerRun.OWEwoksWidgetOneThreadPerRun
      • ewoksorange.tests.test_default_widget
        • ewoksorange.tests.test_default_widget.test_default_widgets
        • ewoksorange.tests.test_default_widget.Dummy
      • ewoksorange.tests.test_dynamic_link
        • ewoksorange.tests.test_dynamic_link.test_dynamic_link
        • ewoksorange.tests.test_dynamic_link.EwoksOrangeWidget
        • ewoksorange.tests.test_dynamic_link.EwoksTask
        • ewoksorange.tests.test_dynamic_link.Mother
        • ewoksorange.tests.test_dynamic_link.NativeWidget
        • ewoksorange.tests.test_dynamic_link.SubClass
      • ewoksorange.tests.test_examples
        • ewoksorange.tests.test_examples.test_convert_graph
        • ewoksorange.tests.test_examples.test_execute_graph
      • ewoksorange.tests.test_execute_task
        • ewoksorange.tests.test_execute_task.test_failure_with_output_changed_failure
        • ewoksorange.tests.test_execute_task.test_failure_with_propagation_and_output_changed_failure
        • ewoksorange.tests.test_execute_task.test_failure_with_propagation_failure
        • ewoksorange.tests.test_execute_task.test_success_with_output_changed_failure
        • ewoksorange.tests.test_execute_task.test_success_with_propagation_and_output_changed_failure
        • ewoksorange.tests.test_execute_task.test_success_with_propagation_failure
        • ewoksorange.tests.test_execute_task.test_task_init_failure
        • ewoksorange.tests.test_execute_task.test_task_run_failure
        • ewoksorange.tests.test_execute_task.test_task_success
        • ewoksorange.tests.test_execute_task.NoThreadTestWidget
        • ewoksorange.tests.test_execute_task.OneThreadPerRunTestWidget
        • ewoksorange.tests.test_execute_task.OneThreadTestWidget
        • ewoksorange.tests.test_execute_task.PatchCalls
        • ewoksorange.tests.test_execute_task.TaskForTesting
        • ewoksorange.tests.test_execute_task.TaskStackTestWidget
      • ewoksorange.tests.test_listoperations
        • ewoksorange.tests.test_listoperations.test_listgenerator
        • ewoksorange.tests.test_listoperations.test_printsum
        • ewoksorange.tests.test_listoperations.test_sumlist
      • ewoksorange.tests.test_ows_conversion
        • ewoksorange.tests.test_ows_conversion.test_ewoks_to_ows
        • ewoksorange.tests.test_ows_conversion.test_ows_to_ewoks_sumlist_tutorial
        • ewoksorange.tests.test_ows_conversion.test_ows_to_ewoks_sumtask_tutorial
      • ewoksorange.tests.test_parameterform
        • ewoksorange.tests.test_parameterform.test_parameterform
      • ewoksorange.tests.test_sumtask
        • ewoksorange.tests.test_sumtask.test_sumtask
        • ewoksorange.tests.test_sumtask.test_sumtask_missing_inputs
        • ewoksorange.tests.test_sumtask.test_sumtask_task_generator
      • ewoksorange.tests.test_task_executor
        • ewoksorange.tests.test_task_executor.test_cancel_current_task_in_task_executor_queue
        • ewoksorange.tests.test_task_executor.test_task_executor
        • ewoksorange.tests.test_task_executor.test_threaded_task_executor
        • ewoksorange.tests.test_task_executor.test_threaded_task_executor_queue
      • ewoksorange.tests.test_tasks
        • ewoksorange.tests.test_tasks.test_sumtask_task
        • ewoksorange.tests.test_tasks.test_sumtask_widget
      • ewoksorange.tests.test_tutorials
        • ewoksorange.tests.test_tutorials.assert_mixed_tutorial_with_qt
        • ewoksorange.tests.test_tutorials.assert_mixed_tutorial_without_qt
        • ewoksorange.tests.test_tutorials.assert_sumlist_tutorial_with_qt
        • ewoksorange.tests.test_tutorials.assert_sumlist_tutorial_without_qt
        • ewoksorange.tests.test_tutorials.assert_sumtask_tutorial_with_qt
        • ewoksorange.tests.test_tutorials.assert_sumtask_tutorial_without_qt
        • ewoksorange.tests.test_tutorials.test_list_operations_with_qt
        • ewoksorange.tests.test_tutorials.test_list_operations_without_qt
        • ewoksorange.tests.test_tutorials.test_mixed_tutorial_with_qt
        • ewoksorange.tests.test_tutorials.test_mixed_tutorial_without_qt
        • ewoksorange.tests.test_tutorials.test_sumtask_tutorial_with_qt
        • ewoksorange.tests.test_tutorials.test_sumtask_tutorial_without_qt
      • ewoksorange.tests.test_workflow_events
        • ewoksorange.tests.test_workflow_events.assert_failed_workfow_events
        • ewoksorange.tests.test_workflow_events.assert_succesfull_workfow_events
        • ewoksorange.tests.test_workflow_events.execute_graph
        • ewoksorange.tests.test_workflow_events.test_failed_workfow
        • ewoksorange.tests.test_workflow_events.test_succesfull_workfow
      • ewoksorange.tests.utils
        • ewoksorange.tests.utils.execute_task
  • ewoks orange API
  • ewoksorange
  • ewoksorange.tests
  • ewoksorange.tests.test_dynamic_link
  • ewoksorange.tests.test_dynamic_link.SubClass

ewoksorange.tests.test_dynamic_link.SubClass#

class ewoksorange.tests.test_dynamic_link.SubClass[source]#

Bases: Mother

as_integer_ratio()#

Return integer ratio.

Return a pair of integers, whose ratio is exactly equal to the original int and with a positive denominator.

>>> (10).as_integer_ratio()
(10, 1)
>>> (-10).as_integer_ratio()
(-10, 1)
>>> (0).as_integer_ratio()
(0, 1)
bit_length()#

Number of bits necessary to represent self in binary.

>>> bin(37)
'0b100101'
>>> (37).bit_length()
6
conjugate()#

Returns self, the complex conjugate of any int.

denominator#

the denominator of a rational number in lowest terms

from_bytes(byteorder, *, signed=False)#

Return the integer represented by the given array of bytes.

bytes

Holds the array of bytes to convert. The argument must either support the buffer protocol or be an iterable object producing bytes. Bytes and bytearray are examples of built-in objects that support the buffer protocol.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.

signed

Indicates whether two’s complement is used to represent the integer.

imag#

the imaginary part of a complex number

numerator#

the numerator of a rational number in lowest terms

real#

the real part of a complex number

to_bytes(length, byteorder, *, signed=False)#

Return an array of bytes representing an integer.

length

Length of bytes object to use. An OverflowError is raised if the integer is not representable with the given number of bytes.

byteorder

The byte order used to represent the integer. If byteorder is ‘big’, the most significant byte is at the beginning of the byte array. If byteorder is ‘little’, the most significant byte is at the end of the byte array. To request the native byte order of the host system, use `sys.byteorder’ as the byte order value.

signed

Determines whether two’s complement is used to represent the integer. If signed is False and a negative integer is given, an OverflowError is raised.

previous

ewoksorange.tests.test_dynamic_link.NativeWidget

next

ewoksorange.tests.test_examples

On this page
  • SubClass
    • SubClass.as_integer_ratio()
    • SubClass.bit_length()
    • SubClass.conjugate()
    • SubClass.denominator
    • SubClass.from_bytes()
    • SubClass.imag
    • SubClass.numerator
    • SubClass.real
    • SubClass.to_bytes()

This Page

  • Show Source

© Copyright 2021-2025, ESRF.

ewoksorange 2.0.1