sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_empty_over_span) function_name_empty_over_span
(parameters
(identifier_self) identifier_self
(identifier_time) identifier_time
(identifier_duration) identifier_duration
)parameters
(block
(for_statement
(identifier_seg) identifier_seg
(attribute
(identifier_self) identifier_self
(identifier_segments) identifier_segments
)attribute
(block
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_seg) identifier_seg
(identifier_comp_location_in_seconds) identifier_comp_location_in_seconds
)attribute
(identifier_time) identifier_time
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(attribute
(identifier_seg) identifier_seg
(identifier_comp_location_in_seconds) identifier_comp_location_in_seconds
)attribute
(binary_operator
(identifier_time) identifier_time
(identifier_duration) identifier_duration
)binary_operator
)comparison_operator
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(binary_operator
(attribute
(identifier_seg) identifier_seg
(identifier_comp_location_in_seconds) identifier_comp_location_in_seconds
)attribute
(attribute
(identifier_seg) identifier_seg
(identifier_duration_in_seconds) identifier_duration_in_seconds
)attribute
)binary_operator
(identifier_time) identifier_time
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(binary_operator
(attribute
(identifier_seg) identifier_seg
(identifier_comp_location_in_seconds) identifier_comp_location_in_seconds
)attribute
(attribute
(identifier_seg) identifier_seg
(identifier_duration_in_seconds) identifier_duration_in_seconds
)attribute
)binary_operator
(binary_operator
(identifier_time) identifier_time
(identifier_duration) identifier_duration
)binary_operator
)comparison_operator
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
)elif_clause
(elif_clause
(boolean_operator
(comparison_operator
(attribute
(identifier_seg) identifier_seg
(identifier_comp_location_in_seconds) identifier_comp_location_in_seconds
)attribute
(identifier_time) identifier_time
)comparison_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(binary_operator
(attribute
(identifier_seg) identifier_seg
(identifier_comp_location_in_seconds) identifier_comp_location_in_seconds
)attribute
(attribute
(identifier_seg) identifier_seg
(identifier_duration_in_seconds) identifier_duration_in_seconds
)attribute
)binary_operator
(binary_operator
(identifier_time) identifier_time
(identifier_duration) identifier_duration
)binary_operator
)comparison_operator
)boolean_operator
(block
(return_statement
(False) False
)return_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Helper method that tests whether composition contains any segments
at a given time for a given duration.
:param time: Time (in seconds) to start span
:param duration: Duration (in seconds) of span
:returns: `True` if there are no segments in the composition that overlap the span starting at `time` and lasting for `duration` seconds. `False` otherwise. |
(module
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_self) identifier_self
(identifier_auth) identifier_auth
(identifier_resource) identifier_resource
(identifier_value) identifier_value
(default_parameter
(identifier_options) identifier_options
(dictionary
)dictionary
)default_parameter
(default_parameter
(identifier_defer) identifier_defer
(False) False
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__call) identifier__call
)attribute
(argument_list
(string_'write') string_'write'
(identifier_auth) identifier_auth
(list
(identifier_resource) identifier_resource
(identifier_value) identifier_value
(identifier_options) identifier_options
)list
(identifier_defer) identifier_defer
)argument_list
)call
)return_statement
)block
)function_definition
)module | Writes a single value to the resource specified.
Args:
auth: cik for authentication.
resource: resource to write to.
value: value to write
options: options. |
(module
(function_definition
(function_name_now) function_name_now
(parameters
(default_parameter
(identifier_tzinfo) identifier_tzinfo
(True) True
)default_parameter
)parameters
(block
(if_statement
(identifier_dj_now) identifier_dj_now
(block
(return_statement
(call
(identifier_dj_now) identifier_dj_now
(argument_list
)argument_list
)call
)return_statement
)block
)if_statement
(if_statement
(identifier_tzinfo) identifier_tzinfo
(block
(return_statement
(call
(attribute
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_utcnow) identifier_utcnow
)attribute
(argument_list
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(keyword_argument
(identifier_tzinfo) identifier_tzinfo
(identifier_utc) identifier_utc
)keyword_argument
)argument_list
)call
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_now) identifier_now
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return an aware or naive datetime.datetime, depending on settings.USE_TZ. |
(module
(function_definition
(function_name_detect_encoding) function_name_detect_encoding
(parameters
(identifier_value) identifier_value
)parameters
(block
(if_statement
(attribute
(identifier_six) identifier_six
(identifier_PY2) identifier_PY2
)attribute
(block
(expression_statement
(assignment
(identifier_null_pattern) identifier_null_pattern
(call
(identifier_tuple) identifier_tuple
(generator_expression
(call
(identifier_bool) identifier_bool
(argument_list
(call
(identifier_ord) identifier_ord
(argument_list
(identifier_char) identifier_char
)argument_list
)call
)argument_list
)call
(for_in_clause
(identifier_char) identifier_char
(subscript
(identifier_value) identifier_value
(slice
(colon) colon
(integer_4) integer_4
)slice
)subscript
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_null_pattern) identifier_null_pattern
(call
(identifier_tuple) identifier_tuple
(generator_expression
(call
(identifier_bool) identifier_bool
(argument_list
(identifier_char) identifier_char
)argument_list
)call
(for_in_clause
(identifier_char) identifier_char
(subscript
(identifier_value) identifier_value
(slice
(colon) colon
(integer_4) integer_4
)slice
)subscript
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_encodings) identifier_encodings
(dictionary
(pair
(tuple
(integer_0) integer_0
(integer_0) integer_0
(integer_0) integer_0
(integer_1) integer_1
)tuple
(string_'utf-32-be') string_'utf-32-be'
)pair
(pair
(tuple
(integer_0) integer_0
(integer_1) integer_1
(integer_0) integer_0
(integer_1) integer_1
)tuple
(string_'utf-16-be') string_'utf-16-be'
)pair
(pair
(tuple
(integer_1) integer_1
(integer_0) integer_0
(integer_0) integer_0
(integer_0) integer_0
)tuple
(string_'utf-32-le') string_'utf-32-le'
)pair
(pair
(tuple
(integer_1) integer_1
(integer_0) integer_0
(integer_1) integer_1
(integer_0) integer_0
)tuple
(string_'utf-16-le') string_'utf-16-le'
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_encodings) identifier_encodings
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_null_pattern) identifier_null_pattern
(string_'utf-8') string_'utf-8'
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns the character encoding for a JSON string. |
(module
(function_definition
(function_name__create_training_directories) function_name__create_training_directories
(parameters
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_'Creating a new training folder under %s .') string_'Creating a new training folder under %s .'
(identifier_base_dir) identifier_base_dir
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(identifier_model_dir) identifier_model_dir
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(identifier_input_config_dir) identifier_input_config_dir
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(identifier_output_data_dir) identifier_output_data_dir
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier__write_json) identifier__write_json
(argument_list
(dictionary
)dictionary
(identifier_hyperparameters_file_dir) identifier_hyperparameters_file_dir
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier__write_json) identifier__write_json
(argument_list
(dictionary
)dictionary
(identifier_input_data_config_file_dir) identifier_input_data_config_file_dir
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_host_name) identifier_host_name
(call
(attribute
(identifier_socket) identifier_socket
(identifier_gethostname) identifier_gethostname
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resources_dict) identifier_resources_dict
(dictionary
(pair
(string_"current_host") string_"current_host"
(identifier_host_name) identifier_host_name
)pair
(pair
(string_"hosts") string_"hosts"
(list
(identifier_host_name) identifier_host_name
)list
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(call
(identifier__write_json) identifier__write_json
(argument_list
(identifier_resources_dict) identifier_resources_dict
(identifier_resource_config_file_dir) identifier_resource_config_file_dir
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Creates the directory structure and files necessary for training under the base path |
(module
(function_definition
(function_name_get_institution) function_name_get_institution
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_qualifier) identifier_qualifier
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'qualifier') string_'qualifier'
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'content') string_'content'
(string_'') string_''
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_qualifier) identifier_qualifier
(string_'grantor') string_'grantor'
)comparison_operator
(block
(return_statement
(identifier_content) identifier_content
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Get the dissertation institution. |
(module
(function_definition
(function_name_list_proxy) function_name_list_proxy
(parameters
(default_parameter
(identifier_root_package) identifier_root_package
(string_'vlcp') string_'vlcp'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_proxy_dict) identifier_proxy_dict
(call
(identifier_OrderedDict) identifier_OrderedDict
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_pkg) identifier_pkg
(call
(identifier___import__) identifier___import__
(argument_list
(identifier_root_package) identifier_root_package
(keyword_argument
(identifier_fromlist) identifier_fromlist
(list
(string_'_') string_'_'
)list
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_imp) identifier_imp
(identifier_module) identifier_module
(identifier__) identifier__
)pattern_list
(call
(identifier_walk_packages) identifier_walk_packages
(argument_list
(attribute
(identifier_pkg) identifier_pkg
(identifier___path__) identifier___path__
)attribute
(binary_operator
(identifier_root_package) identifier_root_package
(string_'.') string_'.'
)binary_operator
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_m) identifier_m
(call
(identifier___import__) identifier___import__
(argument_list
(identifier_module) identifier_module
(keyword_argument
(identifier_fromlist) identifier_fromlist
(list
(string_'_') string_'_'
)list
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier__) identifier__
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(call
(identifier_vars) identifier_vars
(argument_list
(identifier_m) identifier_m
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(boolean_operator
(boolean_operator
(boolean_operator
(boolean_operator
(comparison_operator
(identifier_v) identifier_v
(None) None
)comparison_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_v) identifier_v
(identifier_type) identifier_type
)argument_list
)call
)boolean_operator
(call
(identifier_issubclass) identifier_issubclass
(argument_list
(identifier_v) identifier_v
(identifier__ProxyModule) identifier__ProxyModule
)argument_list
)call
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(identifier_v) identifier_v
(identifier__ProxyModule) identifier__ProxyModule
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(comparison_operator
(attribute
(identifier_v) identifier_v
(identifier___module__) identifier___module__
)attribute
(identifier_module) identifier_module
)comparison_operator
)boolean_operator
(line_continuation_\) line_continuation_\
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_v) identifier_v
(string_'_default') string_'_default'
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(attribute
(identifier_v) identifier_v
(identifier___name__) identifier___name__
)attribute
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_name) identifier_name
(identifier_proxy_dict) identifier_proxy_dict
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_proxy_dict) identifier_proxy_dict
(identifier_name) identifier_name
)subscript
(dictionary
(pair
(string_'defaultmodule') string_'defaultmodule'
(call
(attribute
(attribute
(attribute
(identifier_v) identifier_v
(identifier__default) identifier__default
)attribute
(identifier___name__) identifier___name__
)attribute
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)pair
(pair
(string_'class') string_'class'
(call
(identifier_repr) identifier_repr
(argument_list
(binary_operator
(binary_operator
(attribute
(attribute
(identifier_v) identifier_v
(identifier__default) identifier__default
)attribute
(identifier___module__) identifier___module__
)attribute
(string_'.') string_'.'
)binary_operator
(attribute
(attribute
(identifier_v) identifier_v
(identifier__default) identifier__default
)attribute
(identifier___name__) identifier___name__
)attribute
)binary_operator
)argument_list
)call
)pair
)dictionary
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_proxy_dict) identifier_proxy_dict
)return_statement
)block
)function_definition
)module | Walk through all the sub modules, find subclasses of vlcp.server.module._ProxyModule,
list their default values |
(module
(function_definition
(function_name_copy_figure_to_clipboard) function_name_copy_figure_to_clipboard
(parameters
(default_parameter
(identifier_figure) identifier_figure
(string_'gcf') string_'gcf'
)default_parameter
)parameters
(block
(try_statement
(block
(import_statement
(aliased_import
(dotted_name
(identifier_pyqtgraph) identifier_pyqtgraph
)dotted_name
(identifier__p) identifier__p
)aliased_import
)import_statement
(if_statement
(comparison_operator
(identifier_figure) identifier_figure
(string_'gcf') string_'gcf'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_figure) identifier_figure
(call
(attribute
(attribute
(identifier__s) identifier__s
(identifier_pylab) identifier_pylab
)attribute
(identifier_gcf) identifier_gcf
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_path) identifier_path
(call
(attribute
(attribute
(identifier__os) identifier__os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(attribute
(identifier__s) identifier__s
(identifier_settings) identifier_settings
)attribute
(identifier_path_home) identifier_path_home
)attribute
(string_"clipboard.png") string_"clipboard.png"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_figure) identifier_figure
(identifier_savefig) identifier_savefig
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(call
(attribute
(call
(attribute
(attribute
(attribute
(identifier__p) identifier__p
(identifier_QtGui) identifier_QtGui
)attribute
(identifier_QApplication) identifier_QApplication
)attribute
(identifier_instance) identifier_instance
)attribute
(argument_list
)argument_list
)call
(identifier_clipboard) identifier_clipboard
)attribute
(argument_list
)argument_list
)call
(identifier_setImage) identifier_setImage
)attribute
(argument_list
(call
(attribute
(attribute
(identifier__p) identifier__p
(identifier_QtGui) identifier_QtGui
)attribute
(identifier_QImage) identifier_QImage
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(except_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_"This function currently requires pyqtgraph to be installed.") string_"This function currently requires pyqtgraph to be installed."
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Copies the specified figure to the system clipboard. Specifying 'gcf'
will use the current figure. |
(module
(function_definition
(function_name_add) function_name_add
(parameters
(identifier_self) identifier_self
(identifier_recipients) identifier_recipients
)parameters
(block
(if_statement
(identifier_recipients) identifier_recipients
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_recipients) identifier_recipients
(identifier_str) identifier_str
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__recipients) identifier__recipients
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_Recipient) identifier_Recipient
(argument_list
(keyword_argument
(identifier_address) identifier_address
(identifier_recipients) identifier_recipients
)keyword_argument
(keyword_argument
(identifier_parent) identifier_parent
(attribute
(identifier_self) identifier_self
(identifier__parent) identifier__parent
)attribute
)keyword_argument
(keyword_argument
(identifier_field) identifier_field
(attribute
(identifier_self) identifier_self
(identifier__field) identifier__field
)attribute
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_recipients) identifier_recipients
(identifier_Recipient) identifier_Recipient
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__recipients) identifier__recipients
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_recipients) identifier_recipients
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_recipients) identifier_recipients
(identifier_tuple) identifier_tuple
)argument_list
)call
(block
(expression_statement
(assignment
(pattern_list
(identifier_name) identifier_name
(identifier_address) identifier_address
)pattern_list
(identifier_recipients) identifier_recipients
)assignment
)expression_statement
(if_statement
(identifier_address) identifier_address
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__recipients) identifier__recipients
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_Recipient) identifier_Recipient
(argument_list
(keyword_argument
(identifier_address) identifier_address
(identifier_address) identifier_address
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_parent) identifier_parent
(attribute
(identifier_self) identifier_self
(identifier__parent) identifier__parent
)attribute
)keyword_argument
(keyword_argument
(identifier_field) identifier_field
(attribute
(identifier_self) identifier_self
(identifier__field) identifier__field
)attribute
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)elif_clause
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_recipients) identifier_recipients
(identifier_list) identifier_list
)argument_list
)call
(block
(for_statement
(identifier_recipient) identifier_recipient
(identifier_recipients) identifier_recipients
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_recipient) identifier_recipient
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(concatenated_string
(string_'Recipients must be an address string, a ') string_'Recipients must be an address string, a '
(string_'Recipient instance, a (name, address) ') string_'Recipient instance, a (name, address) '
(string_'tuple or a list') string_'tuple or a list'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__track_changes) identifier__track_changes
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Add the supplied recipients to the exiting list
:param recipients: list of either address strings or
tuples (name, address) or dictionary elements
:type recipients: list[str] or list[tuple] or list[dict] |
(module
(function_definition
(function_name_create_highlight) function_name_create_highlight
(parameters
(identifier_self) identifier_self
(identifier_artist) identifier_artist
)parameters
(block
(expression_statement
(assignment
(identifier_highlight) identifier_highlight
(call
(attribute
(identifier_copy) identifier_copy
(identifier_copy) identifier_copy
)attribute
(argument_list
(identifier_artist) identifier_artist
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_highlight) identifier_highlight
(identifier_set) identifier_set
)attribute
(argument_list
(keyword_argument
(identifier_color) identifier_color
(attribute
(identifier_self) identifier_self
(identifier_highlight_color) identifier_highlight_color
)attribute
)keyword_argument
(keyword_argument
(identifier_mec) identifier_mec
(attribute
(identifier_self) identifier_self
(identifier_highlight_color) identifier_highlight_color
)attribute
)keyword_argument
(keyword_argument
(identifier_lw) identifier_lw
(attribute
(identifier_self) identifier_self
(identifier_highlight_width) identifier_highlight_width
)attribute
)keyword_argument
(keyword_argument
(identifier_mew) identifier_mew
(attribute
(identifier_self) identifier_self
(identifier_highlight_width) identifier_highlight_width
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_artist) identifier_artist
(identifier_axes) identifier_axes
)attribute
(identifier_add_artist) identifier_add_artist
)attribute
(argument_list
(identifier_highlight) identifier_highlight
)argument_list
)call
)expression_statement
(return_statement
(identifier_highlight) identifier_highlight
)return_statement
)block
)function_definition
)module | Create a new highlight for the given artist. |
(module
(function_definition
(function_name_showEvent) function_name_showEvent
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(expression_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_CodeEdit) identifier_CodeEdit
(identifier_self) identifier_self
)argument_list
)call
(identifier_showEvent) identifier_showEvent
)attribute
(argument_list
(identifier_event) identifier_event
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_panels) identifier_panels
)attribute
(identifier_refresh) identifier_refresh
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Overrides showEvent to update the viewport margins |
(module
(function_definition
(function_name_browsers) function_name_browsers
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_browser) identifier_browser
(None) None
)default_parameter
(default_parameter
(identifier_browser_version) identifier_browser_version
(None) None
)default_parameter
(default_parameter
(identifier_device) identifier_device
(None) None
)default_parameter
(default_parameter
(identifier_os) identifier_os
(None) None
)default_parameter
(default_parameter
(identifier_os_version) identifier_os_version
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_'GET') string_'GET'
(string_'/screenshots/browsers.json') string_'/screenshots/browsers.json'
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(call
(identifier_locals) identifier_locals
(argument_list
)argument_list
)call
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(identifier_key) identifier_key
(tuple
(string_'self') string_'self'
(string_'response') string_'response'
)tuple
)comparison_operator
(not_operator
(identifier_value) identifier_value
)not_operator
)boolean_operator
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(list_comprehension
(identifier_item) identifier_item
(for_in_clause
(identifier_item) identifier_item
(identifier_response) identifier_response
)for_in_clause
(if_clause
(call
(identifier_match_item) identifier_match_item
(argument_list
(identifier_key) identifier_key
(identifier_value) identifier_value
(identifier_item) identifier_item
)argument_list
)call
)if_clause
)list_comprehension
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_response) identifier_response
)return_statement
)block
)function_definition
)module | Returns list of available browsers & OS. |
(module
(function_definition
(function_name_get_bounce) function_name_get_bounce
(parameters
(identifier_bounce_id) identifier_bounce_id
(default_parameter
(identifier_api_key) identifier_api_key
(None) None
)default_parameter
(default_parameter
(identifier_secure) identifier_secure
(None) None
)default_parameter
(default_parameter
(identifier_test) identifier_test
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_request_args) identifier_request_args
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier__default_bounce) identifier__default_bounce
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_bounce_id) identifier_bounce_id
(keyword_argument
(identifier_api_key) identifier_api_key
(identifier_api_key) identifier_api_key
)keyword_argument
(keyword_argument
(identifier_secure) identifier_secure
(identifier_secure) identifier_secure
)keyword_argument
(keyword_argument
(identifier_test) identifier_test
(identifier_test) identifier_test
)keyword_argument
(dictionary_splat
(identifier_request_args) identifier_request_args
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get a single bounce.
:param bounce_id: The bounce's id. Get the id with :func:`get_bounces`.
:param api_key: Your Postmark API key. Required, if `test` is not `True`.
:param secure: Use the https scheme for the Postmark API.
Defaults to `True`
:param test: Use the Postmark Test API. Defaults to `False`.
:param \*\*request_args: Keyword arguments to pass to
:func:`requests.request`.
:rtype: :class:`BounceResponse` |
(module
(function_definition
(function_name_selectisnot) function_name_selectisnot
(parameters
(identifier_table) identifier_table
(identifier_field) identifier_field
(identifier_value) identifier_value
(default_parameter
(identifier_complement) identifier_complement
(False) False
)default_parameter
)parameters
(block
(return_statement
(call
(identifier_selectop) identifier_selectop
(argument_list
(identifier_table) identifier_table
(identifier_field) identifier_field
(identifier_value) identifier_value
(attribute
(identifier_operator) identifier_operator
(identifier_is_not) identifier_is_not
)attribute
(keyword_argument
(identifier_complement) identifier_complement
(identifier_complement) identifier_complement
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Select rows where the given field `is not` the given value. |
(module
(function_definition
(function_name_match) function_name_match
(parameters
(identifier_self) identifier_self
(identifier_row) identifier_row
)parameters
(block
(for_statement
(identifier_condition) identifier_condition
(attribute
(identifier_self) identifier_self
(identifier__conditions) identifier__conditions
)attribute
(block
(if_statement
(call
(attribute
(identifier_condition) identifier_condition
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_row) identifier_row
)argument_list
)call
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Returns True if the row matches one or more child conditions. Returns False otherwise.
:param dict row: The row.
:rtype: bool |
(module
(function_definition
(function_name_as_set) function_name_as_set
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_include_weak) identifier_include_weak
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_rv) identifier_rv
(call
(identifier_set) identifier_set
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__strong) identifier__strong
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_include_weak) identifier_include_weak
(block
(expression_statement
(call
(attribute
(identifier_rv) identifier_rv
(identifier_update) identifier_update
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__weak) identifier__weak
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_rv) identifier_rv
)return_statement
)block
)function_definition
)module | Convert the `ETags` object into a python set. Per default all the
weak etags are not part of this set. |
(module
(function_definition
(function_name_copy) function_name_copy
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_model) identifier_model
(call
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__database) identifier__database
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_model) identifier_model
(identifier__limits_lower) identifier__limits_lower
)attribute
(call
(identifier_dict) identifier_dict
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__limits_lower) identifier__limits_lower
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_model) identifier_model
(identifier__limits_upper) identifier__limits_upper
)attribute
(call
(identifier_dict) identifier_dict
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__limits_upper) identifier__limits_upper
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_model) identifier_model
(identifier__reaction_set) identifier__reaction_set
)attribute
(call
(identifier_set) identifier_set
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__reaction_set) identifier__reaction_set
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_model) identifier_model
(identifier__compound_set) identifier__compound_set
)attribute
(call
(identifier_set) identifier_set
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__compound_set) identifier__compound_set
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_model) identifier_model
)return_statement
)block
)function_definition
)module | Return copy of model |
(module
(function_definition
(function_name_spit) function_name_spit
(parameters
(identifier_path) identifier_path
(identifier_txt) identifier_txt
(default_parameter
(identifier_encoding) identifier_encoding
(string_'UTF-8') string_'UTF-8'
)default_parameter
(default_parameter
(identifier_append) identifier_append
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_mode) identifier_mode
(conditional_expression
(string_'a') string_'a'
(identifier_append) identifier_append
(string_'w') string_'w'
)conditional_expression
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_io) identifier_io
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_path) identifier_path
(identifier_mode) identifier_mode
(keyword_argument
(identifier_encoding) identifier_encoding
(identifier_encoding) identifier_encoding
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_f) identifier_f
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_txt) identifier_txt
)argument_list
)call
)expression_statement
(return_statement
(identifier_txt) identifier_txt
)return_statement
)block
)with_statement
)block
)function_definition
)module | Write a unicode string `txt` to file `path`.
By default encoded as UTF-8 and truncates the file prior to writing
Parameters
----------
path : str
File path to file on disk
txt : unicode
Text content to write to file
encoding : str, default `UTF-8`, optional
Encoding of the file
append : Boolean, default False
Append to file instead of truncating before writing
Returns
-------
The txt written to the file as a unicode string |
(module
(function_definition
(function_name_get_name) function_name_get_name
(parameters
(identifier_self) identifier_self
(identifier_tag) identifier_tag
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_functionTagProcessor) identifier_functionTagProcessor
(identifier_self) identifier_self
)argument_list
)call
(identifier_get_name) identifier_get_name
)attribute
(argument_list
(identifier_tag) identifier_tag
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_include_function_signatures) identifier_include_function_signatures
)attribute
(block
(expression_statement
(assignment
(identifier_func_args) identifier_func_args
(call
(attribute
(identifier_tag) identifier_tag
(identifier_findChild) identifier_findChild
)attribute
(argument_list
(string_'arglist') string_'arglist'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_func_args) identifier_func_args
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_func_args) identifier_func_args
(identifier_contents) identifier_contents
)attribute
)argument_list
)call
)boolean_operator
(block
(expression_statement
(augmented_assignment
(identifier_name) identifier_name
(subscript
(attribute
(identifier_func_args) identifier_func_args
(identifier_contents) identifier_contents
)attribute
(integer_0) integer_0
)subscript
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ret_type) identifier_ret_type
(call
(attribute
(identifier_tag) identifier_tag
(identifier_findChild) identifier_findChild
)attribute
(argument_list
(string_'type') string_'type'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_ret_type) identifier_ret_type
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_ret_type) identifier_ret_type
(identifier_contents) identifier_contents
)attribute
)argument_list
)call
)boolean_operator
(block
(expression_statement
(augmented_assignment
(identifier_name) identifier_name
(binary_operator
(string_' -> ') string_' -> '
(subscript
(attribute
(identifier_ret_type) identifier_ret_type
(identifier_contents) identifier_contents
)attribute
(integer_0) integer_0
)subscript
)binary_operator
)augmented_assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_name) identifier_name
)return_statement
)block
)function_definition
)module | Override. Extract a representative "name" from a function tag.
get_name's output can be controlled through keyword arguments that are
provided when initializing a functionTagProcessor. For instance,
function arguments and return types can be included by passing
include_function_signatures=True to __init__().
Args:
tag: A BeautifulSoup Tag for a function.
Returns:
A string that would be appropriate to use as an entry name for a
function in a Zeal database. |
(module
(function_definition
(function_name_create_element) function_name_create_element
(parameters
(identifier_self) identifier_self
(identifier_ns) identifier_ns
(identifier_name) identifier_name
)parameters
(block
(expression_statement
(assignment
(identifier_elem) identifier_elem
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__node) identifier__node
)attribute
(identifier_makeelement) identifier_makeelement
)attribute
(argument_list
(binary_operator
(string_'{%s}%s') string_'{%s}%s'
(tuple
(subscript
(attribute
(identifier_SLDNode) identifier_SLDNode
(identifier__nsmap) identifier__nsmap
)attribute
(identifier_ns) identifier_ns
)subscript
(identifier_name) identifier_name
)tuple
)binary_operator
(keyword_argument
(identifier_nsmap) identifier_nsmap
(attribute
(identifier_SLDNode) identifier_SLDNode
(identifier__nsmap) identifier__nsmap
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__node) identifier__node
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_elem) identifier_elem
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_self) identifier_self
(identifier_name) identifier_name
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create an element as a child of this SLDNode.
@type ns: string
@param ns: The namespace of the new element.
@type name: string
@param name: The name of the new element.
@rtype: L{SLDNode}
@return: The wrapped node, in the parent's property class. This will
always be a descendent of SLDNode. |
(module
(function_definition
(function_name_write_yaml) function_name_write_yaml
(parameters
(identifier_filename) identifier_filename
(identifier_content) identifier_content
)parameters
(block
(expression_statement
(assignment
(identifier_y) identifier_y
(call
(attribute
(identifier__yaml) identifier__yaml
(identifier_dump) identifier_dump
)attribute
(argument_list
(identifier_content) identifier_content
(keyword_argument
(identifier_indent) identifier_indent
(integer_4) integer_4
)keyword_argument
(keyword_argument
(identifier_default_flow_style) identifier_default_flow_style
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_y) identifier_y
(block
(return_statement
(call
(identifier_write_file) identifier_write_file
(argument_list
(identifier_filename) identifier_filename
(identifier_y) identifier_y
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | Writes YAML files
:param filename:
The full path to the YAML file
:param content:
The content to dump
:returns:
The size written |
(module
(function_definition
(function_name_subscribe) function_name_subscribe
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_topic) identifier_topic
(string_b'') string_b''
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_sockets) identifier_sockets
)attribute
(attribute
(identifier_zmq) identifier_zmq
(identifier_SUB) identifier_SUB
)attribute
)subscript
(identifier_setsockopt) identifier_setsockopt
)attribute
(argument_list
(attribute
(identifier_zmq) identifier_zmq
(identifier_SUBSCRIBE) identifier_SUBSCRIBE
)attribute
(identifier_topic) identifier_topic
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_poller) identifier_poller
(subscript
(attribute
(identifier_self) identifier_self
(identifier_pollers) identifier_pollers
)attribute
(attribute
(identifier_zmq) identifier_zmq
(identifier_SUB) identifier_SUB
)attribute
)subscript
)assignment
)expression_statement
(return_statement
(identifier_poller) identifier_poller
)return_statement
)block
)function_definition
)module | subscribe to the SUB socket, to listen for incomming variables, return a stream that can be listened to. |
(module
(function_definition
(function_name_get_context_data) function_name_get_context_data
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_context) identifier_context
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_ScheduleXmlView) identifier_ScheduleXmlView
(identifier_self) identifier_self
)argument_list
)call
(identifier_get_context_data) identifier_get_context_data
)attribute
(argument_list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_GET) identifier_GET
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_'render_description') string_'render_description'
(None) None
)argument_list
)call
(string_'1') string_'1'
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_context) identifier_context
(string_'render_description') string_'render_description'
)subscript
(True) True
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_context) identifier_context
(string_'render_description') string_'render_description'
)subscript
(False) False
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_context) identifier_context
)return_statement
)block
)function_definition
)module | Allow adding a 'render_description' parameter |
(module
(function_definition
(function_name_get_article) function_name_get_article
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_url) identifier_url
(None) None
)default_parameter
(default_parameter
(identifier_article_id) identifier_article_id
(None) None
)default_parameter
(default_parameter
(identifier_max_pages) identifier_max_pages
(integer_25) integer_25
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_query_params) identifier_query_params
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_url) identifier_url
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_query_params) identifier_query_params
(string_'url') string_'url'
)subscript
(identifier_url) identifier_url
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_article_id) identifier_article_id
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_query_params) identifier_query_params
(string_'article_id') string_'article_id'
)subscript
(identifier_article_id) identifier_article_id
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_query_params) identifier_query_params
(string_'max_pages') string_'max_pages'
)subscript
(identifier_max_pages) identifier_max_pages
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_self) identifier_self
(identifier__generate_url) identifier__generate_url
)attribute
(argument_list
(string_'parser') string_'parser'
(keyword_argument
(identifier_query_params) identifier_query_params
(identifier_query_params) identifier_query_params
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)return_statement
)block
)function_definition
)module | Send a GET request to the `parser` endpoint of the parser API to get
back the representation of an article.
The article can be identified by either a URL or an id that exists
in Readability.
Note that either the `url` or `article_id` param should be passed.
:param url (optional): The url of an article whose content is wanted.
:param article_id (optional): The id of an article in the Readability
system whose content is wanted.
:param max_pages: The maximum number of pages to parse and combine.
The default is 25. |
(module
(function_definition
(function_name__init_training) function_name__init_training
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_check) identifier_check
)attribute
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_backprop) identifier_backprop
)attribute
(call
(identifier_CheckedBackprop) identifier_CheckedBackprop
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_network) identifier_network
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_problem) identifier_problem
)attribute
(identifier_cost) identifier_cost
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_backprop) identifier_backprop
)attribute
(call
(identifier_BatchBackprop) identifier_BatchBackprop
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_network) identifier_network
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_problem) identifier_problem
)attribute
(identifier_cost) identifier_cost
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_momentum) identifier_momentum
)attribute
(call
(identifier_Momentum) identifier_Momentum
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_decent) identifier_decent
)attribute
(call
(identifier_GradientDecent) identifier_GradientDecent
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_decay) identifier_decay
)attribute
(call
(identifier_WeightDecay) identifier_WeightDecay
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_tying) identifier_tying
)attribute
(call
(identifier_WeightTying) identifier_WeightTying
(argument_list
(list_splat
(attribute
(attribute
(identifier_self) identifier_self
(identifier_problem) identifier_problem
)attribute
(identifier_weight_tying) identifier_weight_tying
)attribute
)list_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_weights) identifier_weights
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_tying) identifier_tying
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_weights) identifier_weights
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Classes needed during training. |
(module
(function_definition
(function_name_setup_request_sessions) function_name_setup_request_sessions
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_req_session) identifier_req_session
)attribute
(call
(attribute
(identifier_requests) identifier_requests
(identifier_Session) identifier_Session
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_req_session) identifier_req_session
)attribute
(identifier_headers) identifier_headers
)attribute
(identifier_update) identifier_update
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_headers) identifier_headers
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Sets up a requests.Session object for sharing headers across API requests. |
(module
(function_definition
(function_name_peek) function_name_peek
(parameters
(identifier_self) identifier_self
(identifier_length) identifier_length
)parameters
(block
(return_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_string) identifier_string
)attribute
(slice
(attribute
(identifier_self) identifier_self
(identifier_pos) identifier_pos
)attribute
(colon) colon
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_pos) identifier_pos
)attribute
(identifier_length) identifier_length
)binary_operator
)slice
)subscript
)return_statement
)block
)function_definition
)module | Get a number of characters without advancing the scan pointer.
>>> s = Scanner("test string")
>>> s.peek(7)
'test st'
>>> s.peek(7)
'test st' |
(module
(function_definition
(function_name_read_csv) function_name_read_csv
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_dtype) identifier_dtype
(False) False
)default_parameter
(default_parameter
(identifier_parse_dates) identifier_parse_dates
(True) True
)default_parameter
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(import_statement
(dotted_name
(identifier_pandas) identifier_pandas
)dotted_name
)import_statement
(expression_statement
(assignment
(identifier_t) identifier_t
(call
(attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_resolved_url) identifier_resolved_url
)attribute
(identifier_get_resource) identifier_get_resource
)attribute
(argument_list
)argument_list
)call
(identifier_get_target) identifier_get_target
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_kwargs) identifier_kwargs
(call
(attribute
(identifier_self) identifier_self
(identifier__update_pandas_kwargs) identifier__update_pandas_kwargs
)attribute
(argument_list
(identifier_dtype) identifier_dtype
(identifier_parse_dates) identifier_parse_dates
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_pandas) identifier_pandas
(identifier_read_csv) identifier_read_csv
)attribute
(argument_list
(attribute
(identifier_t) identifier_t
(identifier_fspath) identifier_fspath
)attribute
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Fetch the target and pass through to pandas.read_csv
Don't provide the first argument of read_csv(); it is supplied internally. |
(module
(function_definition
(function_name_AddHeadwayPeriodObject) function_name_AddHeadwayPeriodObject
(parameters
(identifier_self) identifier_self
(identifier_headway_period) identifier_headway_period
(identifier_problem_reporter) identifier_problem_reporter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(concatenated_string
(string_"No longer supported. The HeadwayPeriod class was renamed to ") string_"No longer supported. The HeadwayPeriod class was renamed to "
(string_"Frequency, and all related functions were renamed ") string_"Frequency, and all related functions were renamed "
(string_"accordingly.") string_"accordingly."
)concatenated_string
(identifier_DeprecationWarning) identifier_DeprecationWarning
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_AddFrequencyObject) identifier_AddFrequencyObject
)attribute
(argument_list
(identifier_frequency) identifier_frequency
(identifier_problem_reporter) identifier_problem_reporter
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Deprecated. Please use AddFrequencyObject instead. |
(module
(function_definition
(function_name_make_fake_data) function_name_make_fake_data
(parameters
(identifier_g) identifier_g
(default_parameter
(identifier_fac) identifier_fac
(float_1.0) float_1.0
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_g) identifier_g
(string_'keys') string_'keys'
)argument_list
)call
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_g) identifier_g
(identifier_BufferDict) identifier_BufferDict
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_g) identifier_g
(call
(identifier_BufferDict) identifier_BufferDict
(argument_list
(identifier_g) identifier_g
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_BufferDict) identifier_BufferDict
(argument_list
(identifier_g) identifier_g
(keyword_argument
(identifier_buf) identifier_buf
(call
(identifier_make_fake_data) identifier_make_fake_data
(argument_list
(attribute
(identifier_g) identifier_g
(identifier_buf) identifier_buf
)attribute
(identifier_fac) identifier_fac
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_g_shape) identifier_g_shape
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_shape) identifier_shape
)attribute
(argument_list
(identifier_g) identifier_g
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_g_flat) identifier_g_flat
(attribute
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_g) identifier_g
)argument_list
)call
(identifier_flat) identifier_flat
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_zero) identifier_zero
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_g_flat) identifier_g_flat
)argument_list
)call
(identifier_float) identifier_float
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dg) identifier_dg
(binary_operator
(parenthesized_expression
(binary_operator
(float_2.) float_2.
(unary_operator
(float_0.5) float_0.5
)unary_operator
)binary_operator
)parenthesized_expression
(call
(identifier_gvar) identifier_gvar
(argument_list
(identifier_zero) identifier_zero
(call
(identifier_evalcov) identifier_evalcov
(argument_list
(identifier_g_flat) identifier_g_flat
)argument_list
)call
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_dg) identifier_dg
(identifier_fac) identifier_fac
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_noise) identifier_noise
(call
(identifier_gvar) identifier_gvar
(argument_list
(identifier_zero) identifier_zero
(call
(identifier_sdev) identifier_sdev
(argument_list
(identifier_dg) identifier_dg
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_g_flat) identifier_g_flat
(binary_operator
(binary_operator
(binary_operator
(call
(identifier_mean) identifier_mean
(argument_list
(identifier_g_flat) identifier_g_flat
)argument_list
)call
(identifier_dg) identifier_dg
)binary_operator
(identifier_noise) identifier_noise
)binary_operator
(call
(identifier_next) identifier_next
(argument_list
(call
(identifier_raniter) identifier_raniter
(argument_list
(binary_operator
(identifier_dg) identifier_dg
(identifier_noise) identifier_noise
)binary_operator
)argument_list
)call
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(return_statement
(conditional_expression
(subscript
(identifier_g_flat) identifier_g_flat
(integer_0) integer_0
)subscript
(comparison_operator
(identifier_g_shape) identifier_g_shape
(tuple
)tuple
)comparison_operator
(call
(attribute
(identifier_g_flat) identifier_g_flat
(identifier_reshape) identifier_reshape
)attribute
(argument_list
(identifier_g_shape) identifier_g_shape
)argument_list
)call
)conditional_expression
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Make fake data based on ``g``.
This function replaces the |GVar|\s in ``g`` by new |GVar|\s with similar
means and a similar covariance matrix, but multiplied by ``fac**2`` (so
standard deviations are ``fac`` times smaller). The changes are random.
The function was designed to create fake data for testing fitting
routines, where ``g`` is set equal to ``fitfcn(x, prior)`` and ``fac<1``
(e.g., set ``fac=0.1`` to get fit parameters whose standard deviations
are 10x smaller than those of the corresponding priors).
Args:
g (dict, array or gvar.GVar): The |GVar| or array of |GVar|\s,
or dictionary whose values are |GVar|\s or arrays of |GVar|\s that
from which the fake data is generated.
fac (float): Uncertainties are rescaled by ``fac`` in the fake data.
Returns:
A collection of |GVar|\s with the same layout as ``g`` but with
somewhat different means, and standard deviations rescaled by ``fac``. |
(module
(function_definition
(function_name__must_be_deleted) function_name__must_be_deleted
(parameters
(identifier_local_path) identifier_local_path
(identifier_r_st) identifier_r_st
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_lexists) identifier_lexists
)attribute
(argument_list
(identifier_local_path) identifier_local_path
)argument_list
)call
)not_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_l_st) identifier_l_st
(call
(attribute
(identifier_os) identifier_os
(identifier_lstat) identifier_lstat
)attribute
(argument_list
(identifier_local_path) identifier_local_path
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_S_IFMT) identifier_S_IFMT
(argument_list
(attribute
(identifier_r_st) identifier_r_st
(identifier_st_mode) identifier_st_mode
)attribute
)argument_list
)call
(call
(identifier_S_IFMT) identifier_S_IFMT
(argument_list
(attribute
(identifier_l_st) identifier_l_st
(identifier_st_mode) identifier_st_mode
)attribute
)argument_list
)call
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module | Return True if the remote correspondent of local_path has to be deleted.
i.e. if it doesn't exists locally or if it has a different type from the remote one. |
(module
(function_definition
(function_name_parse_broken_json) function_name_parse_broken_json
(parameters
(typed_parameter
(identifier_json_text) identifier_json_text
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_dict) identifier_dict
)type
(block
(expression_statement
(assignment
(identifier_json_text) identifier_json_text
(call
(attribute
(identifier_json_text) identifier_json_text
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_":") string_":"
(string_": ") string_": "
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_json_dict) identifier_json_dict
(call
(attribute
(identifier_yaml) identifier_yaml
(identifier_load) identifier_load
)attribute
(argument_list
(identifier_json_text) identifier_json_text
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_json_dict) identifier_json_dict
)return_statement
)block
)function_definition
)module | Parses broken JSON that the standard Python JSON module cannot parse.
Ex: {success:true}
Keys do not contain quotes and the JSON cannot be parsed using the regular json encoder.
YAML happens to be a superset of JSON and can parse json without quotes. |
(module
(function_definition
(function_name_methods) function_name_methods
(parameters
(identifier_self) identifier_self
)parameters
(type
(string_'PrettyDir') string_'PrettyDir'
)type
(block
(return_statement
(call
(identifier_PrettyDir) identifier_PrettyDir
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_obj) identifier_obj
)attribute
(list_comprehension
(identifier_pattr) identifier_pattr
(for_in_clause
(identifier_pattr) identifier_pattr
(attribute
(identifier_self) identifier_self
(identifier_pattrs) identifier_pattrs
)attribute
)for_in_clause
(if_clause
(call
(identifier_category_match) identifier_category_match
(argument_list
(attribute
(identifier_pattr) identifier_pattr
(identifier_category) identifier_category
)attribute
(attribute
(identifier_AttrCategory) identifier_AttrCategory
(identifier_FUNCTION) identifier_FUNCTION
)attribute
)argument_list
)call
)if_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns all methods of the inspected object.
Note that "methods" can mean "functions" when inspecting a module. |
(module
(function_definition
(function_name_unique) function_name_unique
(parameters
(identifier_lst) identifier_lst
)parameters
(block
(expression_statement
(assignment
(identifier_seen) identifier_seen
(call
(identifier_set) identifier_set
(argument_list
)argument_list
)call
)assignment
)expression_statement
(function_definition
(function_name_make_seen) function_name_make_seen
(parameters
(identifier_x) identifier_x
)parameters
(block
(expression_statement
(call
(attribute
(identifier_seen) identifier_seen
(identifier_add) identifier_add
)attribute
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)expression_statement
(return_statement
(identifier_x) identifier_x
)return_statement
)block
)function_definition
(return_statement
(list_comprehension
(call
(identifier_make_seen) identifier_make_seen
(argument_list
(identifier_x) identifier_x
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(identifier_lst) identifier_lst
)for_in_clause
(if_clause
(comparison_operator
(identifier_x) identifier_x
(identifier_seen) identifier_seen
)comparison_operator
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Return unique elements
:class:`pandas.unique` and :class:`numpy.unique` cast
mixed type lists to the same type. They are faster, but
some times we want to maintain the type.
Parameters
----------
lst : list-like
List of items
Returns
-------
out : list
Unique items in the order that they appear in the
input.
Examples
--------
>>> import pandas as pd
>>> import numpy as np
>>> lst = ['one', 'two', 123, 'three']
>>> pd.unique(lst)
array(['one', 'two', '123', 'three'], dtype=object)
>>> np.unique(lst)
array(['123', 'one', 'three', 'two'],
dtype='<U5')
>>> unique(lst)
['one', 'two', 123, 'three']
pandas and numpy cast 123 to a string!, and numpy does not
even maintain the order. |
(module
(function_definition
(function_name_draw_identity_line) function_name_draw_identity_line
(parameters
(default_parameter
(identifier_ax) identifier_ax
(None) None
)default_parameter
(default_parameter
(identifier_dynamic) identifier_dynamic
(True) True
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_ax) identifier_ax
(boolean_operator
(identifier_ax) identifier_ax
(call
(attribute
(identifier_plt) identifier_plt
(identifier_gca) identifier_gca
)attribute
(argument_list
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(if_statement
(boolean_operator
(comparison_operator
(string_'c') string_'c'
(identifier_kwargs) identifier_kwargs
)comparison_operator
(comparison_operator
(string_'color') string_'color'
(identifier_kwargs) identifier_kwargs
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'color') string_'color'
)subscript
(identifier_LINE_COLOR) identifier_LINE_COLOR
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_'alpha') string_'alpha'
(identifier_kwargs) identifier_kwargs
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_kwargs) identifier_kwargs
(string_'alpha') string_'alpha'
)subscript
(float_0.5) float_0.5
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_identity) identifier_identity
)pattern_list
(call
(attribute
(identifier_ax) identifier_ax
(identifier_plot) identifier_plot
)attribute
(argument_list
(list
)list
(list
)list
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(function_definition
(function_name_callback) function_name_callback
(parameters
(identifier_ax) identifier_ax
)parameters
(block
(expression_statement
(assignment
(identifier_xlim) identifier_xlim
(call
(attribute
(identifier_ax) identifier_ax
(identifier_get_xlim) identifier_get_xlim
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ylim) identifier_ylim
(call
(attribute
(identifier_ax) identifier_ax
(identifier_get_ylim) identifier_get_ylim
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(tuple
(call
(identifier_max) identifier_max
(argument_list
(subscript
(identifier_xlim) identifier_xlim
(integer_0) integer_0
)subscript
(subscript
(identifier_ylim) identifier_ylim
(integer_0) integer_0
)subscript
)argument_list
)call
(call
(identifier_min) identifier_min
(argument_list
(subscript
(identifier_xlim) identifier_xlim
(integer_1) integer_1
)subscript
(subscript
(identifier_ylim) identifier_ylim
(integer_1) integer_1
)subscript
)argument_list
)call
)tuple
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_identity) identifier_identity
(identifier_set_data) identifier_set_data
)attribute
(argument_list
(identifier_data) identifier_data
(identifier_data) identifier_data
)argument_list
)call
)expression_statement
)block
)function_definition
(expression_statement
(call
(identifier_callback) identifier_callback
(argument_list
(identifier_ax) identifier_ax
)argument_list
)call
)expression_statement
(if_statement
(identifier_dynamic) identifier_dynamic
(block
(expression_statement
(call
(attribute
(attribute
(identifier_ax) identifier_ax
(identifier_callbacks) identifier_callbacks
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(string_'xlim_changed') string_'xlim_changed'
(identifier_callback) identifier_callback
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_ax) identifier_ax
(identifier_callbacks) identifier_callbacks
)attribute
(identifier_connect) identifier_connect
)attribute
(argument_list
(string_'ylim_changed') string_'ylim_changed'
(identifier_callback) identifier_callback
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_ax) identifier_ax
)return_statement
)block
)function_definition
)module | Draws a 45 degree identity line such that y=x for all points within the
given axes x and y limits. This function also registeres a callback so
that as the figure is modified, the axes are updated and the line remains
drawn correctly.
Parameters
----------
ax : matplotlib Axes, default: None
The axes to plot the figure on. If None is passed in the current axes
will be used (or generated if required).
dynamic : bool, default : True
If the plot is dynamic, callbacks will be registered to update the
identiy line as axes are changed.
kwargs : dict
Keyword arguments to pass to the matplotlib plot function to style the
identity line.
Returns
-------
ax : matplotlib Axes
The axes with the line drawn on it.
Notes
-----
.. seealso:: `StackOverflow discussion: Does matplotlib have a function for drawing diagonal lines in axis coordinates? <https://stackoverflow.com/questions/22104256/does-matplotlib-have-a-function-for-drawing-diagonal-lines-in-axis-coordinates>`_ |
(module
(function_definition
(function_name__proc_dihedral) function_name__proc_dihedral
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_main_axis) identifier_main_axis
(identifier_rot) identifier_rot
)pattern_list
(call
(identifier_max) identifier_max
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_rot_sym) identifier_rot_sym
)attribute
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_v) identifier_v
)lambda_parameters
(subscript
(identifier_v) identifier_v
(integer_1) integer_1
)subscript
)lambda
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_sch_symbol) identifier_sch_symbol
)attribute
(call
(attribute
(string_"D{}") string_"D{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_rot) identifier_rot
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mirror_type) identifier_mirror_type
(call
(attribute
(identifier_self) identifier_self
(identifier__find_mirror) identifier__find_mirror
)attribute
(argument_list
(identifier_main_axis) identifier_main_axis
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_mirror_type) identifier_mirror_type
(string_"h") string_"h"
)comparison_operator
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_sch_symbol) identifier_sch_symbol
)attribute
(string_"h") string_"h"
)augmented_assignment
)expression_statement
)block
(elif_clause
(not_operator
(comparison_operator
(identifier_mirror_type) identifier_mirror_type
(string_"") string_""
)comparison_operator
)not_operator
(block
(expression_statement
(augmented_assignment
(attribute
(identifier_self) identifier_self
(identifier_sch_symbol) identifier_sch_symbol
)attribute
(string_"d") string_"d"
)augmented_assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Handles dihedral group molecules, i.e those with intersecting R2 axes
and a main axis. |
(module
(function_definition
(function_name_peak_generation_per_technology_and_weather_cell) function_name_peak_generation_per_technology_and_weather_cell
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_peak_generation) identifier_peak_generation
(call
(identifier_defaultdict) identifier_defaultdict
(argument_list
(identifier_float) identifier_float
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_gen) identifier_gen
(attribute
(identifier_self) identifier_self
(identifier_generators) identifier_generators
)attribute
(block
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_gen) identifier_gen
(string_'weather_cell_id') string_'weather_cell_id'
)argument_list
)call
(block
(if_statement
(comparison_operator
(tuple
(attribute
(identifier_gen) identifier_gen
(identifier_type) identifier_type
)attribute
(attribute
(identifier_gen) identifier_gen
(identifier_weather_cell_id) identifier_weather_cell_id
)attribute
)tuple
(call
(attribute
(identifier_peak_generation) identifier_peak_generation
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)comparison_operator
(block
(expression_statement
(augmented_assignment
(subscript
(identifier_peak_generation) identifier_peak_generation
(attribute
(identifier_gen) identifier_gen
(identifier_type) identifier_type
)attribute
(attribute
(identifier_gen) identifier_gen
(identifier_weather_cell_id) identifier_weather_cell_id
)attribute
)subscript
(attribute
(identifier_gen) identifier_gen
(identifier_nominal_capacity) identifier_nominal_capacity
)attribute
)augmented_assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(subscript
(identifier_peak_generation) identifier_peak_generation
(attribute
(identifier_gen) identifier_gen
(identifier_type) identifier_type
)attribute
(attribute
(identifier_gen) identifier_gen
(identifier_weather_cell_id) identifier_weather_cell_id
)attribute
)subscript
(attribute
(identifier_gen) identifier_gen
(identifier_nominal_capacity) identifier_nominal_capacity
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(call
(attribute
(concatenated_string
(string_'No weather cell ID found for ') string_'No weather cell ID found for '
(string_'generator {}.') string_'generator {}.'
)concatenated_string
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_repr) identifier_repr
(argument_list
(identifier_gen) identifier_gen
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(raise_statement
(call
(identifier_KeyError) identifier_KeyError
(argument_list
(identifier_message) identifier_message
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_series_index) identifier_series_index
(call
(attribute
(attribute
(identifier_pd) identifier_pd
(identifier_MultiIndex) identifier_MultiIndex
)attribute
(identifier_from_tuples) identifier_from_tuples
)attribute
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(identifier_peak_generation) identifier_peak_generation
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(keyword_argument
(identifier_names) identifier_names
(list
(string_'type') string_'type'
(string_'weather_cell_id') string_'weather_cell_id'
)list
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_pd) identifier_pd
(identifier_Series) identifier_Series
)attribute
(argument_list
(identifier_peak_generation) identifier_peak_generation
(keyword_argument
(identifier_index) identifier_index
(identifier_series_index) identifier_series_index
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Peak generation of each technology and the
corresponding weather cell in the grid
Returns
-------
:pandas:`pandas.Series<series>`
Peak generation index by technology |
(module
(function_definition
(function_name_parse_substitution_from_list) function_name_parse_substitution_from_list
(parameters
(identifier_list_rep) identifier_list_rep
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_list_rep) identifier_list_rep
)argument_list
)call
(identifier_list) identifier_list
)comparison_operator
(block
(raise_statement
(call
(identifier_SyntaxError) identifier_SyntaxError
(argument_list
(string_'Substitution must be a list') string_'Substitution must be a list'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_list_rep) identifier_list_rep
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(raise_statement
(call
(identifier_SyntaxError) identifier_SyntaxError
(argument_list
(string_'Substitution must be a list of size 2') string_'Substitution must be a list of size 2'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_pattern) identifier_pattern
(subscript
(identifier_list_rep) identifier_list_rep
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_replacement) identifier_replacement
(subscript
(identifier_list_rep) identifier_list_rep
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_is_multiline) identifier_is_multiline
(False) False
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_list_rep) identifier_list_rep
)argument_list
)call
(integer_2) integer_2
)comparison_operator
)parenthesized_expression
(block
(expression_statement
(assignment
(identifier_is_multiline) identifier_is_multiline
(subscript
(identifier_list_rep) identifier_list_rep
(integer_2) integer_2
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_is_multiline) identifier_is_multiline
)argument_list
)call
(identifier_bool) identifier_bool
)comparison_operator
(block
(raise_statement
(call
(identifier_SyntaxError) identifier_SyntaxError
(argument_list
(string_'is_multiline must be a boolean') string_'is_multiline must be a boolean'
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_substitute) identifier_substitute
(identifier_Substitution) identifier_Substitution
)attribute
(argument_list
(identifier_pattern) identifier_pattern
(identifier_replacement) identifier_replacement
(identifier_is_multiline) identifier_is_multiline
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Parse a substitution from the list representation in the config file. |
(module
(function_definition
(function_name_symmetry_reduce) function_name_symmetry_reduce
(parameters
(identifier_tensors) identifier_tensors
(identifier_structure) identifier_structure
(default_parameter
(identifier_tol) identifier_tol
(float_1e-8) float_1e-8
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_sga) identifier_sga
(call
(identifier_SpacegroupAnalyzer) identifier_SpacegroupAnalyzer
(argument_list
(identifier_structure) identifier_structure
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_symmops) identifier_symmops
(call
(attribute
(identifier_sga) identifier_sga
(identifier_get_symmetry_operations) identifier_get_symmetry_operations
)attribute
(argument_list
(keyword_argument
(identifier_cartesian) identifier_cartesian
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_unique_mapping) identifier_unique_mapping
(call
(identifier_TensorMapping) identifier_TensorMapping
(argument_list
(list
(subscript
(identifier_tensors) identifier_tensors
(integer_0) integer_0
)subscript
)list
(list
(list
)list
)list
(keyword_argument
(identifier_tol) identifier_tol
(identifier_tol) identifier_tol
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_tensor) identifier_tensor
(subscript
(identifier_tensors) identifier_tensors
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
(block
(expression_statement
(assignment
(identifier_is_unique) identifier_is_unique
(True) True
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_unique_tensor) identifier_unique_tensor
(identifier_symmop) identifier_symmop
)pattern_list
(call
(attribute
(identifier_itertools) identifier_itertools
(identifier_product) identifier_product
)attribute
(argument_list
(identifier_unique_mapping) identifier_unique_mapping
(identifier_symmops) identifier_symmops
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_allclose) identifier_allclose
)attribute
(argument_list
(call
(attribute
(identifier_unique_tensor) identifier_unique_tensor
(identifier_transform) identifier_transform
)attribute
(argument_list
(identifier_symmop) identifier_symmop
)argument_list
)call
(identifier_tensor) identifier_tensor
(keyword_argument
(identifier_atol) identifier_atol
(identifier_tol) identifier_tol
)keyword_argument
)argument_list
)call
(block
(expression_statement
(call
(attribute
(subscript
(identifier_unique_mapping) identifier_unique_mapping
(identifier_unique_tensor) identifier_unique_tensor
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_symmop) identifier_symmop
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_is_unique) identifier_is_unique
(False) False
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
(if_statement
(identifier_is_unique) identifier_is_unique
(block
(expression_statement
(assignment
(subscript
(identifier_unique_mapping) identifier_unique_mapping
(identifier_tensor) identifier_tensor
)subscript
(list
)list
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_unique_mapping) identifier_unique_mapping
)return_statement
)block
)function_definition
)module | Function that converts a list of tensors corresponding to a structure
and returns a dictionary consisting of unique tensor keys with symmop
values corresponding to transformations that will result in derivative
tensors from the original list
Args:
tensors (list of tensors): list of Tensor objects to test for
symmetrically-equivalent duplicates
structure (Structure): structure from which to get symmetry
tol (float): tolerance for tensor equivalence
kwargs: keyword arguments for the SpacegroupAnalyzer
returns:
dictionary consisting of unique tensors with symmetry operations
corresponding to those which will reconstruct the remaining
tensors as values |
(module
(function_definition
(function_name_create_comment) function_name_create_comment
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
)parameters
(block
(return_statement
(call
(attribute
(identifier_DashboardComment) identifier_DashboardComment
(identifier_get_or_create) identifier_get_or_create
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__issue_or_pr) identifier__issue_or_pr
)attribute
(attribute
(identifier_self) identifier_self
(identifier__header) identifier__header
)attribute
(identifier_text) identifier_text
)argument_list
)call
)return_statement
)block
)function_definition
)module | Mimic issue API, so we can use it everywhere.
Return dashboard comment. |
(module
(function_definition
(function_name_extract_cpio) function_name_extract_cpio
(parameters
(identifier_archive) identifier_archive
(identifier_compression) identifier_compression
(identifier_cmd) identifier_cmd
(identifier_verbosity) identifier_verbosity
(identifier_interactive) identifier_interactive
(identifier_outdir) identifier_outdir
)parameters
(block
(expression_statement
(assignment
(identifier_cmdlist) identifier_cmdlist
(list
(call
(attribute
(identifier_util) identifier_util
(identifier_shell_quote) identifier_shell_quote
)attribute
(argument_list
(identifier_cmd) identifier_cmd
)argument_list
)call
(string_'--extract') string_'--extract'
(string_'--make-directories') string_'--make-directories'
(string_'--preserve-modification-time') string_'--preserve-modification-time'
)list
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_platform) identifier_platform
)attribute
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'linux') string_'linux'
)argument_list
)call
(not_operator
(call
(attribute
(identifier_cmd) identifier_cmd
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_'bsdcpio') string_'bsdcpio'
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_cmdlist) identifier_cmdlist
(identifier_extend) identifier_extend
)attribute
(argument_list
(list
(string_'--no-absolute-filenames') string_'--no-absolute-filenames'
(string_'--force-local') string_'--force-local'
(string_'--nonmatching') string_'--nonmatching'
(string_r'"*\.\.*"') string_r'"*\.\.*"'
)list
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_verbosity) identifier_verbosity
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_cmdlist) identifier_cmdlist
(identifier_append) identifier_append
)attribute
(argument_list
(string_'-v') string_'-v'
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_cmdlist) identifier_cmdlist
(identifier_extend) identifier_extend
)attribute
(argument_list
(list
(string_'<') string_'<'
(call
(attribute
(identifier_util) identifier_util
(identifier_shell_quote) identifier_shell_quote
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_abspath) identifier_abspath
)attribute
(argument_list
(identifier_archive) identifier_archive
)argument_list
)call
)argument_list
)call
)list
)argument_list
)call
)expression_statement
(return_statement
(tuple
(identifier_cmdlist) identifier_cmdlist
(dictionary
(pair
(string_'cwd') string_'cwd'
(identifier_outdir) identifier_outdir
)pair
(pair
(string_'shell') string_'shell'
(True) True
)pair
)dictionary
)tuple
)return_statement
)block
)function_definition
)module | Extract a CPIO archive. |
(module
(function_definition
(function_name_enumerate_spans) function_name_enumerate_spans
(parameters
(typed_parameter
(identifier_sentence) identifier_sentence
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(identifier_T) identifier_T
)type
)type_parameter
)generic_type
)type
)typed_parameter
(typed_default_parameter
(identifier_offset) identifier_offset
(type
(identifier_int) identifier_int
)type
(integer_0) integer_0
)typed_default_parameter
(typed_default_parameter
(identifier_max_span_width) identifier_max_span_width
(type
(identifier_int) identifier_int
)type
(None) None
)typed_default_parameter
(typed_default_parameter
(identifier_min_span_width) identifier_min_span_width
(type
(identifier_int) identifier_int
)type
(integer_1) integer_1
)typed_default_parameter
(typed_default_parameter
(identifier_filter_function) identifier_filter_function
(type
(generic_type
(identifier_Callable) identifier_Callable
(type_parameter
(type
(list
(subscript
(identifier_List) identifier_List
(identifier_T) identifier_T
)subscript
)list
)type
(type
(identifier_bool) identifier_bool
)type
)type_parameter
)generic_type
)type
(None) None
)typed_default_parameter
)parameters
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(identifier_int) identifier_int
)type
(type
(identifier_int) identifier_int
)type
)type_parameter
)generic_type
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(assignment
(identifier_max_span_width) identifier_max_span_width
(boolean_operator
(identifier_max_span_width) identifier_max_span_width
(call
(identifier_len) identifier_len
(argument_list
(identifier_sentence) identifier_sentence
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_filter_function) identifier_filter_function
(boolean_operator
(identifier_filter_function) identifier_filter_function
(parenthesized_expression
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(True) True
)lambda
)parenthesized_expression
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_spans) identifier_spans
(type
(generic_type
(identifier_List) identifier_List
(type_parameter
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(identifier_int) identifier_int
)type
(type
(identifier_int) identifier_int
)type
)type_parameter
)generic_type
)type
)type_parameter
)generic_type
)type
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_start_index) identifier_start_index
(call
(identifier_range) identifier_range
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_sentence) identifier_sentence
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_last_end_index) identifier_last_end_index
(call
(identifier_min) identifier_min
(argument_list
(binary_operator
(identifier_start_index) identifier_start_index
(identifier_max_span_width) identifier_max_span_width
)binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_sentence) identifier_sentence
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_first_end_index) identifier_first_end_index
(call
(identifier_min) identifier_min
(argument_list
(binary_operator
(binary_operator
(identifier_start_index) identifier_start_index
(identifier_min_span_width) identifier_min_span_width
)binary_operator
(integer_1) integer_1
)binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_sentence) identifier_sentence
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_end_index) identifier_end_index
(call
(identifier_range) identifier_range
(argument_list
(identifier_first_end_index) identifier_first_end_index
(identifier_last_end_index) identifier_last_end_index
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_start) identifier_start
(binary_operator
(identifier_offset) identifier_offset
(identifier_start_index) identifier_start_index
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_end) identifier_end
(binary_operator
(identifier_offset) identifier_offset
(identifier_end_index) identifier_end_index
)binary_operator
)assignment
)expression_statement
(if_statement
(call
(identifier_filter_function) identifier_filter_function
(argument_list
(subscript
(identifier_sentence) identifier_sentence
(call
(identifier_slice) identifier_slice
(argument_list
(identifier_start_index) identifier_start_index
(binary_operator
(identifier_end_index) identifier_end_index
(integer_1) integer_1
)binary_operator
)argument_list
)call
)subscript
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_spans) identifier_spans
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_start) identifier_start
(identifier_end) identifier_end
)tuple
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_spans) identifier_spans
)return_statement
)block
)function_definition
)module | Given a sentence, return all token spans within the sentence. Spans are `inclusive`.
Additionally, you can provide a maximum and minimum span width, which will be used
to exclude spans outside of this range.
Finally, you can provide a function mapping ``List[T] -> bool``, which will
be applied to every span to decide whether that span should be included. This
allows filtering by length, regex matches, pos tags or any Spacy ``Token``
attributes, for example.
Parameters
----------
sentence : ``List[T]``, required.
The sentence to generate spans for. The type is generic, as this function
can be used with strings, or Spacy ``Tokens`` or other sequences.
offset : ``int``, optional (default = 0)
A numeric offset to add to all span start and end indices. This is helpful
if the sentence is part of a larger structure, such as a document, which
the indices need to respect.
max_span_width : ``int``, optional (default = None)
The maximum length of spans which should be included. Defaults to len(sentence).
min_span_width : ``int``, optional (default = 1)
The minimum length of spans which should be included. Defaults to 1.
filter_function : ``Callable[[List[T]], bool]``, optional (default = None)
A function mapping sequences of the passed type T to a boolean value.
If ``True``, the span is included in the returned spans from the
sentence, otherwise it is excluded.. |
(module
(function_definition
(function_name___decode_timehex) function_name___decode_timehex
(parameters
(identifier_self) identifier_self
(identifier_timehex) identifier_timehex
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_year) identifier_year
(identifier_month) identifier_month
(identifier_day) identifier_day
(identifier_hour) identifier_hour
(identifier_minute) identifier_minute
(identifier_second) identifier_second
)pattern_list
(call
(identifier_unpack) identifier_unpack
(argument_list
(string_"6B") string_"6B"
(identifier_timehex) identifier_timehex
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_year) identifier_year
(integer_2000) integer_2000
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(identifier_datetime) identifier_datetime
(argument_list
(identifier_year) identifier_year
(identifier_month) identifier_month
(identifier_day) identifier_day
(identifier_hour) identifier_hour
(identifier_minute) identifier_minute
(identifier_second) identifier_second
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_d) identifier_d
)return_statement
)block
)function_definition
)module | timehex string of six bytes |
(module
(function_definition
(function_name_paths) function_name_paths
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_paths) identifier_paths
(call
(attribute
(identifier_traversal) identifier_traversal
(identifier_closed_paths) identifier_closed_paths
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_entities) identifier_entities
)attribute
(attribute
(identifier_self) identifier_self
(identifier_vertices) identifier_vertices
)attribute
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_paths) identifier_paths
)return_statement
)block
)function_definition
)module | Sequence of closed paths, encoded by entity index.
Returns
---------
paths: (n,) sequence of (*,) int referencing self.entities |
(module
(function_definition
(function_name_fork) function_name_fork
(parameters
(identifier_executable) identifier_executable
(default_parameter
(identifier_args) identifier_args
(tuple
)tuple
)default_parameter
(default_parameter
(identifier_env) identifier_env
(dictionary
)dictionary
)default_parameter
(default_parameter
(identifier_path) identifier_path
(None) None
)default_parameter
(default_parameter
(identifier_timeout) identifier_timeout
(integer_3600) integer_3600
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(call
(attribute
(identifier_defer) identifier_defer
(identifier_Deferred) identifier_Deferred
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_p) identifier_p
(call
(identifier_ProcessProtocol) identifier_ProcessProtocol
(argument_list
(identifier_d) identifier_d
(identifier_timeout) identifier_timeout
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_reactor) identifier_reactor
(identifier_spawnProcess) identifier_spawnProcess
)attribute
(argument_list
(identifier_p) identifier_p
(identifier_executable) identifier_executable
(binary_operator
(tuple
(identifier_executable) identifier_executable
)tuple
(call
(identifier_tuple) identifier_tuple
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)binary_operator
(identifier_env) identifier_env
(identifier_path) identifier_path
)argument_list
)call
)expression_statement
(return_statement
(identifier_d) identifier_d
)return_statement
)block
)function_definition
)module | fork
Provides a deferred wrapper function with a timeout function
:param executable: Executable
:type executable: str.
:param args: Tupple of arguments
:type args: tupple.
:param env: Environment dictionary
:type env: dict.
:param timeout: Kill the child process if timeout is exceeded
:type timeout: int. |
(module
(function_definition
(function_name_add_to_linestring) function_name_add_to_linestring
(parameters
(identifier_position_data) identifier_position_data
(identifier_kml_linestring) identifier_kml_linestring
)parameters
(block
(global_statement
(identifier_kml) identifier_kml
)global_statement
(expression_statement
(augmented_assignment
(subscript
(identifier_position_data) identifier_position_data
(integer_2) integer_2
)subscript
(call
(identifier_float) identifier_float
(argument_list
(attribute
(identifier_args) identifier_args
(identifier_aoff) identifier_aoff
)attribute
)argument_list
)call
)augmented_assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_kml_linestring) identifier_kml_linestring
(identifier_coords) identifier_coords
)attribute
(identifier_addcoordinates) identifier_addcoordinates
)attribute
(argument_list
(list
(identifier_position_data) identifier_position_data
)list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | add a point to the kml file |
(module
(function_definition
(function_name_reset) function_name_reset
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__variables_shim) identifier__variables_shim
)attribute
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__executable) identifier__executable
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__bitstrings) identifier__bitstrings
)attribute
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_status) identifier_status
)attribute
(string_'connected') string_'connected'
)assignment
)expression_statement
)block
)function_definition
)module | Reset the Quantum Abstract Machine to its initial state, which is particularly useful
when it has gotten into an unwanted state. This can happen, for example, if the QAM
is interrupted in the middle of a run. |
(module
(function_definition
(function_name_human_repr) function_name_human_repr
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier_urlunsplit) identifier_urlunsplit
(argument_list
(call
(identifier_SplitResult) identifier_SplitResult
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_scheme) identifier_scheme
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__make_netloc) identifier__make_netloc
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_user) identifier_user
)attribute
(attribute
(identifier_self) identifier_self
(identifier_password) identifier_password
)attribute
(attribute
(identifier_self) identifier_self
(identifier_host) identifier_host
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__val) identifier__val
)attribute
(identifier_port) identifier_port
)attribute
(keyword_argument
(identifier_encode) identifier_encode
(False) False
)keyword_argument
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
(attribute
(identifier_self) identifier_self
(identifier_query_string) identifier_query_string
)attribute
(attribute
(identifier_self) identifier_self
(identifier_fragment) identifier_fragment
)attribute
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return decoded human readable string for URL representation. |
(module
(function_definition
(function_name_CheckHeader) function_name_CheckHeader
(parameters
(identifier_context) identifier_context
(identifier_header) identifier_header
(default_parameter
(identifier_include_quotes) identifier_include_quotes
(string_'<>') string_'<>'
)default_parameter
(default_parameter
(identifier_language) identifier_language
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_prog_prefix) identifier_prog_prefix
(identifier_hdr_to_check) identifier_hdr_to_check
)pattern_list
(line_continuation_\) line_continuation_\
(call
(identifier_createIncludesFromHeaders) identifier_createIncludesFromHeaders
(argument_list
(identifier_header) identifier_header
(integer_1) integer_1
(identifier_include_quotes) identifier_include_quotes
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(attribute
(identifier_SCons) identifier_SCons
(identifier_Conftest) identifier_Conftest
)attribute
(identifier_CheckHeader) identifier_CheckHeader
)attribute
(argument_list
(identifier_context) identifier_context
(identifier_hdr_to_check) identifier_hdr_to_check
(identifier_prog_prefix) identifier_prog_prefix
(keyword_argument
(identifier_language) identifier_language
(identifier_language) identifier_language
)keyword_argument
(keyword_argument
(identifier_include_quotes) identifier_include_quotes
(identifier_include_quotes) identifier_include_quotes
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_context) identifier_context
(identifier_did_show_result) identifier_did_show_result
)attribute
(integer_1) integer_1
)assignment
)expression_statement
(return_statement
(not_operator
(identifier_res) identifier_res
)not_operator
)return_statement
)block
)function_definition
)module | A test for a C or C++ header file. |
(module
(function_definition
(function_name_on_btn_add_fit) function_name_on_btn_add_fit
(parameters
(identifier_self) identifier_self
(identifier_event) identifier_event
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_auto_save) identifier_auto_save
)attribute
(identifier_GetValue) identifier_GetValue
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_current_fit) identifier_current_fit
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_add_fit) identifier_add_fit
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_s) identifier_s
)attribute
(None) None
(None) None
(None) None
(keyword_argument
(identifier_saved) identifier_saved
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_current_fit) identifier_current_fit
)attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_add_fit) identifier_add_fit
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_s) identifier_s
)attribute
(None) None
(None) None
(None) None
(keyword_argument
(identifier_saved) identifier_saved
(False) False
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_generate_warning_text) identifier_generate_warning_text
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_update_warning_box) identifier_update_warning_box
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_ie_open) identifier_ie_open
)attribute
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_ie) identifier_ie
)attribute
(identifier_update_editor) identifier_update_editor
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_update_fit_boxes) identifier_update_fit_boxes
)attribute
(argument_list
(True) True
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_new_PCA_parameters) identifier_get_new_PCA_parameters
)attribute
(argument_list
(identifier_event) identifier_event
)argument_list
)call
)expression_statement
)block
)function_definition
)module | add a new interpretation to the current specimen
Parameters
----------
event : the wx.ButtonEvent that triggered this function
Alters
------
pmag_results_data |
(module
(function_definition
(function_name_mark_module_skipped) function_name_mark_module_skipped
(parameters
(identifier_self) identifier_self
(identifier_module_name) identifier_module_name
)parameters
(block
(try_statement
(block
(delete_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_modules) identifier_modules
)attribute
(identifier_module_name) identifier_module_name
)subscript
)delete_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_skip_modules) identifier_skip_modules
)attribute
(identifier_module_name) identifier_module_name
)subscript
(True) True
)assignment
)expression_statement
)block
)function_definition
)module | Skip reloading the named module in the future |
(module
(function_definition
(function_name_DeleteInstanceTags) function_name_DeleteInstanceTags
(parameters
(identifier_r) identifier_r
(identifier_instance) identifier_instance
(identifier_tags) identifier_tags
(default_parameter
(identifier_dry_run) identifier_dry_run
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_query) identifier_query
(dictionary
(pair
(string_"tag") string_"tag"
(identifier_tags) identifier_tags
)pair
(pair
(string_"dry-run") string_"dry-run"
(identifier_dry_run) identifier_dry_run
)pair
)dictionary
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_r) identifier_r
(identifier_request) identifier_request
)attribute
(argument_list
(string_"delete") string_"delete"
(binary_operator
(string_"/2/instances/%s/tags") string_"/2/instances/%s/tags"
(identifier_instance) identifier_instance
)binary_operator
(keyword_argument
(identifier_query) identifier_query
(identifier_query) identifier_query
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Deletes tags from an instance.
@type instance: str
@param instance: instance to delete tags from
@type tags: list of str
@param tags: tags to delete
@type dry_run: bool
@param dry_run: whether to perform a dry run |
(module
(function_definition
(function_name_price_oscillator) function_name_price_oscillator
(parameters
(identifier_data) identifier_data
(identifier_short_period) identifier_short_period
(identifier_long_period) identifier_long_period
)parameters
(block
(expression_statement
(call
(attribute
(identifier_catch_errors) identifier_catch_errors
(identifier_check_for_period_error) identifier_check_for_period_error
)attribute
(argument_list
(identifier_data) identifier_data
(identifier_short_period) identifier_short_period
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_catch_errors) identifier_catch_errors
(identifier_check_for_period_error) identifier_check_for_period_error
)attribute
(argument_list
(identifier_data) identifier_data
(identifier_long_period) identifier_long_period
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_ema_short) identifier_ema_short
(call
(identifier_ema) identifier_ema
(argument_list
(identifier_data) identifier_data
(identifier_short_period) identifier_short_period
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ema_long) identifier_ema_long
(call
(identifier_ema) identifier_ema
(argument_list
(identifier_data) identifier_data
(identifier_long_period) identifier_long_period
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_po) identifier_po
(binary_operator
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_ema_short) identifier_ema_short
(identifier_ema_long) identifier_ema_long
)binary_operator
)parenthesized_expression
(identifier_ema_long) identifier_ema_long
)binary_operator
)parenthesized_expression
(integer_100) integer_100
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_po) identifier_po
)return_statement
)block
)function_definition
)module | Price Oscillator.
Formula:
(short EMA - long EMA / long EMA) * 100 |
(module
(function_definition
(function_name_get_remote_port) function_name_get_remote_port
(parameters
(identifier_self) identifier_self
(identifier_tlv_data) identifier_tlv_data
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_ret) identifier_ret
(identifier_parsed_val) identifier_parsed_val
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__check_common_tlv_format) identifier__check_common_tlv_format
)attribute
(argument_list
(identifier_tlv_data) identifier_tlv_data
(string_"\n") string_"\n"
(string_"Port Description TLV") string_"Port Description TLV"
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_ret) identifier_ret
)not_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(subscript
(identifier_parsed_val) identifier_parsed_val
(integer_1) integer_1
)subscript
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Returns Remote Port from the TLV. |
(module
(function_definition
(function_name_symlink_exists) function_name_symlink_exists
(parameters
(identifier_self) identifier_self
(identifier_symlink) identifier_symlink
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_symlink) identifier_symlink
(identifier_basestring) identifier_basestring
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_"symlink can only be an instance of type basestring") string_"symlink can only be an instance of type basestring"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_exists) identifier_exists
(call
(attribute
(identifier_self) identifier_self
(identifier__call) identifier__call
)attribute
(argument_list
(string_"symlinkExists") string_"symlinkExists"
(keyword_argument
(identifier_in_p) identifier_in_p
(list
(identifier_symlink) identifier_symlink
)list
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_exists) identifier_exists
)return_statement
)block
)function_definition
)module | Checks whether a symbolic link exists in the guest.
in symlink of type str
Path to the alleged symbolic link. Guest path style.
return exists of type bool
Returns @c true if the symbolic link exists. Returns @c false if it
does not exist, if the file system object identified by the path is
not a symbolic link, or if the object type is inaccessible to the
user, or if the @a symlink argument is empty.
raises :class:`OleErrorNotimpl`
The method is not implemented yet. |
(module
(function_definition
(function_name_end_subsegment) function_name_end_subsegment
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_end_time) identifier_end_time
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_subsegment) identifier_subsegment
(call
(attribute
(identifier_self) identifier_self
(identifier_get_trace_entity) identifier_get_trace_entity
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__is_subsegment) identifier__is_subsegment
)attribute
(argument_list
(identifier_subsegment) identifier_subsegment
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_subsegment) identifier_subsegment
(identifier_close) identifier_close
)attribute
(argument_list
(identifier_end_time) identifier_end_time
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier__local) identifier__local
)attribute
(identifier_entities) identifier_entities
)attribute
(identifier_pop) identifier_pop
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"No subsegment to end.") string_"No subsegment to end."
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | End the current active segment. Return False if there is no
subsegment to end.
:param int end_time: epoch in seconds. If not specified the current
system time will be used. |
(module
(function_definition
(function_name_respond) function_name_respond
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_req) identifier_req
)attribute
(identifier_server) identifier_server
)attribute
(identifier_wsgi_app) identifier_wsgi_app
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_env) identifier_env
)attribute
(attribute
(identifier_self) identifier_self
(identifier_start_response) identifier_start_response
)attribute
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(for_statement
(identifier_chunk) identifier_chunk
(call
(identifier_filter) identifier_filter
(argument_list
(None) None
(identifier_response) identifier_response
)argument_list
)call
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_chunk) identifier_chunk
(attribute
(identifier_six) identifier_six
(identifier_binary_type) identifier_binary_type
)attribute
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'WSGI Applications must yield bytes') string_'WSGI Applications must yield bytes'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_chunk) identifier_chunk
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(finally_clause
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_req) identifier_req
)attribute
(identifier_ensure_headers_sent) identifier_ensure_headers_sent
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_response) identifier_response
(string_'close') string_'close'
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Process the current request.
From :pep:`333`:
The start_response callable must not actually transmit
the response headers. Instead, it must store them for the
server or gateway to transmit only after the first
iteration of the application return value that yields
a NON-EMPTY string, or upon the application's first
invocation of the write() callable. |
(module
(function_definition
(function_name_find_matching_bracket_position) function_name_find_matching_bracket_position
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_start_pos) identifier_start_pos
(None) None
)default_parameter
(default_parameter
(identifier_end_pos) identifier_end_pos
(None) None
)default_parameter
)parameters
(block
(for_statement
(pattern_list
(identifier_A) identifier_A
(identifier_B) identifier_B
)pattern_list
(expression_list
(string_'()') string_'()'
(string_'[]') string_'[]'
(string_'{}') string_'{}'
(string_'<>') string_'<>'
)expression_list
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_current_char) identifier_current_char
)attribute
(identifier_A) identifier_A
)comparison_operator
(block
(return_statement
(boolean_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_find_enclosing_bracket_right) identifier_find_enclosing_bracket_right
)attribute
(argument_list
(identifier_A) identifier_A
(identifier_B) identifier_B
(keyword_argument
(identifier_end_pos) identifier_end_pos
(identifier_end_pos) identifier_end_pos
)keyword_argument
)argument_list
)call
(integer_0) integer_0
)boolean_operator
)return_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_current_char) identifier_current_char
)attribute
(identifier_B) identifier_B
)comparison_operator
(block
(return_statement
(boolean_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_find_enclosing_bracket_left) identifier_find_enclosing_bracket_left
)attribute
(argument_list
(identifier_A) identifier_A
(identifier_B) identifier_B
(keyword_argument
(identifier_start_pos) identifier_start_pos
(identifier_start_pos) identifier_start_pos
)keyword_argument
)argument_list
)call
(integer_0) integer_0
)boolean_operator
)return_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(return_statement
(integer_0) integer_0
)return_statement
)block
)function_definition
)module | Return relative cursor position of matching [, (, { or < bracket.
When `start_pos` or `end_pos` are given. Don't look past the positions. |
(module
(function_definition
(function_name__lengstr) function_name__lengstr
(parameters
(identifier_obj) identifier_obj
)parameters
(block
(expression_statement
(assignment
(identifier_n) identifier_n
(call
(identifier_leng) identifier_leng
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_n) identifier_n
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(string_'') string_''
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_n) identifier_n
(call
(identifier__len) identifier__len
(argument_list
(identifier_obj) identifier_obj
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(binary_operator
(string_' leng %d!') string_' leng %d!'
(identifier_n) identifier_n
)binary_operator
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(binary_operator
(string_' leng %d') string_' leng %d'
(identifier_n) identifier_n
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_r) identifier_r
)return_statement
)block
)function_definition
)module | Object length as a string. |
(module
(function_definition
(function_name_modify_parameters) function_name_modify_parameters
(parameters
(identifier_self) identifier_self
(identifier_modifier_function) identifier_modifier_function
)parameters
(block
(expression_statement
(assignment
(identifier_baseline_parameters) identifier_baseline_parameters
(attribute
(attribute
(identifier_self) identifier_self
(identifier_baseline) identifier_baseline
)attribute
(identifier_parameters) identifier_parameters
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_baseline_parameters_copy) identifier_baseline_parameters_copy
(call
(attribute
(identifier_copy) identifier_copy
(identifier_deepcopy) identifier_deepcopy
)attribute
(argument_list
(identifier_baseline_parameters) identifier_baseline_parameters
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_reform_parameters) identifier_reform_parameters
(call
(identifier_modifier_function) identifier_modifier_function
(argument_list
(identifier_baseline_parameters_copy) identifier_baseline_parameters_copy
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_reform_parameters) identifier_reform_parameters
(identifier_ParameterNode) identifier_ParameterNode
)argument_list
)call
)not_operator
(block
(return_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_'modifier_function {} in module {} must return a ParameterNode') string_'modifier_function {} in module {} must return a ParameterNode'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_modifier_function) identifier_modifier_function
(identifier___name__) identifier___name__
)attribute
(attribute
(identifier_modifier_function) identifier_modifier_function
(identifier___module__) identifier___module__
)attribute
)argument_list
)call
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_parameters) identifier_parameters
)attribute
(identifier_reform_parameters) identifier_reform_parameters
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__parameters_at_instant_cache) identifier__parameters_at_instant_cache
)attribute
(dictionary
)dictionary
)assignment
)expression_statement
)block
)function_definition
)module | Make modifications on the parameters of the legislation
Call this function in `apply()` if the reform asks for legislation parameter modifications.
:param modifier_function: A function that takes an object of type :any:`ParameterNode` and should return an object of the same type. |
(module
(function_definition
(function_name_update_task_redundancy) function_name_update_task_redundancy
(parameters
(identifier_config) identifier_config
(identifier_task_id) identifier_task_id
(identifier_redundancy) identifier_redundancy
)parameters
(block
(if_statement
(comparison_operator
(identifier_task_id) identifier_task_id
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_msg) identifier_msg
(parenthesized_expression
(string_"Are you sure you want to update all the tasks redundancy?") string_"Are you sure you want to update all the tasks redundancy?"
)parenthesized_expression
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_confirm) identifier_confirm
)attribute
(argument_list
(identifier_msg) identifier_msg
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(identifier__update_tasks_redundancy) identifier__update_tasks_redundancy
(argument_list
(identifier_config) identifier_config
(identifier_task_id) identifier_task_id
(identifier_redundancy) identifier_redundancy
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(identifier_res) identifier_res
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(string_"Aborting.") string_"Aborting."
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(identifier__update_tasks_redundancy) identifier__update_tasks_redundancy
(argument_list
(identifier_config) identifier_config
(identifier_task_id) identifier_task_id
(identifier_redundancy) identifier_redundancy
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(identifier_res) identifier_res
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Update task redudancy for a project. |
(module
(function_definition
(function_name_update_orders) function_name_update_orders
(parameters
(identifier_self) identifier_self
(identifier_market_id) identifier_market_id
(identifier_instructions) identifier_instructions
(default_parameter
(identifier_customer_ref) identifier_customer_ref
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_make_api_request) identifier_make_api_request
)attribute
(argument_list
(string_'Sports') string_'Sports'
(string_'updateOrders') string_'updateOrders'
(call
(attribute
(identifier_utils) identifier_utils
(identifier_get_kwargs) identifier_get_kwargs
)attribute
(argument_list
(call
(identifier_locals) identifier_locals
(argument_list
)argument_list
)call
)argument_list
)call
(keyword_argument
(identifier_model) identifier_model
(attribute
(identifier_models) identifier_models
(identifier_UpdateExecutionReport) identifier_UpdateExecutionReport
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Update non-exposure changing fields.
:param str market_id: The market id these orders are to be placed on
:param list instructions: List of `UpdateInstruction` objects
:param str customer_ref: Optional order identifier string |
(module
(function_definition
(function_name_invalidate) function_name_invalidate
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
)parameters
(block
(if_statement
(comparison_operator
(identifier_key) identifier_key
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(delete_statement
(subscript
(attribute
(identifier_self) identifier_self
(identifier_data) identifier_data
)attribute
(identifier_key) identifier_key
)subscript
)delete_statement
(for_statement
(identifier_cname) identifier_cname
(attribute
(identifier_self) identifier_self
(identifier_components) identifier_components
)attribute
(block
(if_statement
(comparison_operator
(identifier_key) identifier_key
(subscript
(attribute
(identifier_self) identifier_self
(identifier_depends) identifier_depends
)attribute
(identifier_cname) identifier_cname
)subscript
)comparison_operator
(block
(for_statement
(identifier_downstream_key) identifier_downstream_key
(subscript
(attribute
(identifier_self) identifier_self
(identifier_provides) identifier_provides
)attribute
(identifier_cname) identifier_cname
)subscript
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_invalidate) identifier_invalidate
)attribute
(argument_list
(identifier_downstream_key) identifier_downstream_key
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module | Remove the given data item along with all items that depend on it in the graph. |
(module
(function_definition
(function_name_get_job_asset_url) function_name_get_job_asset_url
(parameters
(identifier_self) identifier_self
(identifier_job_id) identifier_job_id
(identifier_filename) identifier_filename
)parameters
(block
(return_statement
(call
(attribute
(string_'https://saucelabs.com/rest/v1/{}/jobs/{}/assets/{}') string_'https://saucelabs.com/rest/v1/{}/jobs/{}/assets/{}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_sauce_username) identifier_sauce_username
)attribute
(identifier_job_id) identifier_job_id
(identifier_filename) identifier_filename
)argument_list
)call
)return_statement
)block
)function_definition
)module | Get details about the static assets collected for a specific job. |
(module
(function_definition
(function_name__wrap_stream_errors) function_name__wrap_stream_errors
(parameters
(identifier_callable_) identifier_callable_
)parameters
(block
(expression_statement
(call
(identifier__patch_callable_name) identifier__patch_callable_name
(argument_list
(identifier_callable_) identifier_callable_
)argument_list
)call
)expression_statement
(decorated_definition
(decorator
(call
(attribute
(identifier_general_helpers) identifier_general_helpers
(identifier_wraps) identifier_wraps
)attribute
(argument_list
(identifier_callable_) identifier_callable_
)argument_list
)call
)decorator
(function_definition
(function_name_error_remapped_callable) function_name_error_remapped_callable
(parameters
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_callable_) identifier_callable_
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier__StreamingResponseIterator) identifier__StreamingResponseIterator
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_grpc) identifier_grpc
(identifier_RpcError) identifier_RpcError
)attribute
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_six) identifier_six
(identifier_raise_from) identifier_raise_from
)attribute
(argument_list
(call
(attribute
(identifier_exceptions) identifier_exceptions
(identifier_from_grpc_error) identifier_from_grpc_error
)attribute
(argument_list
(identifier_exc) identifier_exc
)argument_list
)call
(identifier_exc) identifier_exc
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_error_remapped_callable) identifier_error_remapped_callable
)return_statement
)block
)function_definition
)module | Wrap errors for Unary-Stream and Stream-Stream gRPC callables.
The callables that return iterators require a bit more logic to re-map
errors when iterating. This wraps both the initial invocation and the
iterator of the return value to re-map errors. |
(module
(function_definition
(function_name_from_json) function_name_from_json
(parameters
(identifier_cls) identifier_cls
(identifier_json_obj) identifier_json_obj
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_json_obj) identifier_json_obj
(identifier_str) identifier_str
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_json_obj) identifier_json_obj
(call
(attribute
(identifier_json) identifier_json
(identifier_loads) identifier_loads
)attribute
(argument_list
(identifier_json_obj) identifier_json_obj
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_time) identifier_time
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value) identifier_value
(None) None
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_cls) identifier_cls
(identifier_TIME_FIELD_NAME) identifier_TIME_FIELD_NAME
)attribute
(identifier_json_obj) identifier_json_obj
)comparison_operator
(block
(expression_statement
(assignment
(identifier_time) identifier_time
(subscript
(identifier_json_obj) identifier_json_obj
(attribute
(identifier_cls) identifier_cls
(identifier_TIME_FIELD_NAME) identifier_TIME_FIELD_NAME
)attribute
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_InvalidMetricError) identifier_InvalidMetricError
(argument_list
(call
(attribute
(string_"{field} must be present!") string_"{field} must be present!"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_field) identifier_field
(attribute
(identifier_cls) identifier_cls
(identifier_TIME_FIELD_NAME) identifier_TIME_FIELD_NAME
)attribute
)keyword_argument
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_cls) identifier_cls
(identifier_VALUE_FIELD_NAME) identifier_VALUE_FIELD_NAME
)attribute
(identifier_json_obj) identifier_json_obj
)comparison_operator
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(subscript
(identifier_json_obj) identifier_json_obj
(attribute
(identifier_cls) identifier_cls
(identifier_VALUE_FIELD_NAME) identifier_VALUE_FIELD_NAME
)attribute
)subscript
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_cls) identifier_cls
(argument_list
(identifier_time) identifier_time
(identifier_value) identifier_value
)argument_list
)call
)return_statement
)block
)function_definition
)module | Build a MetricResponse from JSON.
:param json_obj: JSON data representing a Cube Metric.
:type json_obj: `String` or `json`
:throws: `InvalidMetricError` when any of {type,time,data} fields are
not present in json_obj. |
(module
(function_definition
(function_name_make_image) function_name_make_image
(parameters
(identifier_location) identifier_location
(identifier_size) identifier_size
(identifier_fmt) identifier_fmt
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isabs) identifier_isabs
)attribute
(argument_list
(identifier_location) identifier_location
)argument_list
)call
)not_operator
(block
(return_statement
(string_'') string_''
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_location) identifier_location
)argument_list
)call
)argument_list
)call
)not_operator
(block
(return_statement
(string_'') string_''
)return_statement
)block
)if_statement
(if_statement
(not_operator
(call
(subscript
(identifier___salt__) identifier___salt__
(string_'cmd.retcode') string_'cmd.retcode'
)subscript
(argument_list
(call
(attribute
(string_'qemu-img create -f {0} {1} {2}M') string_'qemu-img create -f {0} {1} {2}M'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_fmt) identifier_fmt
(identifier_location) identifier_location
(identifier_size) identifier_size
)argument_list
)call
(keyword_argument
(identifier_python_shell) identifier_python_shell
(False) False
)keyword_argument
)argument_list
)call
)not_operator
(block
(return_statement
(identifier_location) identifier_location
)return_statement
)block
)if_statement
(return_statement
(string_'') string_''
)return_statement
)block
)function_definition
)module | Create a blank virtual machine image file of the specified size in
megabytes. The image can be created in any format supported by qemu
CLI Example:
.. code-block:: bash
salt '*' qemu_img.make_image /tmp/image.qcow 2048 qcow2
salt '*' qemu_img.make_image /tmp/image.raw 10240 raw |
(module
(function_definition
(function_name_blur) function_name_blur
(parameters
(identifier_dset) identifier_dset
(identifier_fwhm) identifier_fwhm
(default_parameter
(identifier_prefix) identifier_prefix
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_prefix) identifier_prefix
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_prefix) identifier_prefix
(call
(attribute
(identifier_nl) identifier_nl
(identifier_suffix) identifier_suffix
)attribute
(argument_list
(identifier_dset) identifier_dset
(binary_operator
(string_'_blur%.1fmm') string_'_blur%.1fmm'
(identifier_fwhm) identifier_fwhm
)binary_operator
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(call
(identifier_available_method) identifier_available_method
(argument_list
(string_'blur') string_'blur'
)argument_list
)call
(argument_list
(identifier_dset) identifier_dset
(identifier_fwhm) identifier_fwhm
(identifier_prefix) identifier_prefix
)argument_list
)call
)return_statement
)block
)function_definition
)module | blurs ``dset`` with given ``fwhm`` runs 3dmerge to blur dataset to given ``fwhm``
default ``prefix`` is to suffix ``dset`` with ``_blur%.1fmm`` |
(module
(function_definition
(function_name_artifact2destination) function_name_artifact2destination
(parameters
(identifier_self) identifier_self
(identifier_artifact) identifier_artifact
(identifier_descriptor) identifier_descriptor
)parameters
(block
(expression_statement
(assignment
(identifier__art) identifier__art
(call
(attribute
(identifier_base64) identifier_base64
(identifier_b64decode) identifier_b64decode
)attribute
(argument_list
(identifier_artifact) identifier_artifact
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(subscript
(identifier__art) identifier__art
(slice
(colon) colon
(integer_2) integer_2
)slice
)subscript
(identifier_ARTIFACT_TYPECODE) identifier_ARTIFACT_TYPECODE
)comparison_operator
)assert_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_endpoint_index) identifier_endpoint_index
(call
(identifier_str) identifier_str
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier__art) identifier__art
(slice
(integer_2) integer_2
(colon) colon
(integer_4) integer_4
)slice
)subscript
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(assignment
(identifier_endpoint_index) identifier_endpoint_index
(call
(identifier_str) identifier_str
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(call
(identifier_hexlify) identifier_hexlify
(argument_list
(subscript
(identifier__art) identifier__art
(slice
(integer_2) integer_2
(colon) colon
(integer_4) integer_4
)slice
)subscript
)argument_list
)call
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_entity) identifier_entity
(subscript
(attribute
(identifier_self) identifier_self
(identifier_sourceid) identifier_sourceid
)attribute
(subscript
(identifier__art) identifier__art
(slice
(integer_4) integer_4
(colon) colon
(integer_24) integer_24
)slice
)subscript
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_destination) identifier_destination
(None) None
)assignment
)expression_statement
(for_statement
(identifier_desc) identifier_desc
(subscript
(identifier_entity) identifier_entity
(binary_operator
(string_"%s_descriptor") string_"%s_descriptor"
(identifier_descriptor) identifier_descriptor
)binary_operator
)subscript
(block
(for_statement
(identifier_srv) identifier_srv
(subscript
(identifier_desc) identifier_desc
(string_"artifact_resolution_service") string_"artifact_resolution_service"
)subscript
(block
(if_statement
(comparison_operator
(subscript
(identifier_srv) identifier_srv
(string_"index") string_"index"
)subscript
(identifier_endpoint_index) identifier_endpoint_index
)comparison_operator
(block
(expression_statement
(assignment
(identifier_destination) identifier_destination
(subscript
(identifier_srv) identifier_srv
(string_"location") string_"location"
)subscript
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_destination) identifier_destination
)return_statement
)block
)function_definition
)module | Translate an artifact into a receiver location
:param artifact: The Base64 encoded SAML artifact
:return: |
(module
(function_definition
(function_name_extract_geometry) function_name_extract_geometry
(parameters
(identifier_dataset) identifier_dataset
)parameters
(block
(expression_statement
(assignment
(identifier_alg) identifier_alg
(call
(attribute
(identifier_vtk) identifier_vtk
(identifier_vtkGeometryFilter) identifier_vtkGeometryFilter
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_alg) identifier_alg
(identifier_SetInputDataObject) identifier_SetInputDataObject
)attribute
(argument_list
(identifier_dataset) identifier_dataset
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_alg) identifier_alg
(identifier_Update) identifier_Update
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier__get_output) identifier__get_output
(argument_list
(identifier_alg) identifier_alg
)argument_list
)call
)return_statement
)block
)function_definition
)module | Extract the outer surface of a volume or structured grid dataset as
PolyData. This will extract all 0D, 1D, and 2D cells producing the
boundary faces of the dataset. |
(module
(function_definition
(function_name_lpop) function_name_lpop
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(keyword_separator
)keyword_separator
(default_parameter
(identifier_encoding) identifier_encoding
(identifier__NOTSET) identifier__NOTSET
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_execute) identifier_execute
)attribute
(argument_list
(string_b'LPOP') string_b'LPOP'
(identifier_key) identifier_key
(keyword_argument
(identifier_encoding) identifier_encoding
(identifier_encoding) identifier_encoding
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Removes and returns the first element of the list stored at key. |
(module
(function_definition
(function_name_copy_current_websocket_context) function_name_copy_current_websocket_context
(parameters
(typed_parameter
(identifier_func) identifier_func
(type
(identifier_Callable) identifier_Callable
)type
)typed_parameter
)parameters
(type
(identifier_Callable) identifier_Callable
)type
(block
(if_statement
(not_operator
(call
(identifier_has_websocket_context) identifier_has_websocket_context
(argument_list
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_'Attempt to copy websocket context outside of a websocket context') string_'Attempt to copy websocket context outside of a websocket context'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_websocket_context) identifier_websocket_context
(call
(attribute
(attribute
(identifier__websocket_ctx_stack) identifier__websocket_ctx_stack
(identifier_top) identifier_top
)attribute
(identifier_copy) identifier_copy
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(decorated_definition
(decorator
(call
(identifier_wraps) identifier_wraps
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)decorator
(function_definition
(function_name_wrapper) function_name_wrapper
(parameters
(typed_parameter
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(type
(identifier_Any) identifier_Any
)type
)typed_parameter
(typed_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
(type
(identifier_Any) identifier_Any
)type
)typed_parameter
)parameters
(type
(identifier_Any) identifier_Any
)type
(block
(with_statement
(with_clause
(with_item
(identifier_websocket_context) identifier_websocket_context
)with_item
)with_clause
(block
(return_statement
(await
(call
(identifier_func) identifier_func
(argument_list
(list_splat
(identifier_args) identifier_args
)list_splat
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)await
)return_statement
)block
)with_statement
)block
)function_definition
)decorated_definition
(return_statement
(identifier_wrapper) identifier_wrapper
)return_statement
)block
)function_definition
)module | Share the current websocket context with the function decorated.
The websocket context is local per task and hence will not be
available in any other task. This decorator can be used to make
the context available,
.. code-block:: python
@copy_current_websocket_context
async def within_context() -> None:
method = websocket.method
... |
(module
(function_definition
(function_name__memory_usage) function_name__memory_usage
(parameters
(identifier_func) identifier_func
(identifier_gallery_conf) identifier_gallery_conf
)parameters
(block
(if_statement
(subscript
(identifier_gallery_conf) identifier_gallery_conf
(string_'show_memory') string_'show_memory'
)subscript
(block
(import_from_statement
(dotted_name
(identifier_memory_profiler) identifier_memory_profiler
)dotted_name
(dotted_name
(identifier_memory_usage) identifier_memory_usage
)dotted_name
)import_from_statement
(assert_statement
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_func) identifier_func
)argument_list
)call
)assert_statement
(expression_statement
(assignment
(pattern_list
(identifier_mem) identifier_mem
(identifier_out) identifier_out
)pattern_list
(call
(identifier_memory_usage) identifier_memory_usage
(argument_list
(identifier_func) identifier_func
(keyword_argument
(identifier_max_usage) identifier_max_usage
(True) True
)keyword_argument
(keyword_argument
(identifier_retval) identifier_retval
(True) True
)keyword_argument
(keyword_argument
(identifier_multiprocess) identifier_multiprocess
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mem) identifier_mem
(subscript
(identifier_mem) identifier_mem
(integer_0) integer_0
)subscript
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(identifier_func) identifier_func
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mem) identifier_mem
(integer_0) integer_0
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(expression_list
(identifier_out) identifier_out
(identifier_mem) identifier_mem
)expression_list
)return_statement
)block
)function_definition
)module | Get memory usage of a function call. |
(module
(function_definition
(function_name_end_compress) function_name_end_compress
(parameters
(identifier_codec) identifier_codec
(identifier_stream) identifier_stream
)parameters
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_OPENJP2) identifier_OPENJP2
(identifier_opj_end_compress) identifier_opj_end_compress
)attribute
(identifier_argtypes) identifier_argtypes
)attribute
(list
(identifier_CODEC_TYPE) identifier_CODEC_TYPE
(identifier_STREAM_TYPE_P) identifier_STREAM_TYPE_P
)list
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(attribute
(identifier_OPENJP2) identifier_OPENJP2
(identifier_opj_end_compress) identifier_opj_end_compress
)attribute
(identifier_restype) identifier_restype
)attribute
(identifier_check_error) identifier_check_error
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_OPENJP2) identifier_OPENJP2
(identifier_opj_end_compress) identifier_opj_end_compress
)attribute
(argument_list
(identifier_codec) identifier_codec
(identifier_stream) identifier_stream
)argument_list
)call
)expression_statement
)block
)function_definition
)module | End of compressing the current image.
Wraps the openjp2 library function opj_end_compress.
Parameters
----------
codec : CODEC_TYPE
Compressor handle.
stream : STREAM_TYPE_P
Output stream buffer.
Raises
------
RuntimeError
If the OpenJPEG library routine opj_end_compress fails. |
(module
(function_definition
(function_name_read_moc_fits) function_name_read_moc_fits
(parameters
(identifier_moc) identifier_moc
(identifier_filename) identifier_filename
(default_parameter
(identifier_include_meta) identifier_include_meta
(False) False
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_hl) identifier_hl
(call
(attribute
(identifier_fits) identifier_fits
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_filename) identifier_filename
(keyword_argument
(identifier_mode) identifier_mode
(string_'readonly') string_'readonly'
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_read_moc_fits_hdu) identifier_read_moc_fits_hdu
(argument_list
(identifier_moc) identifier_moc
(subscript
(identifier_hl) identifier_hl
(integer_1) integer_1
)subscript
(identifier_include_meta) identifier_include_meta
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Read data from a FITS file into a MOC.
Any additional keyword arguments are passed to the
astropy.io.fits.open method. |
(module
(function_definition
(function_name__configobj_factory) function_name__configobj_factory
(parameters
(identifier_self) identifier_self
(identifier_infile) identifier_infile
(default_parameter
(identifier_raise_errors) identifier_raise_errors
(True) True
)default_parameter
(default_parameter
(identifier_list_values) identifier_list_values
(True) True
)default_parameter
(default_parameter
(identifier_file_error) identifier_file_error
(True) True
)default_parameter
(default_parameter
(identifier_interpolation) identifier_interpolation
(False) False
)default_parameter
(default_parameter
(identifier_configspec) identifier_configspec
(None) None
)default_parameter
(default_parameter
(identifier_stringify) identifier_stringify
(True) True
)default_parameter
(default_parameter
(identifier__inspec) identifier__inspec
(False) False
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_configobj) identifier_configobj
(identifier_ConfigObj) identifier_ConfigObj
)attribute
(argument_list
(keyword_argument
(identifier_infile) identifier_infile
(identifier_infile) identifier_infile
)keyword_argument
(keyword_argument
(identifier_raise_errors) identifier_raise_errors
(identifier_raise_errors) identifier_raise_errors
)keyword_argument
(keyword_argument
(identifier_list_values) identifier_list_values
(identifier_list_values) identifier_list_values
)keyword_argument
(keyword_argument
(identifier_file_error) identifier_file_error
(identifier_file_error) identifier_file_error
)keyword_argument
(keyword_argument
(identifier_interpolation) identifier_interpolation
(identifier_interpolation) identifier_interpolation
)keyword_argument
(keyword_argument
(identifier_configspec) identifier_configspec
(identifier_configspec) identifier_configspec
)keyword_argument
(keyword_argument
(identifier_stringify) identifier_stringify
(identifier_stringify) identifier_stringify
)keyword_argument
(keyword_argument
(identifier__inspec) identifier__inspec
(identifier__inspec) identifier__inspec
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Factory Method.
Create Configobj instance and register it to self.config.
This method also is used to create configspec instance.
Because configspec instance also is ConfigObj instance. |
(module
(function_definition
(function_name_knt2mlt) function_name_knt2mlt
(parameters
(identifier_t) identifier_t
)parameters
(block
(expression_statement
(assignment
(identifier_t) identifier_t
(call
(attribute
(identifier_np) identifier_np
(identifier_atleast_1d) identifier_atleast_1d
)attribute
(argument_list
(identifier_t) identifier_t
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_t) identifier_t
(identifier_ndim) identifier_ndim
)attribute
(integer_1) integer_1
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"t must be a list or a rank-1 array") string_"t must be a list or a rank-1 array"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_e) identifier_e
(None) None
)assignment
)expression_statement
(for_statement
(identifier_k) identifier_k
(call
(identifier_range) identifier_range
(argument_list
(subscript
(attribute
(identifier_t) identifier_t
(identifier_shape) identifier_shape
)attribute
(integer_0) integer_0
)subscript
)argument_list
)call
(block
(if_statement
(comparison_operator
(subscript
(identifier_t) identifier_t
(identifier_k) identifier_k
)subscript
(identifier_e) identifier_e
)comparison_operator
(block
(expression_statement
(assignment
(identifier_e) identifier_e
(subscript
(identifier_t) identifier_t
(identifier_k) identifier_k
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_count) identifier_count
(integer_0) integer_0
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(augmented_assignment
(identifier_count) identifier_count
(integer_1) integer_1
)augmented_assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_count) identifier_count
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_out) identifier_out
)argument_list
)call
)return_statement
)block
)function_definition
)module | Count multiplicities of elements in a sorted list or rank-1 array.
Minimal emulation of MATLAB's ``knt2mlt``.
Parameters:
t:
Python list or rank-1 array. Must be sorted!
Returns:
out
rank-1 array such that
out[k] = #{ t[i] == t[k] for i < k }
Example:
If ``t = [1, 1, 2, 3, 3, 3]``, then ``out = [0, 1, 0, 0, 1, 2]``.
Caveat:
Requires input to be already sorted (this is not checked). |
(module
(function_definition
(function_name_list_themes) function_name_list_themes
(parameters
(default_parameter
(identifier_dark) identifier_dark
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_dark) identifier_dark
(conditional_expression
(string_"dark") string_"dark"
(identifier_dark) identifier_dark
(string_"light") string_"light"
)conditional_expression
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_themes) identifier_themes
(call
(attribute
(identifier_os) identifier_os
(identifier_scandir) identifier_scandir
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_MODULE_DIR) identifier_MODULE_DIR
(string_"colorschemes") string_"colorschemes"
(identifier_dark) identifier_dark
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(list_comprehension
(identifier_t) identifier_t
(for_in_clause
(identifier_t) identifier_t
(identifier_themes) identifier_themes
)for_in_clause
(if_clause
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(attribute
(identifier_t) identifier_t
(identifier_path) identifier_path
)attribute
)argument_list
)call
)if_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | List all installed theme files. |
(module
(function_definition
(function_name__match_real) function_name__match_real
(parameters
(identifier_filename) identifier_filename
(identifier_include) identifier_include
(identifier_exclude) identifier_exclude
(identifier_follow) identifier_follow
(identifier_symlinks) identifier_symlinks
)parameters
(block
(expression_statement
(assignment
(identifier_sep) identifier_sep
(conditional_expression
(string_'\\') string_'\\'
(comparison_operator
(call
(attribute
(identifier_util) identifier_util
(identifier_platform) identifier_platform
)attribute
(argument_list
)argument_list
)call
(string_"windows") string_"windows"
)comparison_operator
(string_'/') string_'/'
)conditional_expression
)assignment
)expression_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_filename) identifier_filename
(identifier_bytes) identifier_bytes
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_sep) identifier_sep
(call
(attribute
(identifier_os) identifier_os
(identifier_fsencode) identifier_fsencode
)attribute
(argument_list
(identifier_sep) identifier_sep
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(boolean_operator
(not_operator
(call
(attribute
(identifier_filename) identifier_filename
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(identifier_sep) identifier_sep
)argument_list
)call
)not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(identifier_filename) identifier_filename
)argument_list
)call
)boolean_operator
(block
(expression_statement
(augmented_assignment
(identifier_filename) identifier_filename
(identifier_sep) identifier_sep
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_matched) identifier_matched
(False) False
)assignment
)expression_statement
(for_statement
(identifier_pattern) identifier_pattern
(identifier_include) identifier_include
(block
(if_statement
(call
(identifier__fs_match) identifier__fs_match
(argument_list
(identifier_pattern) identifier_pattern
(identifier_filename) identifier_filename
(identifier_sep) identifier_sep
(identifier_follow) identifier_follow
(identifier_symlinks) identifier_symlinks
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_matched) identifier_matched
(True) True
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
(if_statement
(identifier_matched) identifier_matched
(block
(expression_statement
(assignment
(identifier_matched) identifier_matched
(True) True
)assignment
)expression_statement
(if_statement
(identifier_exclude) identifier_exclude
(block
(for_statement
(identifier_pattern) identifier_pattern
(identifier_exclude) identifier_exclude
(block
(if_statement
(call
(identifier__fs_match) identifier__fs_match
(argument_list
(identifier_pattern) identifier_pattern
(identifier_filename) identifier_filename
(identifier_sep) identifier_sep
(identifier_follow) identifier_follow
(identifier_symlinks) identifier_symlinks
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_matched) identifier_matched
(False) False
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
)block
)if_statement
)block
)if_statement
(return_statement
(identifier_matched) identifier_matched
)return_statement
)block
)function_definition
)module | Match real filename includes and excludes. |
(module
(function_definition
(function_name_get_converter) function_name_get_converter
(parameters
(identifier_self) identifier_self
(identifier_parameter) identifier_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_parameter) identifier_parameter
(attribute
(identifier_self) identifier_self
(identifier__converters) identifier__converters
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_param) identifier_param
(call
(attribute
(identifier_self) identifier_self
(identifier_get_parameter) identifier_get_parameter
)attribute
(argument_list
(identifier_parameter) identifier_parameter
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_scale) identifier_scale
(call
(identifier_float) identifier_float
(argument_list
(subscript
(identifier_param) identifier_param
(string_'Scale') string_'Scale'
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(expression_statement
(assignment
(identifier_scale) identifier_scale
(integer_1) integer_1
)assignment
)expression_statement
)block
)except_clause
)try_statement
(function_definition
(function_name_convert) function_name_convert
(parameters
(identifier_value) identifier_value
)parameters
(block
(return_statement
(binary_operator
(identifier_value) identifier_value
(identifier_scale) identifier_scale
)binary_operator
)return_statement
)block
)function_definition
(return_statement
(identifier_convert) identifier_convert
)return_statement
)block
)if_statement
)block
)function_definition
)module | Generate unit conversion function for given parameter |
(module
(function_definition
(function_name_shuffle_step) function_name_shuffle_step
(parameters
(identifier_entries) identifier_entries
(identifier_step) identifier_step
)parameters
(block
(expression_statement
(assignment
(identifier_answer) identifier_answer
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_0) integer_0
(call
(identifier_len) identifier_len
(argument_list
(identifier_entries) identifier_entries
)argument_list
)call
(identifier_step) identifier_step
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_sub) identifier_sub
(subscript
(identifier_entries) identifier_entries
(slice
(identifier_i) identifier_i
(colon) colon
(binary_operator
(identifier_i) identifier_i
(identifier_step) identifier_step
)binary_operator
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(call
(identifier_shuffle) identifier_shuffle
(argument_list
(identifier_sub) identifier_sub
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_answer) identifier_answer
(identifier_sub) identifier_sub
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_answer) identifier_answer
)return_statement
)block
)function_definition
)module | Shuffle the step |
(module
(function_definition
(function_name_getIndices) function_name_getIndices
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_indexName) identifier_indexName
(call
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_neograph) identifier_neograph
)attribute
(identifier_nodes) identifier_nodes
)attribute
(identifier_indexes) identifier_indexes
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_indexObject) identifier_indexObject
(call
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_neograph) identifier_neograph
)attribute
(identifier_nodes) identifier_nodes
)attribute
(identifier_indexes) identifier_indexes
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_indexName) identifier_indexName
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(yield
(call
(identifier_Index) identifier_Index
(argument_list
(identifier_indexName) identifier_indexName
(string_"vertex") string_"vertex"
(string_"manual") string_"manual"
(identifier_indexObject) identifier_indexObject
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
(for_statement
(identifier_indexName) identifier_indexName
(call
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_neograph) identifier_neograph
)attribute
(identifier_relationships) identifier_relationships
)attribute
(identifier_indexes) identifier_indexes
)attribute
(identifier_keys) identifier_keys
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_indexObject) identifier_indexObject
(call
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_neograph) identifier_neograph
)attribute
(identifier_relationships) identifier_relationships
)attribute
(identifier_indexes) identifier_indexes
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_indexName) identifier_indexName
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(yield
(call
(identifier_Index) identifier_Index
(argument_list
(identifier_indexName) identifier_indexName
(string_"edge") string_"edge"
(string_"manual") string_"manual"
(identifier_indexObject) identifier_indexObject
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Returns a generator function over all the existing indexes
@returns A generator function over all rhe Index objects |
(module
(function_definition
(function_name_delete_object_in_seconds) function_name_delete_object_in_seconds
(parameters
(identifier_self) identifier_self
(identifier_obj) identifier_obj
(identifier_seconds) identifier_seconds
(default_parameter
(identifier_extra_info) identifier_extra_info
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_manager) identifier_manager
)attribute
(identifier_delete_object_in_seconds) identifier_delete_object_in_seconds
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_obj) identifier_obj
(identifier_seconds) identifier_seconds
)argument_list
)call
)return_statement
)block
)function_definition
)module | Sets the object in this container to be deleted after the specified
number of seconds.
The 'extra_info' parameter is included for backwards compatibility. It
is no longer used at all, and will not be modified with swiftclient
info, since swiftclient is not used any more. |
(module
(function_definition
(function_name_CallDhclient) function_name_CallDhclient
(parameters
(identifier_interfaces) identifier_interfaces
(identifier_logger) identifier_logger
(default_parameter
(identifier_dhclient_script) identifier_dhclient_script
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'Enabling the Ethernet interfaces %s.') string_'Enabling the Ethernet interfaces %s.'
(identifier_interfaces) identifier_interfaces
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_dhclient_command) identifier_dhclient_command
(list
(string_'dhclient') string_'dhclient'
)list
)assignment
)expression_statement
(if_statement
(boolean_operator
(identifier_dhclient_script) identifier_dhclient_script
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_dhclient_script) identifier_dhclient_script
)argument_list
)call
)boolean_operator
(block
(expression_statement
(augmented_assignment
(identifier_dhclient_command) identifier_dhclient_command
(list
(string_'-sf') string_'-sf'
(identifier_dhclient_script) identifier_dhclient_script
)list
)augmented_assignment
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_call) identifier_check_call
)attribute
(argument_list
(binary_operator
(binary_operator
(identifier_dhclient_command) identifier_dhclient_command
(list
(string_'-x') string_'-x'
)list
)binary_operator
(identifier_interfaces) identifier_interfaces
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_check_call) identifier_check_call
)attribute
(argument_list
(binary_operator
(identifier_dhclient_command) identifier_dhclient_command
(identifier_interfaces) identifier_interfaces
)binary_operator
)argument_list
)call
)expression_statement
)block
(except_clause
(attribute
(identifier_subprocess) identifier_subprocess
(identifier_CalledProcessError) identifier_CalledProcessError
)attribute
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_'Could not enable interfaces %s.') string_'Could not enable interfaces %s.'
(identifier_interfaces) identifier_interfaces
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Configure the network interfaces using dhclient.
Args:
interfaces: list of string, the output device names to enable.
logger: logger object, used to write to SysLog and serial port.
dhclient_script: string, the path to a dhclient script used by dhclient. |
(module
(function_definition
(function_name_scale_down) function_name_scale_down
(parameters
(identifier_self) identifier_self
(identifier_workers) identifier_workers
(default_parameter
(identifier_pods) identifier_pods
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_pods) identifier_pods
(boolean_operator
(identifier_pods) identifier_pods
(call
(attribute
(identifier_self) identifier_self
(identifier__cleanup_terminated_pods) identifier__cleanup_terminated_pods
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_pods) identifier_pods
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_ips) identifier_ips
(call
(identifier_set) identifier_set
(generator_expression
(attribute
(call
(identifier_urlparse) identifier_urlparse
(argument_list
(identifier_worker) identifier_worker
)argument_list
)call
(identifier_hostname) identifier_hostname
)attribute
(for_in_clause
(identifier_worker) identifier_worker
(identifier_workers) identifier_workers
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_to_delete) identifier_to_delete
(list_comprehension
(identifier_p) identifier_p
(for_in_clause
(identifier_p) identifier_p
(identifier_pods) identifier_pods
)for_in_clause
(if_clause
(comparison_operator
(attribute
(attribute
(identifier_p) identifier_p
(identifier_status) identifier_status
)attribute
(identifier_pod_ip) identifier_pod_ip
)attribute
(identifier_ips) identifier_ips
)comparison_operator
)if_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_to_delete) identifier_to_delete
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__delete_pods) identifier__delete_pods
)attribute
(argument_list
(identifier_to_delete) identifier_to_delete
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Remove the pods for the requested list of workers
When scale_down is called by the _adapt async loop, the workers are
assumed to have been cleanly closed first and in-memory data has been
migrated to the remaining workers.
Note that when the worker process exits, Kubernetes leaves the pods in
a 'Succeeded' state that we collect here.
If some workers have not been closed, we just delete the pods with
matching ip addresses.
Parameters
----------
workers: List[str] List of addresses of workers to close |
(module
(function_definition
(function_name_compute_mask_offsets) function_name_compute_mask_offsets
(parameters
(identifier_shard_id2num_examples) identifier_shard_id2num_examples
)parameters
(block
(expression_statement
(assignment
(identifier_total_num_examples) identifier_total_num_examples
(call
(identifier_sum) identifier_sum
(argument_list
(identifier_shard_id2num_examples) identifier_shard_id2num_examples
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_mask_offsets) identifier_mask_offsets
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_total_num_examples) identifier_total_num_examples
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_num_examples_in_shard) identifier_num_examples_in_shard
(identifier_shard_id2num_examples) identifier_shard_id2num_examples
(block
(expression_statement
(call
(attribute
(identifier_mask_offsets) identifier_mask_offsets
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(identifier_total_num_examples) identifier_total_num_examples
(integer_100) integer_100
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(augmented_assignment
(identifier_total_num_examples) identifier_total_num_examples
(identifier_num_examples_in_shard) identifier_num_examples_in_shard
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_mask_offsets) identifier_mask_offsets
)return_statement
)block
)function_definition
)module | Return the list of offsets associated with each shards.
Args:
shard_id2num_examples: `list[int]`, mapping shard_id=>num_examples
Returns:
mask_offsets: `list[int]`, offset to skip for each of the shard |
(module
(function_definition
(function_name_dijkstra) function_name_dijkstra
(parameters
(identifier_graph) identifier_graph
(identifier_start) identifier_start
(default_parameter
(identifier_end) identifier_end
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_D) identifier_D
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_P) identifier_P
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_Q) identifier_Q
(call
(identifier__priorityDictionary) identifier__priorityDictionary
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_Q) identifier_Q
(identifier_start) identifier_start
)subscript
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_v) identifier_v
(identifier_Q) identifier_Q
(block
(expression_statement
(assignment
(subscript
(identifier_D) identifier_D
(identifier_v) identifier_v
)subscript
(subscript
(identifier_Q) identifier_Q
(identifier_v) identifier_v
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_v) identifier_v
(identifier_end) identifier_end
)comparison_operator
(block
(break_statement
)break_statement
)block
)if_statement
(for_statement
(identifier_w) identifier_w
(call
(attribute
(identifier_graph) identifier_graph
(identifier_out_nbrs) identifier_out_nbrs
)attribute
(argument_list
(identifier_v) identifier_v
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_edge_id) identifier_edge_id
(call
(attribute
(identifier_graph) identifier_graph
(identifier_edge_by_node) identifier_edge_by_node
)attribute
(argument_list
(identifier_v) identifier_v
(identifier_w) identifier_w
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_vwLength) identifier_vwLength
(binary_operator
(subscript
(identifier_D) identifier_D
(identifier_v) identifier_v
)subscript
(call
(attribute
(identifier_graph) identifier_graph
(identifier_edge_data) identifier_edge_data
)attribute
(argument_list
(identifier_edge_id) identifier_edge_id
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_w) identifier_w
(identifier_D) identifier_D
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_vwLength) identifier_vwLength
(subscript
(identifier_D) identifier_D
(identifier_w) identifier_w
)subscript
)comparison_operator
(block
(raise_statement
(call
(identifier_GraphError) identifier_GraphError
(argument_list
(string_"Dijkstra: found better path to already-final vertex") string_"Dijkstra: found better path to already-final vertex"
)argument_list
)call
)raise_statement
)block
)if_statement
)block
(elif_clause
(boolean_operator
(comparison_operator
(identifier_w) identifier_w
(identifier_Q) identifier_Q
)comparison_operator
(comparison_operator
(identifier_vwLength) identifier_vwLength
(subscript
(identifier_Q) identifier_Q
(identifier_w) identifier_w
)subscript
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(subscript
(identifier_Q) identifier_Q
(identifier_w) identifier_w
)subscript
(identifier_vwLength) identifier_vwLength
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_P) identifier_P
(identifier_w) identifier_w
)subscript
(identifier_v) identifier_v
)assignment
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
)block
)for_statement
(return_statement
(tuple
(identifier_D) identifier_D
(identifier_P) identifier_P
)tuple
)return_statement
)block
)function_definition
)module | Dijkstra's algorithm for shortest paths
`David Eppstein, UC Irvine, 4 April 2002 <http://www.ics.uci.edu/~eppstein/161/python/>`_
`Python Cookbook Recipe <http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/119466>`_
Find shortest paths from the start node to all nodes nearer than or equal to the end node.
Dijkstra's algorithm is only guaranteed to work correctly when all edge lengths are positive.
This code does not verify this property for all edges (only the edges examined until the end
vertex is reached), but will correctly compute shortest paths even for some graphs with negative
edges, and will raise an exception if it discovers that a negative edge has caused it to make a mistake.
*Adapted to altgraph by Istvan Albert, Pennsylvania State University - June, 9 2004* |
(module
(function_definition
(function_name_user) function_name_user
(parameters
(identifier_session) identifier_session
(identifier_uid) identifier_uid
(default_parameter
(identifier_ladder_ids) identifier_ladder_ids
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(identifier_get_user) identifier_get_user
(argument_list
(identifier_session) identifier_session
(identifier_uid) identifier_uid
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(identifier_dict) identifier_dict
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_ladder_ids) identifier_ladder_ids
)not_operator
(block
(return_statement
(identifier_resp) identifier_resp
)return_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(identifier_resp) identifier_resp
(string_'ladders') string_'ladders'
)subscript
(dictionary
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_ladder_id) identifier_ladder_id
(identifier_ladder_ids) identifier_ladder_ids
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_ladder_id) identifier_ladder_id
(identifier_str) identifier_str
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_ladder_id) identifier_ladder_id
(call
(identifier_lookup_ladder_id) identifier_lookup_ladder_id
(argument_list
(identifier_ladder_id) identifier_ladder_id
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_ladder_data) identifier_ladder_data
(call
(identifier_dict) identifier_dict
(argument_list
(call
(identifier_get_ladder) identifier_get_ladder
(argument_list
(identifier_session) identifier_session
(identifier_ladder_id) identifier_ladder_id
(keyword_argument
(identifier_user_id) identifier_user_id
(identifier_uid) identifier_uid
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(identifier_resp) identifier_resp
(string_'ladders') string_'ladders'
)subscript
(identifier_ladder_id) identifier_ladder_id
)subscript
(identifier_ladder_data) identifier_ladder_data
)assignment
)expression_statement
)block
(except_clause
(identifier_VooblyError) identifier_VooblyError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
)block
)for_statement
(return_statement
(identifier_resp) identifier_resp
)return_statement
)block
)function_definition
)module | Get all possible user info by name. |
(module
(function_definition
(function_name_get_range) function_name_get_range
(parameters
(identifier_self) identifier_self
(identifier_i) identifier_i
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_m) identifier_m
(call
(attribute
(identifier_i) identifier_i
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_RE_INT_ITER) identifier_RE_INT_ITER
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_m) identifier_m
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_int_range) identifier_get_int_range
)attribute
(argument_list
(list_splat
(call
(attribute
(identifier_m) identifier_m
(identifier_groups) identifier_groups
)attribute
(argument_list
)argument_list
)call
)list_splat
)argument_list
)call
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_m) identifier_m
(call
(attribute
(identifier_i) identifier_i
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_RE_CHR_ITER) identifier_RE_CHR_ITER
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_m) identifier_m
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_char_range) identifier_get_char_range
)attribute
(argument_list
(list_splat
(call
(attribute
(identifier_m) identifier_m
(identifier_groups) identifier_groups
)attribute
(argument_list
)argument_list
)call
)list_splat
)argument_list
)call
)return_statement
)block
)if_statement
)block
(except_clause
(identifier_Exception) identifier_Exception
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Check and retrieve range if value is a valid range.
Here we are looking to see if the value is series or range.
We look for `{1..2[..inc]}` or `{a..z[..inc]}` (negative numbers are fine). |
(module
(function_definition
(function_name_get_image_command) function_name_get_image_command
(parameters
(identifier_image) identifier_image
)parameters
(block
(expression_statement
(assignment
(identifier_info) identifier_info
(call
(identifier_docker_inspect_or_pull) identifier_docker_inspect_or_pull
(argument_list
(identifier_image) identifier_image
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(return_statement
(subscript
(subscript
(identifier_info) identifier_info
(string_'Config') string_'Config'
)subscript
(string_'Cmd') string_'Cmd'
)subscript
)return_statement
)block
(except_clause
(as_pattern
(identifier_KeyError) identifier_KeyError
(as_pattern_target
(identifier_ke) identifier_ke
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_DockerError) identifier_DockerError
(argument_list
(call
(attribute
(string_'Failed to inspect image: JSON result missing key {}') string_'Failed to inspect image: JSON result missing key {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_ke) identifier_ke
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Gets the default command for an image |
(module
(function_definition
(function_name___getTemplate) function_name___getTemplate
(parameters
(identifier_template_file_name) identifier_template_file_name
)parameters
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_template_file_name) identifier_template_file_name
)argument_list
)call
(as_pattern_target
(identifier_template_file) identifier_template_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_template_raw) identifier_template_raw
(call
(attribute
(identifier_template_file) identifier_template_file
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(identifier_template) identifier_template
(call
(identifier_parse) identifier_parse
(argument_list
(identifier_template_raw) identifier_template_raw
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_template) identifier_template
)return_statement
)block
)function_definition
)module | Get temaplte to save the ranking.
:param template_file_name: path to the template.
:type template_file_name: str.
:return: template for the file.
:rtype: pystache's template. |
(module
(function_definition
(function_name_getContainerName) function_name_getContainerName
(parameters
(identifier_job) identifier_job
)parameters
(block
(return_statement
(call
(attribute
(call
(attribute
(call
(attribute
(call
(attribute
(string_'--') string_'--'
(identifier_join) identifier_join
)attribute
(argument_list
(list
(call
(identifier_str) identifier_str
(argument_list
(identifier_job) identifier_job
)argument_list
)call
(call
(attribute
(call
(attribute
(identifier_base64) identifier_base64
(identifier_b64encode) identifier_b64encode
)attribute
(argument_list
(call
(attribute
(identifier_os) identifier_os
(identifier_urandom) identifier_urandom
)attribute
(argument_list
(integer_9) integer_9
)argument_list
)call
(string_b'-_') string_b'-_'
)argument_list
)call
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)list
)argument_list
)call
(line_continuation_\) line_continuation_\
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"'") string_"'"
(string_'') string_''
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'"') string_'"'
(string_'') string_''
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'_') string_'_'
(string_'') string_''
)argument_list
)call
)return_statement
)block
)function_definition
)module | Create a random string including the job name, and return it. |
(module
(function_definition
(function_name__right) function_name__right
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_left) identifier_left
(identifier__) identifier__
(identifier_width) identifier_width
(identifier__) identifier__
)pattern_list
(attribute
(identifier_self) identifier_self
(identifier__extents) identifier__extents
)attribute
)assignment
)expression_statement
(return_statement
(binary_operator
(identifier_left) identifier_left
(identifier_width) identifier_width
)binary_operator
)return_statement
)block
)function_definition
)module | Index of column following the last column in range |
(module
(function_definition
(function_name_put_settings) function_name_put_settings
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_using) identifier_using
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier__get_connection) identifier__get_connection
)attribute
(argument_list
(identifier_using) identifier_using
)argument_list
)call
(identifier_indices) identifier_indices
)attribute
(identifier_put_settings) identifier_put_settings
)attribute
(argument_list
(keyword_argument
(identifier_index) identifier_index
(attribute
(identifier_self) identifier_self
(identifier__name) identifier__name
)attribute
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Change specific index level settings in real time.
Any additional keyword arguments will be passed to
``Elasticsearch.indices.put_settings`` unchanged. |
(module
(function_definition
(function_name_add_instance) function_name_add_instance
(parameters
(identifier_self) identifier_self
(identifier_name) identifier_name
(identifier_properties) identifier_properties
)parameters
(block
(if_statement
(comparison_operator
(identifier_name) identifier_name
(attribute
(identifier_self) identifier_self
(identifier___instances) identifier___instances
)attribute
)comparison_operator
(block
(raise_statement
(call
(identifier_NameError) identifier_NameError
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier___instances) identifier___instances
)attribute
(identifier_name) identifier_name
)subscript
(identifier_properties) identifier_properties
)assignment
)expression_statement
)block
)function_definition
)module | Stores the description of a component instance. The given properties
are stored as is.
:param name: Instance name
:param properties: Instance properties
:raise NameError: Already known instance name |
(module
(function_definition
(function_name_bytes_to_int) function_name_bytes_to_int
(parameters
(identifier_b) identifier_b
(default_parameter
(identifier_order) identifier_order
(string_'big') string_'big'
)default_parameter
)parameters
(block
(if_statement
(attribute
(identifier_six) identifier_six
(identifier_PY2) identifier_PY2
)attribute
(block
(expression_statement
(assignment
(identifier__b) identifier__b
(call
(attribute
(identifier_b) identifier_b
(identifier___class__) identifier___class__
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_order) identifier_order
(string_'little') string_'little'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_b) identifier_b
(call
(identifier_reversed) identifier_reversed
(argument_list
(identifier_b) identifier_b
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier__b) identifier__b
(identifier_bytearray) identifier_bytearray
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_b) identifier_b
(call
(attribute
(identifier_six) identifier_six
(identifier_iterbytes) identifier_iterbytes
)attribute
(argument_list
(identifier_b) identifier_b
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_sum) identifier_sum
(generator_expression
(binary_operator
(identifier_c) identifier_c
(parenthesized_expression
(binary_operator
(identifier_i) identifier_i
(integer_8) integer_8
)binary_operator
)parenthesized_expression
)binary_operator
(for_in_clause
(pattern_list
(identifier_i) identifier_i
(identifier_c) identifier_c
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_b) identifier_b
)argument_list
)call
)for_in_clause
)generator_expression
)call
)return_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_int) identifier_int
(identifier_from_bytes) identifier_from_bytes
)attribute
(argument_list
(identifier_b) identifier_b
(identifier_order) identifier_order
)argument_list
)call
)return_statement
)block
)function_definition
)module | convert bytes to integer |
(module
(function_definition
(function_name_open_fastq) function_name_open_fastq
(parameters
(identifier_in_file) identifier_in_file
)parameters
(block
(if_statement
(call
(attribute
(identifier_objectstore) identifier_objectstore
(identifier_is_remote) identifier_is_remote
)attribute
(argument_list
(identifier_in_file) identifier_in_file
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_objectstore) identifier_objectstore
(identifier_open_file) identifier_open_file
)attribute
(argument_list
(identifier_in_file) identifier_in_file
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_utils) identifier_utils
(identifier_open_gzipsafe) identifier_open_gzipsafe
)attribute
(argument_list
(identifier_in_file) identifier_in_file
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | open a fastq file, using gzip if it is gzipped |
(module
(function_definition
(function_name_as_string) function_name_as_string
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_instruction) identifier_instruction
)attribute
)argument_list
)call
(identifier_str) identifier_str
)comparison_operator
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_instruction) identifier_instruction
)attribute
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_action) identifier_action
)attribute
(string_"FROM") string_"FROM"
)comparison_operator
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_command) identifier_command
)attribute
(attribute
(identifier_six) identifier_six
(identifier_string_types) identifier_string_types
)attribute
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_extra) identifier_extra
(conditional_expression
(string_"") string_""
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_extra) identifier_extra
)attribute
(identifier_NotSpecified) identifier_NotSpecified
)comparison_operator
(call
(attribute
(string_" {0}") string_" {0}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_extra) identifier_extra
)attribute
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
(return_statement
(call
(attribute
(string_"{0} {1}{2}") string_"{0} {1}{2}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_action) identifier_action
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_command) identifier_command
)attribute
(identifier_from_name) identifier_from_name
)attribute
(identifier_extra) identifier_extra
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(string_"{0} {1}") string_"{0} {1}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_action) identifier_action
)attribute
(attribute
(identifier_self) identifier_self
(identifier_command) identifier_command
)attribute
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return the command as a single string for the docker file |
(module
(function_definition
(function_name_update_meta_data_for_state_view) function_name_update_meta_data_for_state_view
(parameters
(identifier_graphical_editor_view) identifier_graphical_editor_view
(identifier_state_v) identifier_state_v
(default_parameter
(identifier_affects_children) identifier_affects_children
(False) False
)default_parameter
(default_parameter
(identifier_publish) identifier_publish
(True) True
)default_parameter
)parameters
(block
(import_from_statement
(dotted_name
(identifier_gaphas) identifier_gaphas
(identifier_item) identifier_item
)dotted_name
(dotted_name
(identifier_NW) identifier_NW
)dotted_name
)import_from_statement
(expression_statement
(call
(identifier_update_meta_data_for_port) identifier_update_meta_data_for_port
(argument_list
(identifier_graphical_editor_view) identifier_graphical_editor_view
(identifier_state_v) identifier_state_v
(None) None
)argument_list
)call
)expression_statement
(if_statement
(identifier_affects_children) identifier_affects_children
(block
(expression_statement
(call
(identifier_update_meta_data_for_name_view) identifier_update_meta_data_for_name_view
(argument_list
(identifier_graphical_editor_view) identifier_graphical_editor_view
(attribute
(identifier_state_v) identifier_state_v
(identifier_name_view) identifier_name_view
)attribute
(keyword_argument
(identifier_publish) identifier_publish
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
(for_statement
(identifier_transition_v) identifier_transition_v
(call
(attribute
(identifier_state_v) identifier_state_v
(identifier_get_transitions) identifier_get_transitions
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(identifier_update_meta_data_for_transition_waypoints) identifier_update_meta_data_for_transition_waypoints
(argument_list
(identifier_graphical_editor_view) identifier_graphical_editor_view
(identifier_transition_v) identifier_transition_v
(None) None
(keyword_argument
(identifier_publish) identifier_publish
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
(for_statement
(identifier_child_state_v) identifier_child_state_v
(call
(attribute
(identifier_state_v) identifier_state_v
(identifier_child_state_views) identifier_child_state_views
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(identifier_update_meta_data_for_state_view) identifier_update_meta_data_for_state_view
(argument_list
(identifier_graphical_editor_view) identifier_graphical_editor_view
(identifier_child_state_v) identifier_child_state_v
(True) True
(keyword_argument
(identifier_publish) identifier_publish
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_rel_pos) identifier_rel_pos
(call
(identifier_calc_rel_pos_to_parent) identifier_calc_rel_pos_to_parent
(argument_list
(attribute
(attribute
(identifier_graphical_editor_view) identifier_graphical_editor_view
(identifier_editor) identifier_editor
)attribute
(identifier_canvas) identifier_canvas
)attribute
(identifier_state_v) identifier_state_v
(subscript
(call
(attribute
(identifier_state_v) identifier_state_v
(identifier_handles) identifier_handles
)attribute
(argument_list
)argument_list
)call
(identifier_NW) identifier_NW
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_state_v) identifier_state_v
(identifier_model) identifier_model
)attribute
(identifier_set_meta_data_editor) identifier_set_meta_data_editor
)attribute
(argument_list
(string_'size') string_'size'
(tuple
(attribute
(identifier_state_v) identifier_state_v
(identifier_width) identifier_width
)attribute
(attribute
(identifier_state_v) identifier_state_v
(identifier_height) identifier_height
)attribute
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_state_v) identifier_state_v
(identifier_model) identifier_model
)attribute
(identifier_set_meta_data_editor) identifier_set_meta_data_editor
)attribute
(argument_list
(string_'rel_pos') string_'rel_pos'
(identifier_rel_pos) identifier_rel_pos
)argument_list
)call
)expression_statement
(if_statement
(identifier_publish) identifier_publish
(block
(expression_statement
(call
(attribute
(identifier_graphical_editor_view) identifier_graphical_editor_view
(identifier_emit) identifier_emit
)attribute
(argument_list
(string_'meta_data_changed') string_'meta_data_changed'
(attribute
(identifier_state_v) identifier_state_v
(identifier_model) identifier_model
)attribute
(string_"size") string_"size"
(identifier_affects_children) identifier_affects_children
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | This method updates the meta data of a state view
:param graphical_editor_view: Graphical Editor view the change occurred in
:param state_v: The state view which has been changed/moved
:param affects_children: Whether the children of the state view have been resized or not
:param publish: Whether to publish the changes of the meta data |
(module
(function_definition
(function_name_lotus_root_geometry) function_name_lotus_root_geometry
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_a_offset) identifier_a_offset
(binary_operator
(attribute
(identifier_np) identifier_np
(identifier_pi) identifier_pi
)attribute
(integer_2) integer_2
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_apart) identifier_apart
(call
(identifier_uniform_partition) identifier_uniform_partition
(argument_list
(identifier_a_offset) identifier_a_offset
(binary_operator
(identifier_a_offset) identifier_a_offset
(binary_operator
(binary_operator
(binary_operator
(integer_2) integer_2
(attribute
(identifier_np) identifier_np
(identifier_pi) identifier_pi
)attribute
)binary_operator
(float_366.) float_366.
)binary_operator
(float_360.) float_360.
)binary_operator
)binary_operator
(integer_366) integer_366
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_d_offset) identifier_d_offset
(float_0.35) float_0.35
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dpart) identifier_dpart
(call
(identifier_uniform_partition) identifier_uniform_partition
(argument_list
(binary_operator
(identifier_d_offset) identifier_d_offset
(integer_60) integer_60
)binary_operator
(binary_operator
(identifier_d_offset) identifier_d_offset
(integer_60) integer_60
)binary_operator
(integer_2240) integer_2240
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_geometry) identifier_geometry
(call
(identifier_FanBeamGeometry) identifier_FanBeamGeometry
(argument_list
(identifier_apart) identifier_apart
(identifier_dpart) identifier_dpart
(keyword_argument
(identifier_src_radius) identifier_src_radius
(integer_540) integer_540
)keyword_argument
(keyword_argument
(identifier_det_radius) identifier_det_radius
(integer_90) integer_90
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_geometry) identifier_geometry
)return_statement
)block
)function_definition
)module | Tomographic geometry for the lotus root dataset.
Notes
-----
See the article `Tomographic X-ray data of a lotus root filled with
attenuating objects`_ for further information.
See Also
--------
lotus_root_geometry
References
----------
.. _Tomographic X-ray data of a lotus root filled with attenuating objects:
https://arxiv.org/abs/1609.07299 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.