sequence
stringlengths 557
12.7k
| docstring
stringlengths 4
15.2k
|
---|---|
(module
(function_definition
(function_name_serial) function_name_serial
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_asnint) identifier_asnint
(call
(attribute
(identifier_libcrypto) identifier_libcrypto
(identifier_X509_get_serialNumber) identifier_X509_get_serialNumber
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_cert) identifier_cert
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bio) identifier_bio
(call
(identifier_Membio) identifier_Membio
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_libcrypto) identifier_libcrypto
(identifier_i2a_ASN1_INTEGER) identifier_i2a_ASN1_INTEGER
)attribute
(argument_list
(attribute
(identifier_bio) identifier_bio
(identifier_bio) identifier_bio
)attribute
(identifier_asnint) identifier_asnint
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_int) identifier_int
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_bio) identifier_bio
)argument_list
)call
(integer_16) integer_16
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Serial number of certificate as integer
|
(module
(function_definition
(function_name_list_opts) function_name_list_opts
(parameters
)parameters
(block
(for_statement
(identifier_mod) identifier_mod
(call
(identifier_load_conf_modules) identifier_load_conf_modules
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_mod_opts) identifier_mod_opts
(call
(attribute
(identifier_mod) identifier_mod
(identifier_list_opts) identifier_list_opts
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_type) identifier_type
(argument_list
(identifier_mod_opts) identifier_mod_opts
)argument_list
)call
(identifier_list) identifier_list
)comparison_operator
(block
(for_statement
(identifier_single_mod_opts) identifier_single_mod_opts
(identifier_mod_opts) identifier_mod_opts
(block
(expression_statement
(yield
(expression_list
(subscript
(identifier_single_mod_opts) identifier_single_mod_opts
(integer_0) integer_0
)subscript
(subscript
(identifier_single_mod_opts) identifier_single_mod_opts
(integer_1) integer_1
)subscript
)expression_list
)yield
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(yield
(expression_list
(subscript
(identifier_mod_opts) identifier_mod_opts
(integer_0) integer_0
)subscript
(subscript
(identifier_mod_opts) identifier_mod_opts
(integer_1) integer_1
)subscript
)expression_list
)yield
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
)block
)function_definition
)module
|
List all conf modules opts.
Goes through all conf modules and yields their opts.
|
(module
(function_definition
(function_name_open) function_name_open
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_delimiter) identifier_delimiter
(None) None
)default_parameter
(default_parameter
(identifier_mode) identifier_mode
(string_'r') string_'r'
)default_parameter
(default_parameter
(identifier_buffering) identifier_buffering
(unary_operator
(integer_1) integer_1
)unary_operator
)default_parameter
(default_parameter
(identifier_encoding) identifier_encoding
(None) None
)default_parameter
(default_parameter
(identifier_errors) identifier_errors
(None) None
)default_parameter
(default_parameter
(identifier_newline) identifier_newline
(None) None
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_re) identifier_re
(identifier_match) identifier_match
)attribute
(argument_list
(string_'^[rbt]{1,3}$') string_'^[rbt]{1,3}$'
(identifier_mode) identifier_mode
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'mode argument must be only have r, b, and t') string_'mode argument must be only have r, b, and t'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_file_open) identifier_file_open
(call
(identifier_get_read_function) identifier_get_read_function
(argument_list
(identifier_path) identifier_path
(attribute
(identifier_self) identifier_self
(identifier_disable_compression) identifier_disable_compression
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_file) identifier_file
(call
(identifier_file_open) identifier_file_open
(argument_list
(identifier_path) identifier_path
(keyword_argument
(identifier_mode) identifier_mode
(identifier_mode) identifier_mode
)keyword_argument
(keyword_argument
(identifier_buffering) identifier_buffering
(identifier_buffering) identifier_buffering
)keyword_argument
(keyword_argument
(identifier_encoding) identifier_encoding
(identifier_encoding) identifier_encoding
)keyword_argument
(keyword_argument
(identifier_errors) identifier_errors
(identifier_errors) identifier_errors
)keyword_argument
(keyword_argument
(identifier_newline) identifier_newline
(identifier_newline) identifier_newline
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_delimiter) identifier_delimiter
(None) None
)comparison_operator
(block
(return_statement
(call
(identifier_self) identifier_self
(argument_list
(identifier_file) identifier_file
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(identifier_self) identifier_self
(argument_list
(call
(attribute
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(identifier_file) identifier_file
)argument_list
)call
)argument_list
)call
(identifier_split) identifier_split
)attribute
(argument_list
(identifier_delimiter) identifier_delimiter
)argument_list
)call
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Reads and parses input files as defined.
If delimiter is not None, then the file is read in bulk then split on it. If it is None
(the default), then the file is parsed as sequence of lines. The rest of the options are
passed directly to builtins.open with the exception that write/append file modes is not
allowed.
>>> seq.open('examples/gear_list.txt').take(1)
[u'tent\\n']
:param path: path to file
:param delimiter: delimiter to split joined text on. if None, defaults to per line split
:param mode: file open mode
:param buffering: passed to builtins.open
:param encoding: passed to builtins.open
:param errors: passed to builtins.open
:param newline: passed to builtins.open
:return: output of file depending on options wrapped in a Sequence via seq
|
(module
(function_definition
(function_name_source) function_name_source
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_sources) identifier_sources
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"No source associated with %s") string_"No source associated with %s"
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
)binary_operator
)argument_list
)call
)raise_statement
)block
(elif_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_sources) identifier_sources
)attribute
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"Multiple sources for %s") string_"Multiple sources for %s"
(attribute
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(identifier___name__) identifier___name__
)attribute
)binary_operator
)argument_list
)call
)raise_statement
)block
)elif_clause
)if_statement
(return_statement
(subscript
(call
(identifier_list) identifier_list
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_sources) identifier_sources
)attribute
)argument_list
)call
(integer_0) integer_0
)subscript
)return_statement
)block
)function_definition
)module
|
Returns the single source name for a variant collection if it is unique,
otherwise raises an error.
|
(module
(function_definition
(function_name_json_options_to_metadata) function_name_json_options_to_metadata
(parameters
(identifier_options) identifier_options
(default_parameter
(identifier_add_brackets) identifier_add_brackets
(True) True
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_options) identifier_options
(call
(identifier_loads) identifier_loads
(argument_list
(conditional_expression
(binary_operator
(binary_operator
(string_'{') string_'{'
(identifier_options) identifier_options
)binary_operator
(string_'}') string_'}'
)binary_operator
(identifier_add_brackets) identifier_add_brackets
(identifier_options) identifier_options
)conditional_expression
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_options) identifier_options
)return_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(return_statement
(dictionary
)dictionary
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module
|
Read metadata from its json representation
|
(module
(function_definition
(function_name_mixerfields) function_name_mixerfields
(parameters
(identifier_data) identifier_data
(identifier_commdct) identifier_commdct
)parameters
(block
(expression_statement
(assignment
(identifier_objkey) identifier_objkey
(call
(attribute
(string_"Connector:Mixer") string_"Connector:Mixer"
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fieldlists) identifier_fieldlists
(call
(identifier_splittermixerfieldlists) identifier_splittermixerfieldlists
(argument_list
(identifier_data) identifier_data
(identifier_commdct) identifier_commdct
(identifier_objkey) identifier_objkey
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_extractfields) identifier_extractfields
(argument_list
(identifier_data) identifier_data
(identifier_commdct) identifier_commdct
(identifier_objkey) identifier_objkey
(identifier_fieldlists) identifier_fieldlists
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
get mixer fields to diagram it
|
(module
(function_definition
(function_name__preprocess) function_name__preprocess
(parameters
(identifier_project_dict) identifier_project_dict
)parameters
(block
(expression_statement
(assignment
(identifier_handlers) identifier_handlers
(dictionary
(pair
(tuple
(string_'archive') string_'archive'
)tuple
(identifier__list_if_none) identifier__list_if_none
)pair
(pair
(tuple
(string_'on-run-start') string_'on-run-start'
)tuple
(identifier__list_if_none_or_string) identifier__list_if_none_or_string
)pair
(pair
(tuple
(string_'on-run-end') string_'on-run-end'
)tuple
(identifier__list_if_none_or_string) identifier__list_if_none_or_string
)pair
)dictionary
)assignment
)expression_statement
(for_statement
(identifier_k) identifier_k
(tuple
(string_'models') string_'models'
(string_'seeds') string_'seeds'
)tuple
(block
(expression_statement
(assignment
(subscript
(identifier_handlers) identifier_handlers
(tuple
(identifier_k) identifier_k
)tuple
)subscript
(identifier__dict_if_none) identifier__dict_if_none
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_handlers) identifier_handlers
(tuple
(identifier_k) identifier_k
(string_'vars') string_'vars'
)tuple
)subscript
(identifier__dict_if_none) identifier__dict_if_none
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_handlers) identifier_handlers
(tuple
(identifier_k) identifier_k
(string_'pre-hook') string_'pre-hook'
)tuple
)subscript
(identifier__list_if_none_or_string) identifier__list_if_none_or_string
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_handlers) identifier_handlers
(tuple
(identifier_k) identifier_k
(string_'post-hook') string_'post-hook'
)tuple
)subscript
(identifier__list_if_none_or_string) identifier__list_if_none_or_string
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_handlers) identifier_handlers
(tuple
(string_'seeds') string_'seeds'
(string_'column_types') string_'column_types'
)tuple
)subscript
(identifier__dict_if_none) identifier__dict_if_none
)assignment
)expression_statement
(function_definition
(function_name_converter) function_name_converter
(parameters
(identifier_value) identifier_value
(identifier_keypath) identifier_keypath
)parameters
(block
(if_statement
(comparison_operator
(identifier_keypath) identifier_keypath
(identifier_handlers) identifier_handlers
)comparison_operator
(block
(expression_statement
(assignment
(identifier_handler) identifier_handler
(subscript
(identifier_handlers) identifier_handlers
(identifier_keypath) identifier_keypath
)subscript
)assignment
)expression_statement
(return_statement
(call
(identifier_handler) identifier_handler
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
(return_statement
(call
(identifier_deep_map) identifier_deep_map
(argument_list
(identifier_converter) identifier_converter
(identifier_project_dict) identifier_project_dict
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Pre-process certain special keys to convert them from None values
into empty containers, and to turn strings into arrays of strings.
|
(module
(function_definition
(function_name_default_depart) function_name_default_depart
(parameters
(identifier_self) identifier_self
(identifier_mdnode) identifier_mdnode
)parameters
(block
(if_statement
(call
(attribute
(identifier_mdnode) identifier_mdnode
(identifier_is_container) identifier_is_container
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_fn_name) identifier_fn_name
(call
(attribute
(string_'visit_{0}') string_'visit_{0}'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_mdnode) identifier_mdnode
(identifier_t) identifier_t
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(identifier_fn_name) identifier_fn_name
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(identifier_warn) identifier_warn
(argument_list
(call
(attribute
(string_"Container node skipped: type={0}") string_"Container node skipped: type={0}"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_mdnode) identifier_mdnode
(identifier_t) identifier_t
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_current_node) identifier_current_node
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_current_node) identifier_current_node
)attribute
(identifier_parent) identifier_parent
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)function_definition
)module
|
Default node depart handler
If there is a matching ``visit_<type>`` method for a container node,
then we should make sure to back up to it's parent element when the node
is exited.
|
(module
(function_definition
(function_name_delete_key) function_name_delete_key
(parameters
(identifier_self) identifier_self
(identifier_key_to_delete) identifier_key_to_delete
)parameters
(block
(expression_statement
(assignment
(identifier_log) identifier_log
(call
(attribute
(identifier_logging) identifier_logging
(identifier_getLogger) identifier_getLogger
)attribute
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_cls_logger) identifier_cls_logger
)attribute
(string_'.delete_key') string_'.delete_key'
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_'Attempting to delete key: {k}') string_'Attempting to delete key: {k}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_k) identifier_k
(identifier_key_to_delete) identifier_key_to_delete
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_s3client) identifier_s3client
)attribute
(identifier_delete_object) identifier_delete_object
)attribute
(argument_list
(keyword_argument
(identifier_Bucket) identifier_Bucket
(attribute
(identifier_self) identifier_self
(identifier_bucket_name) identifier_bucket_name
)attribute
)keyword_argument
(keyword_argument
(identifier_Key) identifier_Key
(identifier_key_to_delete) identifier_key_to_delete
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_ClientError) identifier_ClientError
(block
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(identifier_ex) identifier_ex
(identifier_trace) identifier_trace
)pattern_list
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exc_info) identifier_exc_info
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_error) identifier_error
)attribute
(argument_list
(call
(attribute
(string_'ClientError: Unable to delete key: {k}\n{e}') string_'ClientError: Unable to delete key: {k}\n{e}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_k) identifier_k
(identifier_key_to_delete) identifier_key_to_delete
)keyword_argument
(keyword_argument
(identifier_e) identifier_e
(call
(identifier_str) identifier_str
(argument_list
(identifier_ex) identifier_ex
)argument_list
)call
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(False) False
)return_statement
)block
)except_clause
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_log) identifier_log
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_'Successfully deleted key: {k}') string_'Successfully deleted key: {k}'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_k) identifier_k
(identifier_key_to_delete) identifier_key_to_delete
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
(return_statement
(True) True
)return_statement
)block
)else_clause
)try_statement
)block
)function_definition
)module
|
Deletes the specified key
:param key_to_delete:
:return:
|
(module
(function_definition
(function_name__cursor_forward) function_name__cursor_forward
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_count) identifier_count
(integer_1) integer_1
)default_parameter
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_x) identifier_x
)attribute
(call
(identifier_min) identifier_min
(argument_list
(binary_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_size) identifier_size
)attribute
(integer_1) integer_1
)subscript
(integer_1) integer_1
)binary_operator
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_x) identifier_x
)attribute
(identifier_count) identifier_count
)binary_operator
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module
|
Moves cursor right count columns. Cursor stops at right margin.
|
(module
(function_definition
(function_name__byte_pad) function_name__byte_pad
(parameters
(identifier_data) identifier_data
(default_parameter
(identifier_bound) identifier_bound
(integer_4) integer_4
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_bound) identifier_bound
(call
(identifier_int) identifier_int
(argument_list
(identifier_bound) identifier_bound
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(identifier_bound) identifier_bound
)binary_operator
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_pad) identifier_pad
(call
(identifier_bytes) identifier_bytes
(argument_list
(binary_operator
(identifier_bound) identifier_bound
(parenthesized_expression
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(identifier_bound) identifier_bound
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(call
(identifier_bytes) identifier_bytes
(argument_list
)argument_list
)call
(identifier_join) identifier_join
)attribute
(argument_list
(list
(identifier_data) identifier_data
(identifier_pad) identifier_pad
)list
)argument_list
)call
)assignment
)expression_statement
(assert_statement
(comparison_operator
(parenthesized_expression
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_result) identifier_result
)argument_list
)call
(identifier_bound) identifier_bound
)binary_operator
)parenthesized_expression
(integer_0) integer_0
)comparison_operator
)assert_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)if_statement
(return_statement
(identifier_data) identifier_data
)return_statement
)block
)function_definition
)module
|
GLTF wants chunks aligned with 4- byte boundaries
so this function will add padding to the end of a
chunk of bytes so that it aligns with a specified
boundary size
Parameters
--------------
data : bytes
Data to be padded
bound : int
Length of desired boundary
Returns
--------------
padded : bytes
Result where: (len(padded) % bound) == 0
|
(module
(function_definition
(function_name_select_from_drop_down_by_text) function_name_select_from_drop_down_by_text
(parameters
(identifier_self) identifier_self
(identifier_drop_down_locator) identifier_drop_down_locator
(identifier_option_locator) identifier_option_locator
(identifier_option_text) identifier_option_text
(default_parameter
(identifier_params) identifier_params
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_click) identifier_click
)attribute
(argument_list
(identifier_drop_down_locator) identifier_drop_down_locator
(conditional_expression
(subscript
(identifier_params) identifier_params
(string_'drop_down') string_'drop_down'
)subscript
(identifier_params) identifier_params
(None) None
)conditional_expression
)argument_list
)call
)expression_statement
(for_statement
(identifier_option) identifier_option
(call
(attribute
(identifier_self) identifier_self
(identifier_get_present_elements) identifier_get_present_elements
)attribute
(argument_list
(identifier_option_locator) identifier_option_locator
(conditional_expression
(subscript
(identifier_params) identifier_params
(string_'option') string_'option'
)subscript
(identifier_params) identifier_params
(None) None
)conditional_expression
)argument_list
)call
(block
(if_statement
(comparison_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_get_text) identifier_get_text
)attribute
(argument_list
(identifier_option) identifier_option
)argument_list
)call
(identifier_option_text) identifier_option_text
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_click) identifier_click
)attribute
(argument_list
(identifier_option) identifier_option
)argument_list
)call
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
)block
)function_definition
)module
|
Select option from drop down widget using text.
:param drop_down_locator: locator tuple (if any, params needs to be in place) or WebElement instance
:param option_locator: locator tuple (if any, params needs to be in place)
:param option_text: text to base option selection on
:param params: Dictionary containing dictionary of params
:return: None
|
(module
(function_definition
(function_name_deploy_clone_from_vm) function_name_deploy_clone_from_vm
(parameters
(identifier_self) identifier_self
(identifier_si) identifier_si
(identifier_logger) identifier_logger
(identifier_data_holder) identifier_data_holder
(identifier_vcenter_data_model) identifier_vcenter_data_model
(identifier_reservation_id) identifier_reservation_id
(identifier_cancellation_context) identifier_cancellation_context
)parameters
(block
(expression_statement
(assignment
(identifier_template_resource_model) identifier_template_resource_model
(attribute
(identifier_data_holder) identifier_data_holder
(identifier_template_resource_model) identifier_template_resource_model
)attribute
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__deploy_a_clone) identifier__deploy_a_clone
)attribute
(argument_list
(identifier_si) identifier_si
(identifier_logger) identifier_logger
(attribute
(identifier_data_holder) identifier_data_holder
(identifier_app_name) identifier_app_name
)attribute
(attribute
(identifier_template_resource_model) identifier_template_resource_model
(identifier_vcenter_vm) identifier_vcenter_vm
)attribute
(identifier_template_resource_model) identifier_template_resource_model
(identifier_vcenter_data_model) identifier_vcenter_data_model
(identifier_reservation_id) identifier_reservation_id
(identifier_cancellation_context) identifier_cancellation_context
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
deploy Cloned VM From VM Command, will deploy vm from another vm
:param cancellation_context:
:param reservation_id:
:param si:
:param logger:
:type data_holder:
:type vcenter_data_model:
:rtype DeployAppResult:
:return:
|
(module
(function_definition
(function_name_subscriber_choice_control) function_name_subscriber_choice_control
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_current) identifier_current
)attribute
(identifier_task_data) identifier_task_data
)attribute
(string_'option') string_'option'
)subscript
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_current) identifier_current
)attribute
(identifier_task_data) identifier_task_data
)attribute
(string_'chosen_subscribers') string_'chosen_subscribers'
)subscript
(identifier_names) identifier_names
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier_return_selected_form_items) identifier_return_selected_form_items
)attribute
(argument_list
(subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_input) identifier_input
)attribute
(string_'form') string_'form'
)subscript
(string_'SubscriberList') string_'SubscriberList'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_current) identifier_current
)attribute
(identifier_task_data) identifier_task_data
)attribute
(string_'msg') string_'msg'
)subscript
(string_"You should choose at least one subscriber for migration operation.") string_"You should choose at least one subscriber for migration operation."
)assignment
)expression_statement
(if_statement
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_current) identifier_current
)attribute
(identifier_task_data) identifier_task_data
)attribute
(string_'chosen_subscribers') string_'chosen_subscribers'
)subscript
(block
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_current) identifier_current
)attribute
(identifier_task_data) identifier_task_data
)attribute
(string_'option') string_'option'
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_input) identifier_input
)attribute
(string_'cmd') string_'cmd'
)subscript
)assignment
)expression_statement
(delete_statement
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_current) identifier_current
)attribute
(identifier_task_data) identifier_task_data
)attribute
(string_'msg') string_'msg'
)subscript
)delete_statement
)block
)if_statement
)block
)function_definition
)module
|
It controls subscribers choice and generates
error message if there is a non-choice.
|
(module
(function_definition
(function_name_create_conversion_event) function_name_create_conversion_event
(parameters
(identifier_self) identifier_self
(identifier_event_key) identifier_event_key
(identifier_user_id) identifier_user_id
(identifier_attributes) identifier_attributes
(identifier_event_tags) identifier_event_tags
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(call
(attribute
(identifier_self) identifier_self
(identifier__get_common_params) identifier__get_common_params
)attribute
(argument_list
(identifier_user_id) identifier_user_id
(identifier_attributes) identifier_attributes
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_conversion_params) identifier_conversion_params
(call
(attribute
(identifier_self) identifier_self
(identifier__get_required_params_for_conversion) identifier__get_required_params_for_conversion
)attribute
(argument_list
(identifier_event_key) identifier_event_key
(identifier_event_tags) identifier_event_tags
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(subscript
(subscript
(subscript
(identifier_params) identifier_params
(attribute
(attribute
(identifier_self) identifier_self
(identifier_EventParams) identifier_EventParams
)attribute
(identifier_USERS) identifier_USERS
)attribute
)subscript
(integer_0) integer_0
)subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_EventParams) identifier_EventParams
)attribute
(identifier_SNAPSHOTS) identifier_SNAPSHOTS
)attribute
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_conversion_params) identifier_conversion_params
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_Event) identifier_Event
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_EVENTS_URL) identifier_EVENTS_URL
)attribute
(identifier_params) identifier_params
(keyword_argument
(identifier_http_verb) identifier_http_verb
(attribute
(identifier_self) identifier_self
(identifier_HTTP_VERB) identifier_HTTP_VERB
)attribute
)keyword_argument
(keyword_argument
(identifier_headers) identifier_headers
(attribute
(identifier_self) identifier_self
(identifier_HTTP_HEADERS) identifier_HTTP_HEADERS
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Create conversion Event to be sent to the logging endpoint.
Args:
event_key: Key representing the event which needs to be recorded.
user_id: ID for user.
attributes: Dict representing user attributes and values.
event_tags: Dict representing metadata associated with the event.
Returns:
Event object encapsulating the conversion event.
|
(module
(function_definition
(function_name_show) function_name_show
(parameters
(identifier_cobertura_file) identifier_cobertura_file
(identifier_format) identifier_format
(identifier_output) identifier_output
(identifier_source) identifier_source
(identifier_source_prefix) identifier_source_prefix
)parameters
(block
(expression_statement
(assignment
(identifier_cobertura) identifier_cobertura
(call
(identifier_Cobertura) identifier_Cobertura
(argument_list
(identifier_cobertura_file) identifier_cobertura_file
(keyword_argument
(identifier_source) identifier_source
(identifier_source) identifier_source
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_Reporter) identifier_Reporter
(subscript
(identifier_reporters) identifier_reporters
(identifier_format) identifier_format
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_reporter) identifier_reporter
(call
(identifier_Reporter) identifier_Reporter
(argument_list
(identifier_cobertura) identifier_cobertura
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_report) identifier_report
(call
(attribute
(identifier_reporter) identifier_reporter
(identifier_generate) identifier_generate
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_report) identifier_report
(identifier_bytes) identifier_bytes
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_report) identifier_report
(call
(attribute
(identifier_report) identifier_report
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_isatty) identifier_isatty
(conditional_expression
(True) True
(comparison_operator
(identifier_output) identifier_output
(None) None
)comparison_operator
(call
(attribute
(identifier_output) identifier_output
(identifier_isatty) identifier_isatty
)attribute
(argument_list
)argument_list
)call
)conditional_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_click) identifier_click
(identifier_echo) identifier_echo
)attribute
(argument_list
(identifier_report) identifier_report
(keyword_argument
(identifier_file) identifier_file
(identifier_output) identifier_output
)keyword_argument
(keyword_argument
(identifier_nl) identifier_nl
(identifier_isatty) identifier_isatty
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
show coverage summary of a Cobertura report
|
(module
(function_definition
(function_name_ping) function_name_ping
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_msg_code) identifier_msg_code
(attribute
(attribute
(attribute
(identifier_riak) identifier_riak
(identifier_pb) identifier_pb
)attribute
(identifier_messages) identifier_messages
)attribute
(identifier_MSG_CODE_PING_REQ) identifier_MSG_CODE_PING_REQ
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_codec) identifier_codec
(call
(attribute
(identifier_self) identifier_self
(identifier__get_codec) identifier__get_codec
)attribute
(argument_list
(identifier_msg_code) identifier_msg_code
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_msg) identifier_msg
(call
(attribute
(identifier_codec) identifier_codec
(identifier_encode_ping) identifier_encode_ping
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_resp_code) identifier_resp_code
(identifier__) identifier__
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__request) identifier__request
)attribute
(argument_list
(identifier_msg) identifier_msg
(identifier_codec) identifier_codec
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_resp_code) identifier_resp_code
(attribute
(attribute
(attribute
(identifier_riak) identifier_riak
(identifier_pb) identifier_pb
)attribute
(identifier_messages) identifier_messages
)attribute
(identifier_MSG_CODE_PING_RESP) identifier_MSG_CODE_PING_RESP
)attribute
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(return_statement
(False) False
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Ping the remote server
|
(module
(function_definition
(function_name__show_previous_blank_lines) function_name__show_previous_blank_lines
(parameters
(identifier_block) identifier_block
)parameters
(block
(expression_statement
(assignment
(identifier_pblock) identifier_pblock
(call
(attribute
(identifier_block) identifier_block
(identifier_previous) identifier_previous
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(while_statement
(parenthesized_expression
(boolean_operator
(comparison_operator
(call
(attribute
(call
(attribute
(identifier_pblock) identifier_pblock
(identifier_text) identifier_text
)attribute
(argument_list
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(string_'') string_''
)comparison_operator
(comparison_operator
(call
(attribute
(identifier_pblock) identifier_pblock
(identifier_blockNumber) identifier_blockNumber
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)comparison_operator
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(call
(attribute
(identifier_pblock) identifier_pblock
(identifier_setVisible) identifier_setVisible
)attribute
(argument_list
(True) True
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_pblock) identifier_pblock
(call
(attribute
(identifier_pblock) identifier_pblock
(identifier_previous) identifier_previous
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)while_statement
)block
)function_definition
)module
|
Show the block previous blank lines
|
(module
(function_definition
(function_name_set_time_zone) function_name_set_time_zone
(parameters
(identifier_self) identifier_self
(identifier_item) identifier_item
)parameters
(block
(expression_statement
(assignment
(identifier_i3s_time) identifier_i3s_time
(call
(attribute
(subscript
(identifier_item) identifier_item
(string_"full_text") string_"full_text"
)subscript
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_"UTF-8") string_"UTF-8"
(string_"replace") string_"replace"
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_i3s_time) identifier_i3s_time
(call
(attribute
(identifier_i3s_time) identifier_i3s_time
(identifier_decode) identifier_decode
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_parts) identifier_parts
(call
(attribute
(identifier_i3s_time) identifier_i3s_time
(identifier_split) identifier_split
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_i3s_datetime) identifier_i3s_datetime
(call
(attribute
(string_" ") string_" "
(identifier_join) identifier_join
)attribute
(argument_list
(subscript
(identifier_parts) identifier_parts
(slice
(colon) colon
(integer_2) integer_2
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_parts) identifier_parts
)argument_list
)call
(integer_3) integer_3
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_i3s_time_tz) identifier_i3s_time_tz
(subscript
(identifier_parts) identifier_parts
(integer_2) integer_2
)subscript
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_date) identifier_date
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_strptime) identifier_strptime
)attribute
(argument_list
(identifier_i3s_datetime) identifier_i3s_datetime
(identifier_TIME_FORMAT) identifier_TIME_FORMAT
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_utcnow) identifier_utcnow
(call
(attribute
(identifier_datetime) identifier_datetime
(identifier_utcnow) identifier_utcnow
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_delta) identifier_delta
(binary_operator
(call
(identifier_datetime) identifier_datetime
(argument_list
(attribute
(identifier_date) identifier_date
(identifier_year) identifier_year
)attribute
(attribute
(identifier_date) identifier_date
(identifier_month) identifier_month
)attribute
(attribute
(identifier_date) identifier_date
(identifier_day) identifier_day
)attribute
(attribute
(identifier_date) identifier_date
(identifier_hour) identifier_hour
)attribute
(attribute
(identifier_date) identifier_date
(identifier_minute) identifier_minute
)attribute
)argument_list
)call
(call
(identifier_datetime) identifier_datetime
(argument_list
(attribute
(identifier_utcnow) identifier_utcnow
(identifier_year) identifier_year
)attribute
(attribute
(identifier_utcnow) identifier_utcnow
(identifier_month) identifier_month
)attribute
(attribute
(identifier_utcnow) identifier_utcnow
(identifier_day) identifier_day
)attribute
(attribute
(identifier_utcnow) identifier_utcnow
(identifier_hour) identifier_hour
)attribute
(attribute
(identifier_utcnow) identifier_utcnow
(identifier_minute) identifier_minute
)attribute
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_tz) identifier_tz
)attribute
(call
(identifier_Tz) identifier_Tz
(argument_list
(identifier_i3s_time_tz) identifier_i3s_time_tz
(identifier_delta) identifier_delta
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(return_statement
(False) False
)return_statement
)block
)except_clause
)try_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module
|
Work out the time zone and create a shim tzinfo.
We return True if all is good or False if there was an issue and we
need to re check the time zone. see issue #1375
|
(module
(function_definition
(function_name_join_resource_name) function_name_join_resource_name
(parameters
(identifier_self) identifier_self
(identifier_v) identifier_v
)parameters
(block
(expression_statement
(assignment
(identifier_d) identifier_d
(attribute
(identifier_self) identifier_self
(identifier_dict) identifier_dict
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_d) identifier_d
(string_'fragment') string_'fragment'
)subscript
(list
(identifier_v) identifier_v
(None) None
)list
)assignment
)expression_statement
(return_statement
(call
(identifier_MetapackResourceUrl) identifier_MetapackResourceUrl
(argument_list
(keyword_argument
(identifier_downloader) identifier_downloader
(attribute
(identifier_self) identifier_self
(identifier__downloader) identifier__downloader
)attribute
)keyword_argument
(dictionary_splat
(identifier_d) identifier_d
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Return a MetapackResourceUrl that includes a reference to the resource. Returns a
MetapackResourceUrl, which will have a fragment
|
(module
(function_definition
(function_name_import_from_netcdf) function_name_import_from_netcdf
(parameters
(identifier_network) identifier_network
(identifier_path) identifier_path
(default_parameter
(identifier_skip_time) identifier_skip_time
(False) False
)default_parameter
)parameters
(block
(assert_statement
(identifier_has_xarray) identifier_has_xarray
(string_"xarray must be installed for netCDF support.") string_"xarray must be installed for netCDF support."
)assert_statement
(expression_statement
(assignment
(identifier_basename) identifier_basename
(conditional_expression
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_path) identifier_path
(identifier_string_types) identifier_string_types
)argument_list
)call
(None) None
)conditional_expression
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_ImporterNetCDF) identifier_ImporterNetCDF
(argument_list
(keyword_argument
(identifier_path) identifier_path
(identifier_path) identifier_path
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_importer) identifier_importer
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(identifier__import_from_importer) identifier__import_from_importer
(argument_list
(identifier_network) identifier_network
(identifier_importer) identifier_importer
(keyword_argument
(identifier_basename) identifier_basename
(identifier_basename) identifier_basename
)keyword_argument
(keyword_argument
(identifier_skip_time) identifier_skip_time
(identifier_skip_time) identifier_skip_time
)keyword_argument
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)function_definition
)module
|
Import network data from netCDF file or xarray Dataset at `path`.
Parameters
----------
path : string|xr.Dataset
Path to netCDF dataset or instance of xarray Dataset
skip_time : bool, default False
Skip reading in time dependent attributes
|
(module
(function_definition
(function_name__cache_loc) function_name__cache_loc
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_saltenv) identifier_saltenv
(string_'base') string_'base'
)default_parameter
(default_parameter
(identifier_cachedir) identifier_cachedir
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_cachedir) identifier_cachedir
(call
(attribute
(identifier_self) identifier_self
(identifier_get_cachedir) identifier_get_cachedir
)attribute
(argument_list
(identifier_cachedir) identifier_cachedir
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dest) identifier_dest
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_cachedir) identifier_cachedir
(string_'files') string_'files'
(identifier_saltenv) identifier_saltenv
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_destdir) identifier_destdir
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_dest) identifier_dest
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(call
(attribute
(attribute
(attribute
(identifier_salt) identifier_salt
(identifier_utils) identifier_utils
)attribute
(identifier_files) identifier_files
)attribute
(identifier_set_umask) identifier_set_umask
)attribute
(argument_list
(integer_0o077) integer_0o077
)argument_list
)call
)with_item
)with_clause
(block
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(identifier_destdir) identifier_destdir
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_destdir) identifier_destdir
)argument_list
)call
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(identifier_destdir) identifier_destdir
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(identifier_OSError) identifier_OSError
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(if_statement
(comparison_operator
(attribute
(identifier_exc) identifier_exc
(identifier_errno) identifier_errno
)attribute
(attribute
(identifier_errno) identifier_errno
(identifier_EEXIST) identifier_EEXIST
)attribute
)comparison_operator
(block
(raise_statement
)raise_statement
)block
)if_statement
)block
)except_clause
)try_statement
(expression_statement
(yield
(identifier_dest) identifier_dest
)yield
)expression_statement
)block
)with_statement
)block
)function_definition
)module
|
Return the local location to cache the file, cache dirs will be made
|
(module
(function_definition
(function_name_import_legislators) function_name_import_legislators
(parameters
(identifier_src) identifier_src
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_"Importing Legislators From: {0}") string_"Importing Legislators From: {0}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_src) identifier_src
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_current) identifier_current
(call
(attribute
(identifier_pd) identifier_pd
(identifier_read_csv) identifier_read_csv
)attribute
(argument_list
(call
(attribute
(string_"{0}/{1}/legislators-current.csv") string_"{0}/{1}/legislators-current.csv"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_src) identifier_src
(identifier_LEGISLATOR_DIR) identifier_LEGISLATOR_DIR
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_historic) identifier_historic
(call
(attribute
(identifier_pd) identifier_pd
(identifier_read_csv) identifier_read_csv
)attribute
(argument_list
(call
(attribute
(string_"{0}/{1}/legislators-historic.csv") string_"{0}/{1}/legislators-historic.csv"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_src) identifier_src
(identifier_LEGISLATOR_DIR) identifier_LEGISLATOR_DIR
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_legislators) identifier_legislators
(call
(attribute
(identifier_current) identifier_current
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_historic) identifier_historic
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_legislators) identifier_legislators
)return_statement
)block
)function_definition
)module
|
Read the legislators from the csv files into a single Dataframe. Intended
for importing new data.
|
(module
(function_definition
(function_name_training_set_multiplication) function_name_training_set_multiplication
(parameters
(identifier_training_set) identifier_training_set
(identifier_mult_queue) identifier_mult_queue
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Multiply data...") string_"Multiply data..."
)argument_list
)call
)expression_statement
(for_statement
(identifier_algorithm) identifier_algorithm
(identifier_mult_queue) identifier_mult_queue
(block
(expression_statement
(assignment
(identifier_new_trning_set) identifier_new_trning_set
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_recording) identifier_recording
(identifier_training_set) identifier_training_set
(block
(expression_statement
(assignment
(identifier_samples) identifier_samples
(call
(identifier_algorithm) identifier_algorithm
(argument_list
(subscript
(identifier_recording) identifier_recording
(string_'handwriting') string_'handwriting'
)subscript
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_sample) identifier_sample
(identifier_samples) identifier_samples
(block
(expression_statement
(call
(attribute
(identifier_new_trning_set) identifier_new_trning_set
(identifier_append) identifier_append
)attribute
(argument_list
(dictionary
(pair
(string_'id') string_'id'
(subscript
(identifier_recording) identifier_recording
(string_'id') string_'id'
)subscript
)pair
(pair
(string_'is_in_testset') string_'is_in_testset'
(integer_0) integer_0
)pair
(pair
(string_'formula_id') string_'formula_id'
(subscript
(identifier_recording) identifier_recording
(string_'formula_id') string_'formula_id'
)subscript
)pair
(pair
(string_'handwriting') string_'handwriting'
(identifier_sample) identifier_sample
)pair
(pair
(string_'formula_in_latex') string_'formula_in_latex'
(subscript
(identifier_recording) identifier_recording
(string_'formula_in_latex') string_'formula_in_latex'
)subscript
)pair
)dictionary
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_training_set) identifier_training_set
(identifier_new_trning_set) identifier_new_trning_set
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_new_trning_set) identifier_new_trning_set
)return_statement
)block
)function_definition
)module
|
Multiply the training set by all methods listed in mult_queue.
Parameters
----------
training_set :
set of all recordings that will be used for training
mult_queue :
list of all algorithms that will take one recording and generate more
than one.
Returns
-------
mutliple recordings
|
(module
(function_definition
(function_name_create_unique_wcsname) function_name_create_unique_wcsname
(parameters
(identifier_fimg) identifier_fimg
(identifier_extnum) identifier_extnum
(identifier_wcsname) identifier_wcsname
)parameters
(block
(expression_statement
(assignment
(identifier_wnames) identifier_wnames
(call
(identifier_list) identifier_list
(argument_list
(call
(attribute
(call
(attribute
(attribute
(identifier_wcsutil) identifier_wcsutil
(identifier_altwcs) identifier_altwcs
)attribute
(identifier_wcsnames) identifier_wcsnames
)attribute
(argument_list
(identifier_fimg) identifier_fimg
(keyword_argument
(identifier_ext) identifier_ext
(identifier_extnum) identifier_extnum
)keyword_argument
)argument_list
)call
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_wcsname) identifier_wcsname
(identifier_wnames) identifier_wnames
)comparison_operator
(block
(expression_statement
(assignment
(identifier_uniqname) identifier_uniqname
(identifier_wcsname) identifier_wcsname
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_rpatt) identifier_rpatt
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(binary_operator
(identifier_wcsname) identifier_wcsname
(string_'_\d') string_'_\d'
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_index) identifier_index
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_wname) identifier_wname
(identifier_wnames) identifier_wnames
(block
(expression_statement
(assignment
(identifier_rmatch) identifier_rmatch
(call
(attribute
(identifier_rpatt) identifier_rpatt
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_wname) identifier_wname
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_rmatch) identifier_rmatch
(block
(expression_statement
(assignment
(identifier_n) identifier_n
(call
(identifier_int) identifier_int
(argument_list
(subscript
(identifier_wname) identifier_wname
(slice
(binary_operator
(call
(attribute
(identifier_wname) identifier_wname
(identifier_rfind) identifier_rfind
)attribute
(argument_list
(string_'_') string_'_'
)argument_list
)call
(integer_1) integer_1
)binary_operator
(colon) colon
)slice
)subscript
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_n) identifier_n
(identifier_index) identifier_index
)comparison_operator
(block
(expression_statement
(assignment
(identifier_index) identifier_index
(integer_1) integer_1
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(augmented_assignment
(identifier_index) identifier_index
(integer_1) integer_1
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_uniqname) identifier_uniqname
(binary_operator
(string_"%s_%d") string_"%s_%d"
(tuple
(identifier_wcsname) identifier_wcsname
(identifier_index) identifier_index
)tuple
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_uniqname) identifier_uniqname
)return_statement
)block
)function_definition
)module
|
This function evaluates whether the specified wcsname value has
already been used in this image. If so, it automatically modifies
the name with a simple version ID using wcsname_NNN format.
Parameters
----------
fimg : obj
PyFITS object of image with WCS information to be updated
extnum : int
Index of extension with WCS information to be updated
wcsname : str
Value of WCSNAME specified by user for labelling the new WCS
Returns
-------
uniqname : str
Unique WCSNAME value
|
(module
(function_definition
(function_name_unpack) function_name_unpack
(parameters
(identifier_s) identifier_s
)parameters
(block
(expression_statement
(assignment
(identifier_header) identifier_header
(call
(identifier_IRHeader) identifier_IRHeader
(argument_list
(list_splat
(call
(attribute
(identifier_struct) identifier_struct
(identifier_unpack) identifier_unpack
)attribute
(argument_list
(identifier__IR_FORMAT) identifier__IR_FORMAT
(subscript
(identifier_s) identifier_s
(slice
(colon) colon
(identifier__IR_SIZE) identifier__IR_SIZE
)slice
)subscript
)argument_list
)call
)list_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_s) identifier_s
(subscript
(identifier_s) identifier_s
(slice
(identifier__IR_SIZE) identifier__IR_SIZE
(colon) colon
)slice
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_header) identifier_header
(identifier_flag) identifier_flag
)attribute
(integer_0) integer_0
)comparison_operator
(block
(expression_statement
(assignment
(identifier_header) identifier_header
(call
(attribute
(identifier_header) identifier_header
(identifier__replace) identifier__replace
)attribute
(argument_list
(keyword_argument
(identifier_label) identifier_label
(call
(attribute
(identifier_np) identifier_np
(identifier_frombuffer) identifier_frombuffer
)attribute
(argument_list
(identifier_s) identifier_s
(attribute
(identifier_np) identifier_np
(identifier_float32) identifier_float32
)attribute
(attribute
(identifier_header) identifier_header
(identifier_flag) identifier_flag
)attribute
)argument_list
)call
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_s) identifier_s
(subscript
(identifier_s) identifier_s
(slice
(binary_operator
(attribute
(identifier_header) identifier_header
(identifier_flag) identifier_flag
)attribute
(integer_4) integer_4
)binary_operator
(colon) colon
)slice
)subscript
)assignment
)expression_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_header) identifier_header
(identifier_s) identifier_s
)expression_list
)return_statement
)block
)function_definition
)module
|
Unpack a MXImageRecord to string.
Parameters
----------
s : str
String buffer from ``MXRecordIO.read``.
Returns
-------
header : IRHeader
Header of the image record.
s : str
Unpacked string.
Examples
--------
>>> record = mx.recordio.MXRecordIO('test.rec', 'r')
>>> item = record.read()
>>> header, s = mx.recordio.unpack(item)
>>> header
HEADER(flag=0, label=14.0, id=20129312, id2=0)
|
(module
(function_definition
(function_name_help_heading) function_name_help_heading
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_message) identifier_message
(call
(attribute
(identifier_m) identifier_m
(identifier_Heading) identifier_Heading
)attribute
(argument_list
(call
(attribute
(call
(identifier_tr) identifier_tr
(argument_list
(string_'Help for {step_name}') string_'Help for {step_name}'
)argument_list
)call
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_step_name) identifier_step_name
(attribute
(identifier_self) identifier_self
(identifier_step_name) identifier_step_name
)attribute
)keyword_argument
)argument_list
)call
(dictionary_splat
(identifier_SUBSECTION_STYLE) identifier_SUBSECTION_STYLE
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_message) identifier_message
)return_statement
)block
)function_definition
)module
|
Helper method that returns just the header.
:returns: A heading object.
:rtype: safe.messaging.heading.Heading
|
(module
(function_definition
(function_name_set_win_wallpaper) function_name_set_win_wallpaper
(parameters
(identifier_img) identifier_img
)parameters
(block
(if_statement
(comparison_operator
(string_"x86") string_"x86"
(subscript
(attribute
(identifier_os) identifier_os
(identifier_environ) identifier_environ
)attribute
(string_"PROGRAMFILES") string_"PROGRAMFILES"
)subscript
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_windll) identifier_windll
)attribute
(identifier_user32) identifier_user32
)attribute
(identifier_SystemParametersInfoW) identifier_SystemParametersInfoW
)attribute
(argument_list
(integer_20) integer_20
(integer_0) integer_0
(identifier_img) identifier_img
(integer_3) integer_3
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_windll) identifier_windll
)attribute
(identifier_user32) identifier_user32
)attribute
(identifier_SystemParametersInfoA) identifier_SystemParametersInfoA
)attribute
(argument_list
(integer_20) integer_20
(integer_0) integer_0
(identifier_img) identifier_img
(integer_3) integer_3
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Set the wallpaper on Windows.
|
(module
(function_definition
(function_name_refresh_fqdn_cache) function_name_refresh_fqdn_cache
(parameters
(default_parameter
(identifier_force) identifier_force
(False) False
)default_parameter
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_force) identifier_force
(identifier_bool) identifier_bool
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_CommandExecutionError) identifier_CommandExecutionError
(argument_list
(string_"Force option must be boolean.") string_"Force option must be boolean."
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(identifier_force) identifier_force
(block
(expression_statement
(assignment
(identifier_query) identifier_query
(dictionary
(pair
(string_'type') string_'type'
(string_'op') string_'op'
)pair
(pair
(string_'cmd') string_'cmd'
(string_'<request><system><fqdn><refresh><force>yes</force></refresh></fqdn></system></request>') string_'<request><system><fqdn><refresh><force>yes</force></refresh></fqdn></system></request>'
)pair
)dictionary
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_query) identifier_query
(dictionary
(pair
(string_'type') string_'type'
(string_'op') string_'op'
)pair
(pair
(string_'cmd') string_'cmd'
(string_'<request><system><fqdn><refresh></refresh></fqdn></system></request>') string_'<request><system><fqdn><refresh></refresh></fqdn></system></request>'
)pair
)dictionary
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(call
(subscript
(identifier___proxy__) identifier___proxy__
(string_'panos.call') string_'panos.call'
)subscript
(argument_list
(identifier_query) identifier_query
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Force refreshes all FQDNs used in rules.
force
Forces all fqdn refresh
CLI Example:
.. code-block:: bash
salt '*' panos.refresh_fqdn_cache
salt '*' panos.refresh_fqdn_cache force=True
|
(module
(function_definition
(function_name_mbar_log_W_nk) function_name_mbar_log_W_nk
(parameters
(identifier_u_kn) identifier_u_kn
(identifier_N_k) identifier_N_k
(identifier_f_k) identifier_f_k
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_u_kn) identifier_u_kn
(identifier_N_k) identifier_N_k
(identifier_f_k) identifier_f_k
)pattern_list
(call
(identifier_validate_inputs) identifier_validate_inputs
(argument_list
(identifier_u_kn) identifier_u_kn
(identifier_N_k) identifier_N_k
(identifier_f_k) identifier_f_k
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_log_denominator_n) identifier_log_denominator_n
(call
(identifier_logsumexp) identifier_logsumexp
(argument_list
(binary_operator
(identifier_f_k) identifier_f_k
(attribute
(identifier_u_kn) identifier_u_kn
(identifier_T) identifier_T
)attribute
)binary_operator
(keyword_argument
(identifier_b) identifier_b
(identifier_N_k) identifier_N_k
)keyword_argument
(keyword_argument
(identifier_axis) identifier_axis
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_logW) identifier_logW
(binary_operator
(binary_operator
(identifier_f_k) identifier_f_k
(attribute
(identifier_u_kn) identifier_u_kn
(identifier_T) identifier_T
)attribute
)binary_operator
(subscript
(identifier_log_denominator_n) identifier_log_denominator_n
(slice
(colon) colon
)slice
(attribute
(identifier_np) identifier_np
(identifier_newaxis) identifier_newaxis
)attribute
)subscript
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_logW) identifier_logW
)return_statement
)block
)function_definition
)module
|
Calculate the log weight matrix.
Parameters
----------
u_kn : np.ndarray, shape=(n_states, n_samples), dtype='float'
The reduced potential energies, i.e. -log unnormalized probabilities
N_k : np.ndarray, shape=(n_states), dtype='int'
The number of samples in each state
f_k : np.ndarray, shape=(n_states), dtype='float'
The reduced free energies of each state
Returns
-------
logW_nk : np.ndarray, dtype='float', shape=(n_samples, n_states)
The normalized log weights.
Notes
-----
Equation (9) in JCP MBAR paper.
|
(module
(function_definition
(function_name_get_details) function_name_get_details
(parameters
(default_parameter
(identifier_app_url) identifier_app_url
(attribute
(identifier_defaults) identifier_defaults
(identifier_APP_URL) identifier_APP_URL
)attribute
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(binary_operator
(string_'%s/environment') string_'%s/environment'
(identifier_app_url) identifier_app_url
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_JutException) identifier_JutException
(argument_list
(binary_operator
(string_'Unable to retrieve environment details from %s, got %s: %s') string_'Unable to retrieve environment details from %s, got %s: %s'
(tuple
(identifier_url) identifier_url
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
(attribute
(identifier_response) identifier_response
(identifier_text) identifier_text
)attribute
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
returns environment details for the app url specified
|
(module
(function_definition
(function_name_scheme) function_name_scheme
(parameters
(identifier_name) identifier_name
(identifier_bins) identifier_bins
(default_parameter
(identifier_bin_method) identifier_bin_method
(string_'quantiles') string_'quantiles'
)default_parameter
)parameters
(block
(return_statement
(dictionary
(pair
(string_'name') string_'name'
(identifier_name) identifier_name
)pair
(pair
(string_'bins') string_'bins'
(identifier_bins) identifier_bins
)pair
(pair
(string_'bin_method') string_'bin_method'
(parenthesized_expression
(conditional_expression
(identifier_bin_method) identifier_bin_method
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_bins) identifier_bins
(identifier_int) identifier_int
)argument_list
)call
(string_'') string_''
)conditional_expression
)parenthesized_expression
)pair
)dictionary
)return_statement
)block
)function_definition
)module
|
Return a custom scheme based on CARTOColors.
Args:
name (str): Name of a CARTOColor.
bins (int or iterable): If an `int`, the number of bins for classifying
data. CARTOColors have 7 bins max for quantitative data, and 11 max
for qualitative data. If `bins` is a `list`, it is the upper range
for classifying data. E.g., `bins` can be of the form ``(10, 20, 30,
40, 50)``.
bin_method (str, optional): One of methods in :obj:`BinMethod`.
Defaults to ``quantiles``. If `bins` is an interable, then that is
the bin method that will be used and this will be ignored.
.. Warning::
Input types are particularly sensitive in this function, and little
feedback is given for errors. ``name`` and ``bin_method`` arguments
are case-sensitive.
|
(module
(function_definition
(function_name_stream_directory) function_name_stream_directory
(parameters
(identifier_directory) identifier_directory
(default_parameter
(identifier_recursive) identifier_recursive
(False) False
)default_parameter
(default_parameter
(identifier_patterns) identifier_patterns
(string_'**') string_'**'
)default_parameter
(default_parameter
(identifier_chunk_size) identifier_chunk_size
(identifier_default_chunk_size) identifier_default_chunk_size
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_stream) identifier_stream
(call
(identifier_DirectoryStream) identifier_DirectoryStream
(argument_list
(identifier_directory) identifier_directory
(keyword_argument
(identifier_recursive) identifier_recursive
(identifier_recursive) identifier_recursive
)keyword_argument
(keyword_argument
(identifier_patterns) identifier_patterns
(identifier_patterns) identifier_patterns
)keyword_argument
(keyword_argument
(identifier_chunk_size) identifier_chunk_size
(identifier_chunk_size) identifier_chunk_size
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(call
(attribute
(identifier_stream) identifier_stream
(identifier_body) identifier_body
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_stream) identifier_stream
(identifier_headers) identifier_headers
)attribute
)expression_list
)return_statement
)block
)function_definition
)module
|
Gets a buffered generator for streaming directories.
Returns a buffered generator which encodes a directory as
:mimetype:`multipart/form-data` with the corresponding headers.
Parameters
----------
directory : str
The filepath of the directory to stream
recursive : bool
Stream all content within the directory recursively?
patterns : str | list
Single *glob* pattern or list of *glob* patterns and compiled
regular expressions to match the names of the filepaths to keep
chunk_size : int
Maximum size of each stream chunk
|
(module
(function_definition
(function_name_get_layer_description_from_canvas) function_name_get_layer_description_from_canvas
(parameters
(identifier_self) identifier_self
(identifier_layer) identifier_layer
(identifier_purpose) identifier_purpose
)parameters
(block
(if_statement
(not_operator
(identifier_layer) identifier_layer
)not_operator
(block
(return_statement
(string_"") string_""
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_keywords) identifier_keywords
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_keyword_io) identifier_keyword_io
)attribute
(identifier_read_keywords) identifier_read_keywords
)attribute
(argument_list
(identifier_layer) identifier_layer
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(string_'layer_purpose') string_'layer_purpose'
(identifier_keywords) identifier_keywords
)comparison_operator
(block
(expression_statement
(assignment
(identifier_keywords) identifier_keywords
(None) None
)assignment
)expression_statement
)block
)if_statement
)block
(except_clause
(tuple
(identifier_HashNotFoundError) identifier_HashNotFoundError
(identifier_OperationalError) identifier_OperationalError
(identifier_NoKeywordsFoundError) identifier_NoKeywordsFoundError
(identifier_KeywordNotFoundError) identifier_KeywordNotFoundError
(identifier_InvalidParameterError) identifier_InvalidParameterError
(identifier_UnsupportedProviderError) identifier_UnsupportedProviderError
)tuple
(block
(expression_statement
(assignment
(identifier_keywords) identifier_keywords
(None) None
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_layer) identifier_layer
)attribute
(identifier_layer) identifier_layer
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_purpose) identifier_purpose
(subscript
(identifier_layer_purpose_hazard) identifier_layer_purpose_hazard
(string_'key') string_'key'
)subscript
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_hazard_layer) identifier_hazard_layer
)attribute
(identifier_layer) identifier_layer
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_purpose) identifier_purpose
(subscript
(identifier_layer_purpose_exposure) identifier_layer_purpose_exposure
(string_'key') string_'key'
)subscript
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_exposure_layer) identifier_exposure_layer
)attribute
(identifier_layer) identifier_layer
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_aggregation_layer) identifier_aggregation_layer
)attribute
(identifier_layer) identifier_layer
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(boolean_operator
(identifier_keywords) identifier_keywords
(comparison_operator
(string_'keyword_version') string_'keyword_version'
(identifier_keywords) identifier_keywords
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_kw_ver) identifier_kw_ver
(call
(identifier_str) identifier_str
(argument_list
(subscript
(identifier_keywords) identifier_keywords
(string_'keyword_version') string_'keyword_version'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_is_selected_layer_keywordless) identifier_is_selected_layer_keywordless
)attribute
(parenthesized_expression
(not_operator
(call
(identifier_is_keyword_version_supported) identifier_is_keyword_version_supported
(argument_list
(identifier_kw_ver) identifier_kw_ver
)argument_list
)call
)not_operator
)parenthesized_expression
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_is_selected_layer_keywordless) identifier_is_selected_layer_keywordless
)attribute
(True) True
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_description) identifier_description
(call
(identifier_layer_description_html) identifier_layer_description_html
(argument_list
(identifier_layer) identifier_layer
(identifier_keywords) identifier_keywords
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_description) identifier_description
)return_statement
)block
)function_definition
)module
|
Obtain the description of a canvas layer selected by user.
:param layer: The QGIS layer.
:type layer: QgsMapLayer
:param purpose: The layer purpose of the layer to get the description.
:type purpose: string
:returns: description of the selected layer.
:rtype: string
|
(module
(function_definition
(function_name_transition) function_name_transition
(parameters
(default_parameter
(identifier_trname) identifier_trname
(string_'') string_''
)default_parameter
(default_parameter
(identifier_field) identifier_field
(string_'') string_''
)default_parameter
(default_parameter
(identifier_check) identifier_check
(None) None
)default_parameter
(default_parameter
(identifier_before) identifier_before
(None) None
)default_parameter
(default_parameter
(identifier_after) identifier_after
(None) None
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_is_callable) identifier_is_callable
(argument_list
(identifier_trname) identifier_trname
)argument_list
)call
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(concatenated_string
(string_"The @transition decorator should be called as ") string_"The @transition decorator should be called as "
(string_"@transition(['transition_name'], **kwargs)") string_"@transition(['transition_name'], **kwargs)"
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(boolean_operator
(boolean_operator
(identifier_check) identifier_check
(identifier_before) identifier_before
)boolean_operator
(identifier_after) identifier_after
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_warnings) identifier_warnings
(identifier_warn) identifier_warn
)attribute
(argument_list
(concatenated_string
(string_"The use of check=, before= and after= in @transition decorators is ") string_"The use of check=, before= and after= in @transition decorators is "
(string_"deprecated in favor of @transition_check, @before_transition and ") string_"deprecated in favor of @transition_check, @before_transition and "
(string_"@after_transition decorators.") string_"@after_transition decorators."
)concatenated_string
(identifier_DeprecationWarning) identifier_DeprecationWarning
(keyword_argument
(identifier_stacklevel) identifier_stacklevel
(integer_2) integer_2
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_TransitionWrapper) identifier_TransitionWrapper
(argument_list
(identifier_trname) identifier_trname
(keyword_argument
(identifier_field) identifier_field
(identifier_field) identifier_field
)keyword_argument
(keyword_argument
(identifier_check) identifier_check
(identifier_check) identifier_check
)keyword_argument
(keyword_argument
(identifier_before) identifier_before
(identifier_before) identifier_before
)keyword_argument
(keyword_argument
(identifier_after) identifier_after
(identifier_after) identifier_after
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Decorator to declare a function as a transition implementation.
|
(module
(function_definition
(function_name__show) function_name__show
(parameters
(identifier_self) identifier_self
(identifier_message) identifier_message
(default_parameter
(identifier_indent) identifier_indent
(integer_0) integer_0
)default_parameter
(default_parameter
(identifier_enable_verbose) identifier_enable_verbose
(True) True
)default_parameter
)parameters
(block
(if_statement
(identifier_enable_verbose) identifier_enable_verbose
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(binary_operator
(string_" ") string_" "
(identifier_indent) identifier_indent
)binary_operator
(identifier_message) identifier_message
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module
|
Message printer.
|
(module
(function_definition
(function_name_move_to) function_name_move_to
(parameters
(identifier_x) identifier_x
(identifier_y) identifier_y
)parameters
(block
(for_statement
(identifier_b) identifier_b
(identifier__button_state) identifier__button_state
(block
(if_statement
(subscript
(identifier__button_state) identifier__button_state
(identifier_b) identifier_b
)subscript
(block
(expression_statement
(assignment
(identifier_e) identifier_e
(call
(attribute
(identifier_Quartz) identifier_Quartz
(identifier_CGEventCreateMouseEvent) identifier_CGEventCreateMouseEvent
)attribute
(argument_list
(None) None
(subscript
(subscript
(identifier__button_mapping) identifier__button_mapping
(identifier_b) identifier_b
)subscript
(integer_3) integer_3
)subscript
(tuple
(identifier_x) identifier_x
(identifier_y) identifier_y
)tuple
(subscript
(subscript
(identifier__button_mapping) identifier__button_mapping
(identifier_b) identifier_b
)subscript
(integer_0) integer_0
)subscript
)argument_list
)call
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_e) identifier_e
(call
(attribute
(identifier_Quartz) identifier_Quartz
(identifier_CGEventCreateMouseEvent) identifier_CGEventCreateMouseEvent
)attribute
(argument_list
(None) None
(attribute
(identifier_Quartz) identifier_Quartz
(identifier_kCGEventMouseMoved) identifier_kCGEventMouseMoved
)attribute
(tuple
(identifier_x) identifier_x
(identifier_y) identifier_y
)tuple
(attribute
(identifier_Quartz) identifier_Quartz
(identifier_kCGMouseButtonLeft) identifier_kCGMouseButtonLeft
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)for_statement
(expression_statement
(call
(attribute
(identifier_Quartz) identifier_Quartz
(identifier_CGEventPost) identifier_CGEventPost
)attribute
(argument_list
(attribute
(identifier_Quartz) identifier_Quartz
(identifier_kCGHIDEventTap) identifier_kCGHIDEventTap
)attribute
(identifier_e) identifier_e
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Sets the mouse's location to the specified coordinates.
|
(module
(function_definition
(function_name__group) function_name__group
(parameters
(identifier_self) identifier_self
(identifier_group_data) identifier_group_data
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_group_data) identifier_group_data
(identifier_dict) identifier_dict
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_xid) identifier_xid
(call
(attribute
(identifier_group_data) identifier_group_data
(identifier_get) identifier_get
)attribute
(argument_list
(string_'xid') string_'xid'
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_xid) identifier_xid
(attribute
(identifier_group_data) identifier_group_data
(identifier_xid) identifier_xid
)attribute
)assignment
)expression_statement
)block
)else_clause
)if_statement
(if_statement
(comparison_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_groups) identifier_groups
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_xid) identifier_xid
)argument_list
)call
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_group_data) identifier_group_data
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_groups) identifier_groups
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_xid) identifier_xid
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_groups_shelf) identifier_groups_shelf
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_xid) identifier_xid
)argument_list
)call
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_group_data) identifier_group_data
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_groups_shelf) identifier_groups_shelf
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_xid) identifier_xid
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_groups) identifier_groups
)attribute
(identifier_xid) identifier_xid
)subscript
(identifier_group_data) identifier_group_data
)assignment
)expression_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_group_data) identifier_group_data
)return_statement
)block
)function_definition
)module
|
Return previously stored group or new group.
Args:
group_data (dict|obj): An Group dict or instance of Group object.
Returns:
dict|obj: The new Group dict/object or the previously stored dict/object.
|
(module
(function_definition
(function_name_format_variable_map) function_name_format_variable_map
(parameters
(identifier_variable_map) identifier_variable_map
(default_parameter
(identifier_join_lines) identifier_join_lines
(True) True
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_rows) identifier_rows
(list
)list
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_rows) identifier_rows
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(string_"Key") string_"Key"
(string_"Variable") string_"Variable"
(string_"Shape") string_"Shape"
(string_"Type") string_"Type"
(string_"Collections") string_"Collections"
(string_"Device") string_"Device"
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_var_to_collections) identifier_var_to_collections
(call
(identifier__get_vars_to_collections) identifier__get_vars_to_collections
(argument_list
(identifier_variable_map) identifier_variable_map
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sort_key) identifier_sort_key
(lambda
(lambda_parameters
(identifier_item) identifier_item
)lambda_parameters
(tuple
(subscript
(identifier_item) identifier_item
(integer_0) integer_0
)subscript
(attribute
(subscript
(identifier_item) identifier_item
(integer_1) integer_1
)subscript
(identifier_name) identifier_name
)attribute
)tuple
)lambda
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_var) identifier_var
)pattern_list
(call
(identifier_sorted) identifier_sorted
(argument_list
(call
(identifier_variable_map_items) identifier_variable_map_items
(argument_list
(identifier_variable_map) identifier_variable_map
)argument_list
)call
(keyword_argument
(identifier_key) identifier_key
(identifier_sort_key) identifier_sort_key
)keyword_argument
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_shape) identifier_shape
(call
(attribute
(string_"x") string_"x"
(identifier_join) identifier_join
)attribute
(generator_expression
(call
(identifier_str) identifier_str
(argument_list
(identifier_dim) identifier_dim
)argument_list
)call
(for_in_clause
(identifier_dim) identifier_dim
(call
(attribute
(call
(attribute
(identifier_var) identifier_var
(identifier_get_shape) identifier_get_shape
)attribute
(argument_list
)argument_list
)call
(identifier_as_list) identifier_as_list
)attribute
(argument_list
)argument_list
)call
)for_in_clause
)generator_expression
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dtype) identifier_dtype
(call
(attribute
(call
(identifier_repr) identifier_repr
(argument_list
(attribute
(attribute
(identifier_var) identifier_var
(identifier_dtype) identifier_dtype
)attribute
(identifier_base_dtype) identifier_base_dtype
)attribute
)argument_list
)call
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"tf.") string_"tf."
(string_"") string_""
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_coll) identifier_coll
(call
(attribute
(string_", ") string_", "
(identifier_join) identifier_join
)attribute
(argument_list
(call
(identifier_sorted) identifier_sorted
(argument_list
(subscript
(identifier_var_to_collections) identifier_var_to_collections
(identifier_var) identifier_var
)subscript
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_rows) identifier_rows
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_key) identifier_key
(attribute
(attribute
(identifier_var) identifier_var
(identifier_op) identifier_op
)attribute
(identifier_name) identifier_name
)attribute
(identifier_shape) identifier_shape
(identifier_dtype) identifier_dtype
(identifier_coll) identifier_coll
(call
(identifier__format_device) identifier__format_device
(argument_list
(identifier_var) identifier_var
)argument_list
)call
)tuple
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(identifier__format_table) identifier__format_table
(argument_list
(identifier_rows) identifier_rows
(identifier_join_lines) identifier_join_lines
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Takes a key-to-variable map and formats it as a table.
|
(module
(function_definition
(function_name_reset_option) function_name_reset_option
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_subkey) identifier_subkey
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_open) identifier_open
)attribute
)not_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(pattern_list
(identifier_key) identifier_key
(identifier_subkey) identifier_subkey
)pattern_list
(call
(identifier__lower_keys) identifier__lower_keys
(argument_list
(identifier_key) identifier_key
(identifier_subkey) identifier_subkey
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier__entry_must_exist) identifier__entry_must_exist
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_gc) identifier_gc
)attribute
(identifier_key) identifier_key
(identifier_subkey) identifier_subkey
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_df) identifier_df
(subscript
(attribute
(identifier_self) identifier_self
(identifier_gc) identifier_gc
)attribute
(binary_operator
(parenthesized_expression
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_gc) identifier_gc
)attribute
(string_"k1") string_"k1"
)subscript
(identifier_key) identifier_key
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_gc) identifier_gc
)attribute
(string_"k2") string_"k2"
)subscript
(identifier_subkey) identifier_subkey
)comparison_operator
)parenthesized_expression
)binary_operator
)subscript
)assignment
)expression_statement
(if_statement
(subscript
(attribute
(subscript
(identifier_df) identifier_df
(string_"locked") string_"locked"
)subscript
(identifier_values) identifier_values
)attribute
(integer_0) integer_0
)subscript
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"{0}.{1} option is locked") string_"{0}.{1} option is locked"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_key) identifier_key
(identifier_subkey) identifier_subkey
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_val) identifier_val
(subscript
(attribute
(subscript
(identifier_df) identifier_df
(string_"default") string_"default"
)subscript
(identifier_values) identifier_values
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(attribute
(identifier_self) identifier_self
(identifier_gc) identifier_gc
)attribute
(identifier_loc) identifier_loc
)attribute
(binary_operator
(parenthesized_expression
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_gc) identifier_gc
)attribute
(string_"k1") string_"k1"
)subscript
(identifier_key) identifier_key
)comparison_operator
)parenthesized_expression
(parenthesized_expression
(comparison_operator
(subscript
(attribute
(identifier_self) identifier_self
(identifier_gc) identifier_gc
)attribute
(string_"k2") string_"k2"
)subscript
(identifier_subkey) identifier_subkey
)comparison_operator
)parenthesized_expression
)binary_operator
(string_"value") string_"value"
)subscript
(identifier_val) identifier_val
)assignment
)expression_statement
)block
)function_definition
)module
|
Resets a single option to the default values.
:param str key: First identifier of the option.
:param str subkey: Second identifier of the option.
:raise:
:NotRegisteredError: If ``key`` or ``subkey`` do not define any
option.
:ValueError: If the targeted obtion is locked.
|
(module
(function_definition
(function_name__check_split_list_validity) function_name__check_split_list_validity
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(parenthesized_expression
(boolean_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_self) identifier_self
(string_"_splitListsSet") string_"_splitListsSet"
)argument_list
)call
(parenthesized_expression
(attribute
(identifier_self) identifier_self
(identifier__splitListsSet) identifier__splitListsSet
)attribute
)parenthesized_expression
)boolean_operator
)parenthesized_expression
)not_operator
(block
(return_statement
(False) False
)return_statement
)block
(elif_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier__splitListsLength) identifier__splitListsLength
)attribute
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(True) True
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
See _temporal_split_list above. This function checks if the current
split lists are still valid.
|
(module
(function_definition
(function_name_placeholdit) function_name_placeholdit
(parameters
(identifier_width) identifier_width
(identifier_height) identifier_height
(default_parameter
(identifier_background_color) identifier_background_color
(string_"cccccc") string_"cccccc"
)default_parameter
(default_parameter
(identifier_text_color) identifier_text_color
(string_"969696") string_"969696"
)default_parameter
(default_parameter
(identifier_text) identifier_text
(None) None
)default_parameter
(default_parameter
(identifier_random_background_color) identifier_random_background_color
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(identifier_get_placeholdit_url) identifier_get_placeholdit_url
(argument_list
(identifier_width) identifier_width
(identifier_height) identifier_height
(keyword_argument
(identifier_background_color) identifier_background_color
(identifier_background_color) identifier_background_color
)keyword_argument
(keyword_argument
(identifier_text_color) identifier_text_color
(identifier_text_color) identifier_text_color
)keyword_argument
(keyword_argument
(identifier_text) identifier_text
(identifier_text) identifier_text
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_format_html) identifier_format_html
(argument_list
(string_'<img src="{}"/>') string_'<img src="{}"/>'
(identifier_url) identifier_url
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Creates a placeholder image using placehold.it
Usage format:
{% placeholdit [width] [height] [background_color] [text_color] [text] %}
Example usage:
Default image at 250 square
{% placeholdit 250 %}
100 wide and 200 high
{% placeholdit 100 200 %}
Custom background and text colors
{% placeholdit 100 200 background_color='fff' text_color=000' %}
Custom text
{% placeholdit 100 200 text='Hello LA' %}
|
(module
(function_definition
(function_name_do_state_tomography) function_name_do_state_tomography
(parameters
(identifier_preparation_program) identifier_preparation_program
(identifier_nsamples) identifier_nsamples
(identifier_cxn) identifier_cxn
(default_parameter
(identifier_qubits) identifier_qubits
(None) None
)default_parameter
(default_parameter
(identifier_use_run) identifier_use_run
(False) False
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_tomography) identifier_tomography
(identifier__do_tomography) identifier__do_tomography
)attribute
(argument_list
(identifier_preparation_program) identifier_preparation_program
(identifier_nsamples) identifier_nsamples
(identifier_cxn) identifier_cxn
(identifier_qubits) identifier_qubits
(attribute
(identifier_tomography) identifier_tomography
(identifier_MAX_QUBITS_STATE_TOMO) identifier_MAX_QUBITS_STATE_TOMO
)attribute
(identifier_StateTomography) identifier_StateTomography
(identifier_state_tomography_programs) identifier_state_tomography_programs
(identifier_DEFAULT_STATE_TOMO_SETTINGS) identifier_DEFAULT_STATE_TOMO_SETTINGS
(keyword_argument
(identifier_use_run) identifier_use_run
(identifier_use_run) identifier_use_run
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Method to perform both a QPU and QVM state tomography, and use the latter as
as reference to calculate the fidelity of the former.
:param Program preparation_program: Program to execute.
:param int nsamples: Number of samples to take for the program.
:param QVMConnection|QPUConnection cxn: Connection on which to run the program.
:param list qubits: List of qubits for the program.
to use in the tomography analysis.
:param bool use_run: If ``True``, use append measurements on all qubits and use ``cxn.run``
instead of ``cxn.run_and_measure``.
:return: The state tomogram.
:rtype: StateTomography
|
(module
(function_definition
(function_name_finalize) function_name_finalize
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_total_instances) identifier_total_instances
)attribute
(integer_1) integer_1
)comparison_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_'{} of {} instances contained dead code.') string_'{} of {} instances contained dead code.'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_dead_code_instances) identifier_dead_code_instances
)attribute
(attribute
(identifier_self) identifier_self
(identifier_total_instances) identifier_total_instances
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module
|
Output the number of instances that contained dead code.
|
(module
(function_definition
(function_name_max_version) function_name_max_version
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(attribute
(identifier_self) identifier_self
(identifier_version_downloads) identifier_version_downloads
)attribute
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_data) identifier_data
)not_operator
(block
(return_statement
(expression_list
(None) None
(integer_0) integer_0
)expression_list
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_max) identifier_max
(argument_list
(call
(attribute
(identifier_data) identifier_data
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_item) identifier_item
)lambda_parameters
(subscript
(identifier_item) identifier_item
(integer_1) integer_1
)subscript
)lambda
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Version with the most downloads.
:return: A tuple of the form (version, n_downloads)
|
(module
(function_definition
(function_name_ReadTriggers) function_name_ReadTriggers
(parameters
(identifier_self) identifier_self
(identifier_collection_link) identifier_collection_link
(default_parameter
(identifier_options) identifier_options
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_options) identifier_options
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_options) identifier_options
(dictionary
)dictionary
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_QueryTriggers) identifier_QueryTriggers
)attribute
(argument_list
(identifier_collection_link) identifier_collection_link
(None) None
(identifier_options) identifier_options
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Reads all triggers in a collection.
:param str collection_link:
The link to the document collection.
:param dict options:
The request options for the request.
:return:
Query Iterable of Triggers.
:rtype:
query_iterable.QueryIterable
|
(module
(function_definition
(function_name_define_saver) function_name_define_saver
(parameters
(default_parameter
(identifier_exclude) identifier_exclude
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_variables) identifier_variables
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_exclude) identifier_exclude
(boolean_operator
(identifier_exclude) identifier_exclude
(list
)list
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_exclude) identifier_exclude
(list_comprehension
(call
(attribute
(identifier_re) identifier_re
(identifier_compile) identifier_compile
)attribute
(argument_list
(identifier_regex) identifier_regex
)argument_list
)call
(for_in_clause
(identifier_regex) identifier_regex
(identifier_exclude) identifier_exclude
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(for_statement
(identifier_variable) identifier_variable
(call
(attribute
(identifier_tf) identifier_tf
(identifier_global_variables) identifier_global_variables
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(call
(identifier_any) identifier_any
(generator_expression
(call
(attribute
(identifier_regex) identifier_regex
(identifier_match) identifier_match
)attribute
(argument_list
(attribute
(identifier_variable) identifier_variable
(identifier_name) identifier_name
)attribute
)argument_list
)call
(for_in_clause
(identifier_regex) identifier_regex
(identifier_exclude) identifier_exclude
)for_in_clause
)generator_expression
)call
(block
(continue_statement
)continue_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_variables) identifier_variables
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_variable) identifier_variable
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_saver) identifier_saver
(call
(attribute
(attribute
(identifier_tf) identifier_tf
(identifier_train) identifier_train
)attribute
(identifier_Saver) identifier_Saver
)attribute
(argument_list
(identifier_variables) identifier_variables
(keyword_argument
(identifier_keep_checkpoint_every_n_hours) identifier_keep_checkpoint_every_n_hours
(integer_5) integer_5
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_saver) identifier_saver
)return_statement
)block
)function_definition
)module
|
Create a saver for the variables we want to checkpoint.
Args:
exclude: List of regexes to match variable names to exclude.
Returns:
Saver object.
|
(module
(function_definition
(function_name__add_coverage_bedgraph_to_output) function_name__add_coverage_bedgraph_to_output
(parameters
(identifier_out) identifier_out
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_out_file) identifier_out_file
(binary_operator
(string_"%s.coverage.bedgraph") string_"%s.coverage.bedgraph"
(subscript
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(subscript
(identifier_out) identifier_out
(string_"cns") string_"cns"
)subscript
)argument_list
)call
(integer_0) integer_0
)subscript
)binary_operator
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_utils) identifier_utils
(identifier_file_exists) identifier_file_exists
)attribute
(argument_list
(identifier_out_file) identifier_out_file
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(string_"bedgraph") string_"bedgraph"
)subscript
(identifier_out_file) identifier_out_file
)assignment
)expression_statement
(return_statement
(identifier_out) identifier_out
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_bam_file) identifier_bam_file
(call
(attribute
(identifier_dd) identifier_dd
(identifier_get_align_bam) identifier_get_align_bam
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bedtools) identifier_bedtools
(call
(attribute
(identifier_config_utils) identifier_config_utils
(identifier_get_program) identifier_get_program
)attribute
(argument_list
(string_"bedtools") string_"bedtools"
(subscript
(identifier_data) identifier_data
(string_"config") string_"config"
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_samtools) identifier_samtools
(call
(attribute
(identifier_config_utils) identifier_config_utils
(identifier_get_program) identifier_get_program
)attribute
(argument_list
(string_"samtools") string_"samtools"
(subscript
(identifier_data) identifier_data
(string_"config") string_"config"
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cns_file) identifier_cns_file
(subscript
(identifier_out) identifier_out
(string_"cns") string_"cns"
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_bed_file) identifier_bed_file
(attribute
(call
(attribute
(identifier_tempfile) identifier_tempfile
(identifier_NamedTemporaryFile) identifier_NamedTemporaryFile
)attribute
(argument_list
(keyword_argument
(identifier_suffix) identifier_suffix
(string_".bed") string_".bed"
)keyword_argument
(keyword_argument
(identifier_delete) identifier_delete
(False) False
)keyword_argument
)argument_list
)call
(identifier_name) identifier_name
)attribute
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_file_transaction) identifier_file_transaction
(argument_list
(identifier_data) identifier_data
(identifier_out_file) identifier_out_file
)argument_list
)call
(as_pattern_target
(identifier_tx_out_file) identifier_tx_out_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_cmd) identifier_cmd
(call
(attribute
(parenthesized_expression
(concatenated_string
(string_"sed 1d {cns_file} | cut -f1,2,3 > {bed_file}; ") string_"sed 1d {cns_file} | cut -f1,2,3 > {bed_file}; "
(string_"{samtools} view -b -L {bed_file} {bam_file} | ") string_"{samtools} view -b -L {bed_file} {bam_file} | "
(string_"{bedtools} genomecov -bg -ibam - -g {bed_file} >") string_"{bedtools} genomecov -bg -ibam - -g {bed_file} >"
(string_"{tx_out_file}") string_"{tx_out_file}"
)concatenated_string
)parenthesized_expression
(identifier_format) identifier_format
)attribute
(argument_list
(dictionary_splat
(call
(identifier_locals) identifier_locals
(argument_list
)argument_list
)call
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_do) identifier_do
(identifier_run) identifier_run
)attribute
(argument_list
(identifier_cmd) identifier_cmd
(string_"CNVkit bedGraph conversion") string_"CNVkit bedGraph conversion"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_remove) identifier_remove
)attribute
(argument_list
(identifier_bed_file) identifier_bed_file
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(assignment
(subscript
(identifier_out) identifier_out
(string_"bedgraph") string_"bedgraph"
)subscript
(identifier_out_file) identifier_out_file
)assignment
)expression_statement
(return_statement
(identifier_out) identifier_out
)return_statement
)block
)function_definition
)module
|
Add BedGraph representation of coverage to the output
|
(module
(function_definition
(function_name_in_timezone) function_name_in_timezone
(parameters
(identifier_self) identifier_self
(identifier_tz) identifier_tz
)parameters
(block
(expression_statement
(assignment
(identifier_tz) identifier_tz
(call
(attribute
(identifier_pendulum) identifier_pendulum
(identifier__safe_timezone) identifier__safe_timezone
)attribute
(argument_list
(identifier_tz) identifier_tz
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_tz) identifier_tz
(identifier_convert) identifier_convert
)attribute
(argument_list
(identifier_self) identifier_self
(keyword_argument
(identifier_dst_rule) identifier_dst_rule
(attribute
(identifier_pendulum) identifier_pendulum
(identifier_POST_TRANSITION) identifier_POST_TRANSITION
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Set the instance's timezone from a string or object.
|
(module
(function_definition
(function_name_basic_parse) function_name_basic_parse
(parameters
(identifier_response) identifier_response
(default_parameter
(identifier_buf_size) identifier_buf_size
(attribute
(attribute
(identifier_ijson) identifier_ijson
(identifier_backend) identifier_backend
)attribute
(identifier_BUFSIZE) identifier_BUFSIZE
)attribute
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_lexer) identifier_lexer
(call
(identifier_iter) identifier_iter
(argument_list
(call
(attribute
(identifier_IncrementalJsonParser) identifier_IncrementalJsonParser
(identifier_lexer) identifier_lexer
)attribute
(argument_list
(identifier_response) identifier_response
(identifier_buf_size) identifier_buf_size
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_value) identifier_value
(call
(attribute
(attribute
(identifier_ijson) identifier_ijson
(identifier_backend) identifier_backend
)attribute
(identifier_parse_value) identifier_parse_value
)attribute
(argument_list
(identifier_lexer) identifier_lexer
)argument_list
)call
(block
(expression_statement
(yield
(identifier_value) identifier_value
)yield
)expression_statement
)block
)for_statement
(try_statement
(block
(expression_statement
(call
(identifier_next) identifier_next
(argument_list
(identifier_lexer) identifier_lexer
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_StopIteration) identifier_StopIteration
(block
(pass_statement
)pass_statement
)block
)except_clause
(else_clause
(block
(raise_statement
(call
(attribute
(attribute
(identifier_ijson) identifier_ijson
(identifier_common) identifier_common
)attribute
(identifier_JSONError) identifier_JSONError
)attribute
(argument_list
(string_'Additional data') string_'Additional data'
)argument_list
)call
)raise_statement
)block
)else_clause
)try_statement
)block
)function_definition
)module
|
Iterator yielding unprefixed events.
Parameters:
- response: a stream response from requests
|
(module
(function_definition
(function_name__left_zero_blocks) function_name__left_zero_blocks
(parameters
(identifier_self) identifier_self
(identifier_r) identifier_r
)parameters
(block
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__include_off_diagonal) identifier__include_off_diagonal
)attribute
)not_operator
(block
(return_statement
(identifier_r) identifier_r
)return_statement
)block
(elif_clause
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__upper) identifier__upper
)attribute
)not_operator
(block
(return_statement
(integer_0) integer_0
)return_statement
)block
)elif_clause
(elif_clause
(attribute
(identifier_self) identifier_self
(identifier__include_diagonal) identifier__include_diagonal
)attribute
(block
(return_statement
(identifier_r) identifier_r
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(binary_operator
(identifier_r) identifier_r
(integer_1) integer_1
)binary_operator
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Number of blocks with zeros from the left in block row `r`.
|
(module
(function_definition
(function_name_is_compatible_with) function_name_is_compatible_with
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
)parameters
(block
(expression_statement
(assignment
(identifier_other) identifier_other
(call
(identifier_as_dtype) identifier_as_dtype
(argument_list
(identifier_other) identifier_other
)argument_list
)call
)assignment
)expression_statement
(return_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier__type_enum) identifier__type_enum
)attribute
(tuple
(attribute
(identifier_other) identifier_other
(identifier_as_datatype_enum) identifier_as_datatype_enum
)attribute
(attribute
(attribute
(identifier_other) identifier_other
(identifier_base_dtype) identifier_base_dtype
)attribute
(identifier_as_datatype_enum) identifier_as_datatype_enum
)attribute
)tuple
)comparison_operator
)return_statement
)block
)function_definition
)module
|
Returns True if the `other` DType will be converted to this DType.
The conversion rules are as follows:
```python
DType(T) .is_compatible_with(DType(T)) == True
DType(T) .is_compatible_with(DType(T).as_ref) == True
DType(T).as_ref.is_compatible_with(DType(T)) == False
DType(T).as_ref.is_compatible_with(DType(T).as_ref) == True
```
Args:
other: A `DType` (or object that may be converted to a `DType`).
Returns:
True if a Tensor of the `other` `DType` will be implicitly converted to
this `DType`.
|
(module
(function_definition
(function_name_set_rendering_intent) function_name_set_rendering_intent
(parameters
(identifier_self) identifier_self
(identifier_rendering_intent) identifier_rendering_intent
)parameters
(block
(if_statement
(comparison_operator
(identifier_rendering_intent) identifier_rendering_intent
(tuple
(None) None
(identifier_PERCEPTUAL) identifier_PERCEPTUAL
(identifier_RELATIVE_COLORIMETRIC) identifier_RELATIVE_COLORIMETRIC
(identifier_SATURATION) identifier_SATURATION
(identifier_ABSOLUTE_COLORIMETRIC) identifier_ABSOLUTE_COLORIMETRIC
)tuple
)comparison_operator
(block
(raise_statement
(call
(identifier_FormatError) identifier_FormatError
(argument_list
(string_'Unknown redering intent') string_'Unknown redering intent'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_rendering_intent) identifier_rendering_intent
)attribute
(identifier_rendering_intent) identifier_rendering_intent
)assignment
)expression_statement
)block
)function_definition
)module
|
Set rendering intent variant for sRGB chunk
|
(module
(function_definition
(function_name_proxy_protocol) function_name_proxy_protocol
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_error) identifier_error
(string_'raise') string_'raise'
)default_parameter
(default_parameter
(identifier_default) identifier_default
(None) None
)default_parameter
(default_parameter
(identifier_limit) identifier_limit
(None) None
)default_parameter
(default_parameter
(identifier_authenticate) identifier_authenticate
(False) False
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_error) identifier_error
(tuple
(string_'raise') string_'raise'
(string_'unread') string_'unread'
)tuple
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'error="{0}" is not "raise" or "unread""') string_'error="{0}" is not "raise" or "unread""'
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_SocketBuffer) identifier_SocketBuffer
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(call
(identifier_SocketBuffer) identifier_SocketBuffer
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_default) identifier_default
(string_'peer') string_'peer'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_default) identifier_default
(call
(identifier_ProxyInfo) identifier_ProxyInfo
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_client_address) identifier_client_address
)attribute
(integer_0) integer_0
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_client_address) identifier_client_address
)attribute
(integer_1) integer_1
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_client_address) identifier_client_address
)attribute
(integer_0) integer_0
)subscript
(subscript
(attribute
(identifier_self) identifier_self
(identifier_client_address) identifier_client_address
)attribute
(integer_1) integer_1
)subscript
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_line) identifier_line
(call
(identifier_read_line) identifier_read_line
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_sock) identifier_sock
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_buf) identifier_buf
)attribute
(keyword_argument
(identifier_limit) identifier_limit
(identifier_limit) identifier_limit
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(attribute
(identifier_exc) identifier_exc
(identifier_ReadError) identifier_ReadError
)attribute
(block
(if_statement
(comparison_operator
(identifier_error) identifier_error
(string_'raise') string_'raise'
)comparison_operator
(block
(raise_statement
)raise_statement
)block
)if_statement
(return_statement
(identifier_default) identifier_default
)return_statement
)block
)except_clause
)try_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_info) identifier_info
(call
(identifier_parse_line) identifier_parse_line
(argument_list
(identifier_line) identifier_line
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(attribute
(identifier_exc) identifier_exc
(identifier_ParseError) identifier_ParseError
)attribute
(block
(if_statement
(comparison_operator
(identifier_error) identifier_error
(string_'raise') string_'raise'
)comparison_operator
(block
(raise_statement
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(identifier_unread) identifier_unread
)attribute
(argument_list
(identifier_line) identifier_line
)argument_list
)call
)expression_statement
(return_statement
(identifier_default) identifier_default
)return_statement
)block
)except_clause
)try_statement
(if_statement
(boolean_operator
(identifier_authenticate) identifier_authenticate
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_proxy_authenticate) identifier_proxy_authenticate
)attribute
(argument_list
(identifier_info) identifier_info
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'authentication failed - %s') string_'authentication failed - %s'
(identifier_info) identifier_info
)argument_list
)call
)expression_statement
(return_statement
(identifier_default) identifier_default
)return_statement
)block
)if_statement
(return_statement
(identifier_info) identifier_info
)return_statement
)block
)function_definition
)module
|
Parses, and optionally authenticates, proxy protocol information from
request. Note that ``self.request`` is wrapped by ``SocketBuffer``.
:param error:
How read (``exc.ReadError``) and parse (``exc.ParseError``) errors
are handled. One of:
- "raise" to propagate.
- "unread" to suppress exceptions and unread back to socket.
:param default:
What to return when no ``ProxyInfo`` was found. Only meaningful
with error "unread".
:param limit:
Maximum number of bytes to read when probing request for
``ProxyInfo``.
:returns: Parsed ``ProxyInfo`` instance or **default** if none found.
|
(module
(function_definition
(function_name__define_range) function_name__define_range
(parameters
(identifier_self) identifier_self
(identifier_sequences) identifier_sequences
)parameters
(block
(expression_statement
(assignment
(identifier_sequence_count) identifier_sequence_count
(integer_0) integer_0
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_total_sequence) identifier_total_sequence
(integer_0) integer_0
)assignment
)expression_statement
(for_statement
(identifier_record) identifier_record
(call
(attribute
(identifier_SeqIO) identifier_SeqIO
(identifier_parse) identifier_parse
)attribute
(argument_list
(call
(identifier_open) identifier_open
(argument_list
(identifier_sequences) identifier_sequences
)argument_list
)call
(string_'fasta') string_'fasta'
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_total_sequence) identifier_total_sequence
(integer_1) integer_1
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_sequence_count) identifier_sequence_count
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_record) identifier_record
(identifier_seq) identifier_seq
)attribute
)argument_list
)call
)augmented_assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_max_range) identifier_max_range
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_sequence_count) identifier_sequence_count
(identifier_total_sequence) identifier_total_sequence
)binary_operator
)parenthesized_expression
(float_1.5) float_1.5
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_max_range) identifier_max_range
)return_statement
)block
)function_definition
)module
|
define_range - define the maximum range within which two hits in a db
search can be linked. This is defined as 1.5X the average length of all
reads in the database.
Parameters
----------
sequences : str
A path to the sequences in FASTA format. This fasta file is assumed
to be in the correct format. i.e. headers start with '>'
Returns
-------
max_range : int
As described above, 1.5X the size of the average length of genes
within the database
|
(module
(function_definition
(function_name_parser_factory) function_name_parser_factory
(parameters
(default_parameter
(identifier_fake_args) identifier_fake_args
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_parser) identifier_parser
(call
(identifier_ArgumentParser) identifier_ArgumentParser
(argument_list
(keyword_argument
(identifier_description) identifier_description
(string_'aomi') string_'aomi'
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_subparsers) identifier_subparsers
(call
(attribute
(identifier_parser) identifier_parser
(identifier_add_subparsers) identifier_add_subparsers
)attribute
(argument_list
(keyword_argument
(identifier_dest) identifier_dest
(string_'operation') string_'operation'
)keyword_argument
(keyword_argument
(identifier_help) identifier_help
(concatenated_string
(string_'Specify the data ') string_'Specify the data '
(string_' or extraction operation') string_' or extraction operation'
)concatenated_string
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_extract_file_args) identifier_extract_file_args
(argument_list
(identifier_subparsers) identifier_subparsers
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_environment_args) identifier_environment_args
(argument_list
(identifier_subparsers) identifier_subparsers
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_aws_env_args) identifier_aws_env_args
(argument_list
(identifier_subparsers) identifier_subparsers
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_seed_args) identifier_seed_args
(argument_list
(identifier_subparsers) identifier_subparsers
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_render_args) identifier_render_args
(argument_list
(identifier_subparsers) identifier_subparsers
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_diff_args) identifier_diff_args
(argument_list
(identifier_subparsers) identifier_subparsers
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_freeze_args) identifier_freeze_args
(argument_list
(identifier_subparsers) identifier_subparsers
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_thaw_args) identifier_thaw_args
(argument_list
(identifier_subparsers) identifier_subparsers
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_template_args) identifier_template_args
(argument_list
(identifier_subparsers) identifier_subparsers
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_password_args) identifier_password_args
(argument_list
(identifier_subparsers) identifier_subparsers
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_token_args) identifier_token_args
(argument_list
(identifier_subparsers) identifier_subparsers
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_help_args) identifier_help_args
(argument_list
(identifier_subparsers) identifier_subparsers
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_export_args) identifier_export_args
(argument_list
(identifier_subparsers) identifier_subparsers
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_fake_args) identifier_fake_args
(None) None
)comparison_operator
(block
(return_statement
(expression_list
(identifier_parser) identifier_parser
(call
(attribute
(identifier_parser) identifier_parser
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
)argument_list
)call
)expression_list
)return_statement
)block
)if_statement
(return_statement
(expression_list
(identifier_parser) identifier_parser
(call
(attribute
(identifier_parser) identifier_parser
(identifier_parse_args) identifier_parse_args
)attribute
(argument_list
(identifier_fake_args) identifier_fake_args
)argument_list
)call
)expression_list
)return_statement
)block
)function_definition
)module
|
Return a proper contextual OptionParser
|
(module
(function_definition
(function_name_get_whitelist_page) function_name_get_whitelist_page
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_page_number) identifier_page_number
(None) None
)default_parameter
(default_parameter
(identifier_page_size) identifier_page_size
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
(pair
(string_'pageNumber') string_'pageNumber'
(identifier_page_number) identifier_page_number
)pair
(pair
(string_'pageSize') string_'pageSize'
(identifier_page_size) identifier_page_size
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__client) identifier__client
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"whitelist") string_"whitelist"
(keyword_argument
(identifier_params) identifier_params
(identifier_params) identifier_params
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_Page) identifier_Page
(identifier_from_dict) identifier_from_dict
)attribute
(argument_list
(call
(attribute
(identifier_resp) identifier_resp
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
(keyword_argument
(identifier_content_type) identifier_content_type
(identifier_Indicator) identifier_Indicator
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Gets a paginated list of indicators that the user's company has whitelisted.
:param int page_number: the page number to get.
:param int page_size: the size of the page to be returned.
:return: A |Page| of |Indicator| objects.
|
(module
(function_definition
(function_name__cmp_date) function_name__cmp_date
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_dates) identifier_dates
(call
(identifier_sorted) identifier_sorted
(generator_expression
(identifier_val) identifier_val
(for_in_clause
(identifier_val) identifier_val
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_kw) identifier_kw
)attribute
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
)for_in_clause
(if_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_val) identifier_val
(identifier_CalendarDate) identifier_CalendarDate
)argument_list
)call
)if_clause
)generator_expression
)call
)assignment
)expression_statement
(if_statement
(identifier_dates) identifier_dates
(block
(return_statement
(subscript
(identifier_dates) identifier_dates
(integer_0) integer_0
)subscript
)return_statement
)block
)if_statement
(return_statement
(call
(identifier_CalendarDate) identifier_CalendarDate
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Returns Calendar date used for comparison.
Use the earliest date out of all CalendarDates in this instance,
or some date in the future if there are no CalendarDates (e.g.
when Date is a phrase).
|
(module
(function_definition
(function_name_model_base) function_name_model_base
(parameters
(default_parameter
(identifier_bind_label) identifier_bind_label
(None) None
)default_parameter
(default_parameter
(identifier_info) identifier_info
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_Model) identifier_Model
(call
(identifier_type) identifier_type
(argument_list
(string_'Model') string_'Model'
(tuple
(identifier_BaseModel) identifier_BaseModel
)tuple
(dictionary
(pair
(string_'__odm_abstract__') string_'__odm_abstract__'
(True) True
)pair
)dictionary
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_info) identifier_info
(dictionary
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_Model) identifier_Model
(identifier___table_args__) identifier___table_args__
)attribute
(call
(identifier_table_args) identifier_table_args
(argument_list
(keyword_argument
(identifier_info) identifier_info
(identifier_info) identifier_info
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_bind_label) identifier_bind_label
(block
(expression_statement
(assignment
(subscript
(identifier_info) identifier_info
(string_'bind_label') string_'bind_label'
)subscript
(identifier_bind_label) identifier_bind_label
)assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_Model) identifier_Model
)return_statement
)block
)function_definition
)module
|
Create a base declarative class
|
(module
(function_definition
(function_name_sparql_query) function_name_sparql_query
(parameters
(identifier_self) identifier_self
(identifier_query) identifier_query
(default_parameter
(identifier_flush) identifier_flush
(None) None
)default_parameter
(default_parameter
(identifier_limit) identifier_limit
(None) None
)default_parameter
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_find_statements) identifier_find_statements
)attribute
(argument_list
(identifier_query) identifier_query
(keyword_argument
(identifier_language) identifier_language
(string_'sparql') string_'sparql'
)keyword_argument
(keyword_argument
(identifier_type) identifier_type
(string_'tuples') string_'tuples'
)keyword_argument
(keyword_argument
(identifier_flush) identifier_flush
(identifier_flush) identifier_flush
)keyword_argument
(keyword_argument
(identifier_limit) identifier_limit
(identifier_limit) identifier_limit
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Run a Sparql query.
:param query: sparql query string
:rtype: list of dictionary
|
(module
(function_definition
(function_name_query_symbol) function_name_query_symbol
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_asset) identifier_asset
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_contract_address) identifier_contract_address
(call
(attribute
(identifier_self) identifier_self
(identifier_get_asset_address) identifier_get_asset_address
)attribute
(argument_list
(identifier_asset) identifier_asset
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_method) identifier_method
(string_'symbol') string_'symbol'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_invoke_code) identifier_invoke_code
(call
(identifier_build_native_invoke_code) identifier_build_native_invoke_code
(argument_list
(identifier_contract_address) identifier_contract_address
(string_b'\x00') string_b'\x00'
(identifier_method) identifier_method
(call
(identifier_bytearray) identifier_bytearray
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tx) identifier_tx
(call
(identifier_Transaction) identifier_Transaction
(argument_list
(integer_0) integer_0
(integer_0xd1) integer_0xd1
(call
(identifier_int) identifier_int
(argument_list
(call
(identifier_time) identifier_time
(argument_list
)argument_list
)call
)argument_list
)call
(integer_0) integer_0
(integer_0) integer_0
(None) None
(identifier_invoke_code) identifier_invoke_code
(call
(identifier_bytearray) identifier_bytearray
(argument_list
)argument_list
)call
(call
(identifier_list) identifier_list
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier___sdk) identifier___sdk
)attribute
(identifier_rpc) identifier_rpc
)attribute
(identifier_send_raw_transaction_pre_exec) identifier_send_raw_transaction_pre_exec
)attribute
(argument_list
(identifier_tx) identifier_tx
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_symbol) identifier_symbol
(call
(attribute
(identifier_ContractDataParser) identifier_ContractDataParser
(identifier_to_utf8_str) identifier_to_utf8_str
)attribute
(argument_list
(subscript
(identifier_response) identifier_response
(string_'Result') string_'Result'
)subscript
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_symbol) identifier_symbol
)return_statement
)block
)function_definition
)module
|
This interface is used to query the asset's symbol of ONT or ONG.
:param asset: a string which is used to indicate which asset's symbol we want to get.
:return: asset's symbol in the form of string.
|
(module
(function_definition
(function_name_getStartdatetime) function_name_getStartdatetime
(parameters
(identifier_self) identifier_self
)parameters
(block
(return_statement
(call
(identifier_datetime) identifier_datetime
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_startdate_year) identifier_startdate_year
)attribute
(attribute
(identifier_self) identifier_self
(identifier_startdate_month) identifier_startdate_month
)attribute
(attribute
(identifier_self) identifier_self
(identifier_startdate_day) identifier_startdate_day
)attribute
(attribute
(identifier_self) identifier_self
(identifier_starttime_hour) identifier_starttime_hour
)attribute
(attribute
(identifier_self) identifier_self
(identifier_starttime_minute) identifier_starttime_minute
)attribute
(attribute
(identifier_self) identifier_self
(identifier_starttime_second) identifier_starttime_second
)attribute
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Returns the date and starttime as datetime object
Parameters
----------
None
Examples
--------
>>> import pyedflib
>>> f = pyedflib.data.test_generator()
>>> f.getStartdatetime()
datetime.datetime(2011, 4, 4, 12, 57, 2)
>>> f._close()
>>> del f
|
(module
(function_definition
(function_name_paths) function_name_paths
(parameters
(identifier_self) identifier_self
(identifier_destination_account) identifier_destination_account
(identifier_destination_amount) identifier_destination_amount
(identifier_source_account) identifier_source_account
(identifier_destination_asset_code) identifier_destination_asset_code
(default_parameter
(identifier_destination_asset_issuer) identifier_destination_asset_issuer
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_destination_asset) identifier_destination_asset
(call
(identifier_Asset) identifier_Asset
(argument_list
(identifier_destination_asset_code) identifier_destination_asset_code
(identifier_destination_asset_issuer) identifier_destination_asset_issuer
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_destination_asset_params) identifier_destination_asset_params
(dictionary
(pair
(string_'destination_asset_type') string_'destination_asset_type'
(attribute
(identifier_destination_asset) identifier_destination_asset
(identifier_type) identifier_type
)attribute
)pair
(pair
(string_'destination_asset_code') string_'destination_asset_code'
(conditional_expression
(None) None
(call
(attribute
(identifier_destination_asset) identifier_destination_asset
(identifier_is_native) identifier_is_native
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_destination_asset) identifier_destination_asset
(identifier_code) identifier_code
)attribute
)conditional_expression
)pair
(pair
(string_'destination_asset_issuer') string_'destination_asset_issuer'
(attribute
(identifier_destination_asset) identifier_destination_asset
(identifier_issuer) identifier_issuer
)attribute
)pair
)dictionary
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_endpoint) identifier_endpoint
(string_'/paths') string_'/paths'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_params) identifier_params
(call
(attribute
(identifier_self) identifier_self
(identifier___query_params) identifier___query_params
)attribute
(argument_list
(keyword_argument
(identifier_destination_account) identifier_destination_account
(identifier_destination_account) identifier_destination_account
)keyword_argument
(keyword_argument
(identifier_source_account) identifier_source_account
(identifier_source_account) identifier_source_account
)keyword_argument
(keyword_argument
(identifier_destination_amount) identifier_destination_amount
(identifier_destination_amount) identifier_destination_amount
)keyword_argument
(dictionary_splat
(identifier_destination_asset_params) identifier_destination_asset_params
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_query) identifier_query
)attribute
(argument_list
(identifier_endpoint) identifier_endpoint
(identifier_params) identifier_params
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Load a list of assets available to the source account id and find
any payment paths from those source assets to the desired
destination asset.
See the below docs for more information on required and optional
parameters for further specifying your search.
`GET /paths
<https://www.stellar.org/developers/horizon/reference/endpoints/path-finding.html>`_
:param str destination_account: The destination account that any returned path should use.
:param str destination_amount: The amount, denominated in the destination asset,
that any returned path should be able to satisfy.
:param str source_account: The sender's account id. Any returned path must use a source that the sender can hold.
:param str destination_asset_code: The asset code for the destination.
:param destination_asset_issuer: The asset issuer for the destination, if it is a native asset, let it be `None`.
:type destination_asset_issuer: str, None
:return: A list of paths that can be used to complete a payment based
on a given query.
:rtype: dict
|
(module
(function_definition
(function_name_annotate_gemini) function_name_annotate_gemini
(parameters
(identifier_data) identifier_data
(default_parameter
(identifier_retriever) identifier_retriever
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(identifier_dd) identifier_dd
(identifier_get_variation_resources) identifier_get_variation_resources
)attribute
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_all) identifier_all
(argument_list
(list_comprehension
(boolean_operator
(call
(attribute
(identifier_r) identifier_r
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_k) identifier_k
)argument_list
)call
(call
(attribute
(identifier_objectstore) identifier_objectstore
(identifier_file_exists_or_remote) identifier_file_exists_or_remote
)attribute
(argument_list
(subscript
(identifier_r) identifier_r
(identifier_k) identifier_k
)subscript
)argument_list
)call
)boolean_operator
(for_in_clause
(identifier_k) identifier_k
(list
(string_"exac") string_"exac"
(string_"gnomad_exome") string_"gnomad_exome"
)list
)for_in_clause
)list_comprehension
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Annotate with population calls if have data installed.
|
(module
(function_definition
(function_name__get_default_router) function_name__get_default_router
(parameters
(identifier_self) identifier_self
(identifier_routers) identifier_routers
(default_parameter
(identifier_router_name) identifier_router_name
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_router_name) identifier_router_name
(None) None
)comparison_operator
(block
(for_statement
(identifier_router) identifier_router
(identifier_routers) identifier_routers
(block
(if_statement
(comparison_operator
(subscript
(identifier_router) identifier_router
(string_'id') string_'id'
)subscript
(None) None
)comparison_operator
(block
(return_statement
(subscript
(identifier_router) identifier_router
(string_'id') string_'id'
)subscript
)return_statement
)block
)if_statement
)block
)for_statement
)block
(else_clause
(block
(for_statement
(identifier_router) identifier_router
(identifier_routers) identifier_routers
(block
(if_statement
(comparison_operator
(subscript
(identifier_router) identifier_router
(string_'hostname') string_'hostname'
)subscript
(identifier_router_name) identifier_router_name
)comparison_operator
(block
(return_statement
(subscript
(identifier_router) identifier_router
(string_'id') string_'id'
)subscript
)return_statement
)block
)if_statement
)block
)for_statement
)block
)else_clause
)if_statement
(raise_statement
(call
(attribute
(identifier_SoftLayer) identifier_SoftLayer
(identifier_SoftLayerError) identifier_SoftLayerError
)attribute
(argument_list
(string_"Could not find valid default router") string_"Could not find valid default router"
)argument_list
)call
)raise_statement
)block
)function_definition
)module
|
Returns the default router for ordering a dedicated host.
|
(module
(function_definition
(function_name_postags) function_name_postags
(parameters
(identifier_self) identifier_self
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_self) identifier_self
(identifier_is_tagged) identifier_is_tagged
)attribute
(argument_list
(identifier_ANALYSIS) identifier_ANALYSIS
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_tag_analysis) identifier_tag_analysis
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_analysis_element) identifier_get_analysis_element
)attribute
(argument_list
(identifier_POSTAG) identifier_POSTAG
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
The list of word part-of-speech tags.
Ambiguous cases are separated with pipe character by default.
Use :py:meth:`~estnltk.text.Text.get_analysis_element` to specify custom separator for ambiguous entries.
|
(module
(function_definition
(function_name_check_existing_results) function_name_check_existing_results
(parameters
(identifier_self) identifier_self
(identifier_benchmark) identifier_benchmark
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(attribute
(identifier_benchmark) identifier_benchmark
(identifier_log_folder) identifier_log_folder
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(call
(attribute
(string_'Output directory {0} already exists, will not overwrite existing results.') string_'Output directory {0} already exists, will not overwrite existing results.'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_benchmark) identifier_benchmark
(identifier_log_folder) identifier_log_folder
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(attribute
(identifier_benchmark) identifier_benchmark
(identifier_log_zip) identifier_log_zip
)attribute
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(call
(attribute
(string_'Output archive {0} already exists, will not overwrite existing results.') string_'Output archive {0} already exists, will not overwrite existing results.'
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_benchmark) identifier_benchmark
(identifier_log_zip) identifier_log_zip
)attribute
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module
|
Check and abort if the target directory for the benchmark results
already exists in order to avoid overwriting results.
|
(module
(function_definition
(function_name_compare) function_name_compare
(parameters
(identifier_self) identifier_self
(identifier_compare_recipe) identifier_compare_recipe
(default_parameter
(identifier_suffix) identifier_suffix
(string_'_compare') string_'_compare'
)default_parameter
)parameters
(block
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_compare_recipe) identifier_compare_recipe
(identifier_Recipe) identifier_Recipe
)argument_list
)call
)assert_statement
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_suffix) identifier_suffix
(identifier_basestring) identifier_basestring
)argument_list
)call
)assert_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_compare_recipe) identifier_compare_recipe
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_compare_recipe) identifier_compare_recipe
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_suffix) identifier_suffix
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_suffix) identifier_suffix
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_dirty) identifier_dirty
)attribute
(True) True
)assignment
)expression_statement
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_recipe) identifier_recipe
)attribute
)return_statement
)block
)function_definition
)module
|
Adds a comparison recipe to a base recipe.
|
(module
(function_definition
(function_name_dump) function_name_dump
(parameters
(identifier_props) identifier_props
(identifier_output) identifier_output
)parameters
(block
(function_definition
(function_name_escape) function_name_escape
(parameters
(identifier_token) identifier_token
)parameters
(block
(return_statement
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_r'([=:\s])') string_r'([=:\s])'
(string_r'\\\1') string_r'\\\1'
(identifier_token) identifier_token
)argument_list
)call
)return_statement
)block
)function_definition
(function_definition
(function_name_write) function_name_write
(parameters
(identifier_out) identifier_out
)parameters
(block
(for_statement
(pattern_list
(identifier_k) identifier_k
(identifier_v) identifier_v
)pattern_list
(call
(attribute
(identifier_props) identifier_props
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_write) identifier_write
)attribute
(argument_list
(binary_operator
(string_'%s=%s\n') string_'%s=%s\n'
(tuple
(call
(identifier_escape) identifier_escape
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_k) identifier_k
)argument_list
)call
)argument_list
)call
(call
(identifier_escape) identifier_escape
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
(if_statement
(boolean_operator
(call
(identifier_hasattr) identifier_hasattr
(argument_list
(identifier_output) identifier_output
(string_'write') string_'write'
)argument_list
)call
(call
(identifier_callable) identifier_callable
(argument_list
(attribute
(identifier_output) identifier_output
(identifier_write) identifier_write
)attribute
)argument_list
)call
)boolean_operator
(block
(expression_statement
(call
(identifier_write) identifier_write
(argument_list
(identifier_output) identifier_output
)argument_list
)call
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_output) identifier_output
(attribute
(identifier_six) identifier_six
(identifier_string_types) identifier_string_types
)attribute
)argument_list
)call
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_output) identifier_output
(string_'w+') string_'w+'
)argument_list
)call
(as_pattern_target
(identifier_out) identifier_out
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(identifier_write) identifier_write
(argument_list
(identifier_out) identifier_out
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(binary_operator
(string_'Can only dump data to a path or a writable object, given: %s') string_'Can only dump data to a path or a writable object, given: %s'
(identifier_output) identifier_output
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Dumps a dict of properties to the specified open stream or file path.
:API: public
|
(module
(function_definition
(function_name_to_list) function_name_to_list
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(integer_1) integer_1
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_elements) identifier_elements
)attribute
)argument_list
)call
(integer_2) integer_2
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier_elements) identifier_elements
)attribute
(identifier_i) identifier_i
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)function_definition
)module
|
Converts the vector to an array of the elements within the vector
|
(module
(function_definition
(function_name_assert_trigger) function_name_assert_trigger
(parameters
(identifier_self) identifier_self
(identifier_session) identifier_session
(identifier_protocol) identifier_protocol
)parameters
(block
(try_statement
(block
(return_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_sessions) identifier_sessions
)attribute
(identifier_session) identifier_session
)subscript
(identifier_assert_trigger) identifier_assert_trigger
)attribute
(argument_list
(identifier_protocol) identifier_protocol
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(return_statement
(attribute
(attribute
(identifier_constants) identifier_constants
(identifier_StatusCode) identifier_StatusCode
)attribute
(identifier_error_invalid_object) identifier_error_invalid_object
)attribute
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module
|
Asserts software or hardware trigger.
Corresponds to viAssertTrigger function of the VISA library.
:param session: Unique logical identifier to a session.
:param protocol: Trigger protocol to use during assertion. (Constants.PROT*)
:return: return value of the library call.
:rtype: :class:`pyvisa.constants.StatusCode`
|
(module
(function_definition
(function_name_extract_facts) function_name_extract_facts
(parameters
(identifier_rule) identifier_rule
)parameters
(block
(function_definition
(function_name__extract_facts) function_name__extract_facts
(parameters
(identifier_ce) identifier_ce
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_ce) identifier_ce
(identifier_Fact) identifier_Fact
)argument_list
)call
(block
(expression_statement
(yield
(identifier_ce) identifier_ce
)yield
)expression_statement
)block
(elif_clause
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_ce) identifier_ce
(identifier_TEST) identifier_TEST
)argument_list
)call
(block
(pass_statement
)pass_statement
)block
)elif_clause
(else_clause
(block
(for_statement
(identifier_e) identifier_e
(identifier_ce) identifier_ce
(block
(expression_statement
(yield
(call
(identifier__extract_facts) identifier__extract_facts
(argument_list
(identifier_e) identifier_e
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
)block
)else_clause
)if_statement
)block
)function_definition
(return_statement
(call
(identifier_set) identifier_set
(argument_list
(call
(identifier__extract_facts) identifier__extract_facts
(argument_list
(identifier_rule) identifier_rule
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Given a rule, return a set containing all rule LHS facts.
|
(module
(function_definition
(function_name_render_subgraph) function_name_render_subgraph
(parameters
(identifier_self) identifier_self
(identifier_ontol) identifier_ontol
(identifier_nodes) identifier_nodes
(dictionary_splat_pattern
(identifier_args) identifier_args
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_subont) identifier_subont
(call
(attribute
(identifier_ontol) identifier_ontol
(identifier_subontology) identifier_subontology
)attribute
(argument_list
(identifier_nodes) identifier_nodes
(dictionary_splat
(identifier_args) identifier_args
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_render) identifier_render
)attribute
(argument_list
(identifier_subont) identifier_subont
(dictionary_splat
(identifier_args) identifier_args
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Render a `ontology` object after inducing a subgraph
|
(module
(function_definition
(function_name_get_post) function_name_get_post
(parameters
(identifier_self) identifier_self
(identifier_slug) identifier_slug
)parameters
(block
(expression_statement
(assignment
(identifier_cache_key) identifier_cache_key
(call
(attribute
(identifier_self) identifier_self
(identifier_get_cache_key) identifier_get_cache_key
)attribute
(argument_list
(keyword_argument
(identifier_post_slug) identifier_post_slug
(identifier_slug) identifier_slug
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(attribute
(identifier_cache) identifier_cache
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_cache_key) identifier_cache_key
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_content) identifier_content
)not_operator
(block
(expression_statement
(assignment
(identifier_post) identifier_post
(call
(attribute
(attribute
(identifier_Post) identifier_Post
(identifier_objects) identifier_objects
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_slug) identifier_slug
(identifier_slug) identifier_slug
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_content) identifier_content
(call
(attribute
(identifier_self) identifier_self
(identifier__format) identifier__format
)attribute
(argument_list
(identifier_post) identifier_post
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cache_duration) identifier_cache_duration
(conditional_expression
(attribute
(identifier_conf) identifier_conf
(identifier_GOSCALE_CACHE_DURATION) identifier_GOSCALE_CACHE_DURATION
)attribute
(identifier_post) identifier_post
(integer_1) integer_1
)conditional_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_cache) identifier_cache
(identifier_set) identifier_set
)attribute
(argument_list
(identifier_cache_key) identifier_cache_key
(identifier_content) identifier_content
(identifier_cache_duration) identifier_cache_duration
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_content) identifier_content
)return_statement
)block
)function_definition
)module
|
This method returns a single post by slug
|
(module
(function_definition
(function_name_make_blastdb) function_name_make_blastdb
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_db) identifier_db
(subscript
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_formattedprimers) identifier_formattedprimers
)attribute
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nhr) identifier_nhr
(call
(attribute
(string_'{db}.nhr') string_'{db}.nhr'
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_db) identifier_db
(identifier_db) identifier_db
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isfile) identifier_isfile
)attribute
(argument_list
(call
(identifier_str) identifier_str
(argument_list
(identifier_nhr) identifier_nhr
)argument_list
)call
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(identifier_command) identifier_command
(call
(attribute
(string_'makeblastdb -in {primerfile} -parse_seqids -max_file_sz 2GB -dbtype nucl -out {outfile}') string_'makeblastdb -in {primerfile} -parse_seqids -max_file_sz 2GB -dbtype nucl -out {outfile}'
(line_continuation_\) line_continuation_\
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_primerfile) identifier_primerfile
(attribute
(identifier_self) identifier_self
(identifier_formattedprimers) identifier_formattedprimers
)attribute
)keyword_argument
(keyword_argument
(identifier_outfile) identifier_outfile
(identifier_db) identifier_db
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_run_subprocess) identifier_run_subprocess
(argument_list
(identifier_command) identifier_command
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module
|
Create a BLAST database of the primer file
|
(module
(function_definition
(function_name_to_bytes) function_name_to_bytes
(parameters
(identifier_s) identifier_s
(default_parameter
(identifier_encoding) identifier_encoding
(string_"utf8") string_"utf8"
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_PY_VERSION) identifier_PY_VERSION
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(assignment
(identifier_b) identifier_b
(call
(identifier_bytes) identifier_bytes
(argument_list
(identifier_s) identifier_s
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_PY_VERSION) identifier_PY_VERSION
(integer_3) integer_3
)comparison_operator
(block
(expression_statement
(assignment
(identifier_b) identifier_b
(call
(identifier_bytes) identifier_bytes
(argument_list
(identifier_s) identifier_s
(identifier_encoding) identifier_encoding
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Is Python 4 out already?") string_"Is Python 4 out already?"
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(return_statement
(identifier_b) identifier_b
)return_statement
)block
)function_definition
)module
|
Converts str s to bytes
|
(module
(function_definition
(function_name_mmi_to_delimited_file) function_name_mmi_to_delimited_file
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_force_flag) identifier_force_flag
(True) True
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_LOGGER) identifier_LOGGER
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'mmi_to_delimited_text requested.') string_'mmi_to_delimited_text requested.'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_csv_path) identifier_csv_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_output_dir) identifier_output_dir
)attribute
(string_'mmi.csv') string_'mmi.csv'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(boolean_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_csv_path) identifier_csv_path
)argument_list
)call
(comparison_operator
(identifier_force_flag) identifier_force_flag
(True) True
)comparison_operator
)boolean_operator
(block
(return_statement
(identifier_csv_path) identifier_csv_path
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_csv_file) identifier_csv_file
(call
(identifier_open) identifier_open
(argument_list
(identifier_csv_path) identifier_csv_path
(string_'w') string_'w'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_csv_file) identifier_csv_file
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_mmi_to_delimited_text) identifier_mmi_to_delimited_text
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_csv_file) identifier_csv_file
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_csvt_path) identifier_csvt_path
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_output_dir) identifier_output_dir
)attribute
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_output_basename) identifier_output_basename
)attribute
(string_'.csvt') string_'.csvt'
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_csvt_file) identifier_csvt_file
(call
(identifier_open) identifier_open
(argument_list
(identifier_csvt_path) identifier_csvt_path
(string_'w') string_'w'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_csvt_file) identifier_csvt_file
(identifier_write) identifier_write
)attribute
(argument_list
(string_'"Real","Real","Real"') string_'"Real","Real","Real"'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_csvt_file) identifier_csvt_file
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(return_statement
(identifier_csv_path) identifier_csv_path
)return_statement
)block
)function_definition
)module
|
Save mmi_data to delimited text file suitable for gdal_grid.
The output file will be of the same format as strings returned from
:func:`mmi_to_delimited_text`.
:param force_flag: Whether to force the regeneration of the output
file. Defaults to False.
:type force_flag: bool
:returns: The absolute file system path to the delimited text file.
:rtype: str
.. note:: An accompanying .csvt will be created which gdal uses to
determine field types. The csvt will contain the following string:
"Real","Real","Real". These types will be used in other conversion
operations. For example to convert the csv to a shp you would do::
ogr2ogr -select mmi -a_srs EPSG:4326 mmi.shp mmi.vrt mmi
|
(module
(function_definition
(function_name_updateActiveMarkupClass) function_name_updateActiveMarkupClass
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_previousMarkupClass) identifier_previousMarkupClass
(attribute
(identifier_self) identifier_self
(identifier_activeMarkupClass) identifier_activeMarkupClass
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_activeMarkupClass) identifier_activeMarkupClass
)attribute
(call
(identifier_find_markup_class_by_name) identifier_find_markup_class_by_name
(argument_list
(attribute
(identifier_globalSettings) identifier_globalSettings
(identifier_defaultMarkup) identifier_defaultMarkup
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__fileName) identifier__fileName
)attribute
(block
(expression_statement
(assignment
(identifier_markupClass) identifier_markupClass
(call
(identifier_get_markup_for_file_name) identifier_get_markup_for_file_name
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__fileName) identifier__fileName
)attribute
(keyword_argument
(identifier_return_class) identifier_return_class
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_markupClass) identifier_markupClass
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_activeMarkupClass) identifier_activeMarkupClass
)attribute
(identifier_markupClass) identifier_markupClass
)assignment
)expression_statement
)block
)if_statement
)block
)if_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_activeMarkupClass) identifier_activeMarkupClass
)attribute
(identifier_previousMarkupClass) identifier_previousMarkupClass
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(attribute
(identifier_self) identifier_self
(identifier_highlighter) identifier_highlighter
)attribute
(identifier_docType) identifier_docType
)attribute
(conditional_expression
(attribute
(attribute
(identifier_self) identifier_self
(identifier_activeMarkupClass) identifier_activeMarkupClass
)attribute
(identifier_name) identifier_name
)attribute
(attribute
(identifier_self) identifier_self
(identifier_activeMarkupClass) identifier_activeMarkupClass
)attribute
(None) None
)conditional_expression
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_highlighter) identifier_highlighter
)attribute
(identifier_rehighlight) identifier_rehighlight
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_activeMarkupChanged) identifier_activeMarkupChanged
)attribute
(identifier_emit) identifier_emit
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_triggerPreviewUpdate) identifier_triggerPreviewUpdate
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module
|
Update the active markup class based on the default class and
the current filename. If the active markup class changes, the
highlighter is rerun on the input text, the markup object of
this tab is replaced with one of the new class and the
activeMarkupChanged signal is emitted.
|
(module
(function_definition
(function_name_copy_assets) function_name_copy_assets
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_path) identifier_path
(string_'assets') string_'assets'
)default_parameter
)parameters
(block
(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
(identifier_self) identifier_self
(identifier_root_path) identifier_root_path
)attribute
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_root) identifier_root
(identifier__) identifier__
(identifier_files) identifier_files
)pattern_list
(call
(attribute
(identifier_os) identifier_os
(identifier_walk) identifier_walk
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
(block
(for_statement
(identifier_file) identifier_file
(identifier_files) identifier_files
(block
(expression_statement
(assignment
(identifier_fullpath) identifier_fullpath
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_root) identifier_root
(identifier_file) identifier_file
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_relpath) identifier_relpath
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_relpath) identifier_relpath
)attribute
(argument_list
(identifier_fullpath) identifier_fullpath
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_copy_to) identifier_copy_to
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__get_dist_path) identifier__get_dist_path
)attribute
(argument_list
(identifier_relpath) identifier_relpath
(keyword_argument
(identifier_directory) identifier_directory
(string_'assets') string_'assets'
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_LOG) identifier_LOG
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_'copying %r to %r') string_'copying %r to %r'
(identifier_fullpath) identifier_fullpath
(identifier_copy_to) identifier_copy_to
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_copyfile) identifier_copyfile
)attribute
(argument_list
(identifier_fullpath) identifier_fullpath
(identifier_copy_to) identifier_copy_to
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)function_definition
)module
|
Copy assets into the destination directory.
|
(module
(function_definition
(function_name_delete_user) function_name_delete_user
(parameters
(identifier_self) identifier_self
(identifier_id) identifier_id
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_assert_has_permission) identifier_assert_has_permission
)attribute
(argument_list
(string_'scim.write') string_'scim.write'
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_uri) identifier_uri
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_uri) identifier_uri
)attribute
(binary_operator
(string_'/Users/%s') string_'/Users/%s'
(identifier_id) identifier_id
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(call
(attribute
(identifier_self) identifier_self
(identifier__get_headers) identifier__get_headers
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_"URI=") string_"URI="
(call
(identifier_str) identifier_str
(argument_list
(identifier_uri) identifier_uri
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_"HEADERS=") string_"HEADERS="
(call
(identifier_str) identifier_str
(argument_list
(identifier_headers) identifier_headers
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_session) identifier_session
)attribute
(identifier_delete) identifier_delete
)attribute
(argument_list
(identifier_uri) identifier_uri
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_"STATUS=") string_"STATUS="
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
)argument_list
)call
)binary_operator
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_response) identifier_response
(identifier_status_code) identifier_status_code
)attribute
(integer_200) integer_200
)comparison_operator
(block
(return_statement
(identifier_response) identifier_response
)return_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_error) identifier_error
)attribute
(argument_list
(attribute
(identifier_response) identifier_response
(identifier_content) identifier_content
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_raise_for_status) identifier_raise_for_status
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Delete user with given id.
|
(module
(function_definition
(function_name_iter_sources) function_name_iter_sources
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_src_id) identifier_src_id
(call
(identifier_xrange) identifier_xrange
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_source_count) identifier_get_source_count
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(yield
(expression_list
(identifier_src_id) identifier_src_id
(call
(attribute
(identifier_self) identifier_self
(identifier_get_source_name) identifier_get_source_name
)attribute
(argument_list
(identifier_src_id) identifier_src_id
)argument_list
)call
)expression_list
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
)module
|
Iterates over all source names and IDs.
|
(module
(function_definition
(function_name__realwavelets) function_name__realwavelets
(parameters
(identifier_s_freq) identifier_s_freq
(identifier_freqs) identifier_freqs
(identifier_dur) identifier_dur
(identifier_width) identifier_width
)parameters
(block
(expression_statement
(assignment
(identifier_x) identifier_x
(call
(identifier_arange) identifier_arange
(argument_list
(binary_operator
(unary_operator
(identifier_dur) identifier_dur
)unary_operator
(integer_2) integer_2
)binary_operator
(binary_operator
(identifier_dur) identifier_dur
(integer_2) integer_2
)binary_operator
(binary_operator
(integer_1) integer_1
(identifier_s_freq) identifier_s_freq
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_wavelets) identifier_wavelets
(call
(identifier_empty) identifier_empty
(argument_list
(tuple
(call
(identifier_len) identifier_len
(argument_list
(identifier_freqs) identifier_freqs
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_g) identifier_g
(call
(identifier_exp) identifier_exp
(argument_list
(binary_operator
(unary_operator
(parenthesized_expression
(binary_operator
(identifier_pi) identifier_pi
(binary_operator
(identifier_x) identifier_x
(integer_2) integer_2
)binary_operator
)binary_operator
)parenthesized_expression
)unary_operator
(binary_operator
(identifier_width) identifier_width
(integer_2) integer_2
)binary_operator
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_one_freq) identifier_one_freq
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_freqs) identifier_freqs
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_y) identifier_y
(call
(identifier_cos) identifier_cos
(argument_list
(binary_operator
(binary_operator
(binary_operator
(integer_2) integer_2
(identifier_pi) identifier_pi
)binary_operator
(identifier_x) identifier_x
)binary_operator
(identifier_one_freq) identifier_one_freq
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_wavelets) identifier_wavelets
(identifier_i) identifier_i
(slice
(colon) colon
)slice
)subscript
(binary_operator
(identifier_y) identifier_y
(identifier_g) identifier_g
)binary_operator
)assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_wavelets) identifier_wavelets
)return_statement
)block
)function_definition
)module
|
Create real wavelets, for UCSD.
Parameters
----------
s_freq : int
sampling frequency
freqs : ndarray
vector with frequencies of interest
dur : float
duration of the wavelets in s
width : float
parameter controlling gaussian shape
Returns
-------
ndarray
wavelets
|
(module
(function_definition
(function_name_klucher) function_name_klucher
(parameters
(identifier_surface_tilt) identifier_surface_tilt
(identifier_surface_azimuth) identifier_surface_azimuth
(identifier_dhi) identifier_dhi
(identifier_ghi) identifier_ghi
(identifier_solar_zenith) identifier_solar_zenith
(identifier_solar_azimuth) identifier_solar_azimuth
)parameters
(block
(expression_statement
(identifier_r) identifier_r
)expression_statement
(expression_statement
(assignment
(identifier_cos_tt) identifier_cos_tt
(call
(identifier_aoi_projection) identifier_aoi_projection
(argument_list
(identifier_surface_tilt) identifier_surface_tilt
(identifier_surface_azimuth) identifier_surface_azimuth
(identifier_solar_zenith) identifier_solar_zenith
(identifier_solar_azimuth) identifier_solar_azimuth
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cos_tt) identifier_cos_tt
(call
(attribute
(identifier_np) identifier_np
(identifier_maximum) identifier_maximum
)attribute
(argument_list
(identifier_cos_tt) identifier_cos_tt
(integer_0) integer_0
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_F) identifier_F
(binary_operator
(integer_1) integer_1
(parenthesized_expression
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_dhi) identifier_dhi
(identifier_ghi) identifier_ghi
)binary_operator
)parenthesized_expression
(integer_2) integer_2
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_F) identifier_F
(identifier_fillna) identifier_fillna
)attribute
(argument_list
(integer_0) integer_0
(keyword_argument
(identifier_inplace) identifier_inplace
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(expression_statement
(assignment
(identifier_F) identifier_F
(call
(attribute
(identifier_np) identifier_np
(identifier_where) identifier_where
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_isnan) identifier_isnan
)attribute
(argument_list
(identifier_F) identifier_F
)argument_list
)call
(integer_0) integer_0
(identifier_F) identifier_F
)argument_list
)call
)assignment
)expression_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_term1) identifier_term1
(binary_operator
(float_0.5) float_0.5
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(call
(attribute
(identifier_tools) identifier_tools
(identifier_cosd) identifier_cosd
)attribute
(argument_list
(identifier_surface_tilt) identifier_surface_tilt
)argument_list
)call
)binary_operator
)parenthesized_expression
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_term2) identifier_term2
(binary_operator
(integer_1) integer_1
(binary_operator
(identifier_F) identifier_F
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_tools) identifier_tools
(identifier_sind) identifier_sind
)attribute
(argument_list
(binary_operator
(float_0.5) float_0.5
(identifier_surface_tilt) identifier_surface_tilt
)binary_operator
)argument_list
)call
(integer_3) integer_3
)binary_operator
)parenthesized_expression
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_term3) identifier_term3
(binary_operator
(integer_1) integer_1
(binary_operator
(binary_operator
(identifier_F) identifier_F
(parenthesized_expression
(binary_operator
(identifier_cos_tt) identifier_cos_tt
(integer_2) integer_2
)binary_operator
)parenthesized_expression
)binary_operator
(parenthesized_expression
(binary_operator
(call
(attribute
(identifier_tools) identifier_tools
(identifier_sind) identifier_sind
)attribute
(argument_list
(identifier_solar_zenith) identifier_solar_zenith
)argument_list
)call
(integer_3) integer_3
)binary_operator
)parenthesized_expression
)binary_operator
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_sky_diffuse) identifier_sky_diffuse
(binary_operator
(binary_operator
(binary_operator
(identifier_dhi) identifier_dhi
(identifier_term1) identifier_term1
)binary_operator
(identifier_term2) identifier_term2
)binary_operator
(identifier_term3) identifier_term3
)binary_operator
)assignment
)expression_statement
(return_statement
(identifier_sky_diffuse) identifier_sky_diffuse
)return_statement
)block
)function_definition
)module
|
r'''
Determine diffuse irradiance from the sky on a tilted surface
using Klucher's 1979 model
.. math::
I_{d} = DHI \frac{1 + \cos\beta}{2} (1 + F' \sin^3(\beta/2))
(1 + F' \cos^2\theta\sin^3\theta_z)
where
.. math::
F' = 1 - (I_{d0} / GHI)
Klucher's 1979 model determines the diffuse irradiance from the sky
(ground reflected irradiance is not included in this algorithm) on a
tilted surface using the surface tilt angle, surface azimuth angle,
diffuse horizontal irradiance, direct normal irradiance, global
horizontal irradiance, extraterrestrial irradiance, sun zenith
angle, and sun azimuth angle.
Parameters
----------
surface_tilt : numeric
Surface tilt angles in decimal degrees. surface_tilt must be >=0
and <=180. The tilt angle is defined as degrees from horizontal
(e.g. surface facing up = 0, surface facing horizon = 90)
surface_azimuth : numeric
Surface azimuth angles in decimal degrees. surface_azimuth must
be >=0 and <=360. The Azimuth convention is defined as degrees
east of north (e.g. North = 0, South=180 East = 90, West = 270).
dhi : numeric
Diffuse horizontal irradiance in W/m^2. DHI must be >=0.
ghi : numeric
Global irradiance in W/m^2. DNI must be >=0.
solar_zenith : numeric
Apparent (refraction-corrected) zenith angles in decimal
degrees. solar_zenith must be >=0 and <=180.
solar_azimuth : numeric
Sun azimuth angles in decimal degrees. solar_azimuth must be >=0
and <=360. The Azimuth convention is defined as degrees east of
north (e.g. North = 0, East = 90, West = 270).
Returns
-------
diffuse : numeric
The sky diffuse component of the solar radiation.
References
----------
[1] Loutzenhiser P.G. et. al. "Empirical validation of models to compute
solar irradiance on inclined surfaces for building energy simulation"
2007, Solar Energy vol. 81. pp. 254-267
[2] Klucher, T.M., 1979. Evaluation of models to predict insolation on
tilted surfaces. Solar Energy 23 (2), 111-114.
|
(module
(function_definition
(function_name_toggle_badge) function_name_toggle_badge
(parameters
(identifier_self) identifier_self
(identifier_kind) identifier_kind
)parameters
(block
(expression_statement
(assignment
(identifier_badge) identifier_badge
(call
(attribute
(identifier_self) identifier_self
(identifier_get_badge) identifier_get_badge
)attribute
(argument_list
(identifier_kind) identifier_kind
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_badge) identifier_badge
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_remove_badge) identifier_remove_badge
)attribute
(argument_list
(identifier_kind) identifier_kind
)argument_list
)call
)return_statement
)block
(else_clause
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_add_badge) identifier_add_badge
)attribute
(argument_list
(identifier_kind) identifier_kind
)argument_list
)call
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module
|
Toggle a bdage given its kind
|
(module
(function_definition
(function_name__cache_get_for_dn) function_name__cache_get_for_dn
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_dn) identifier_dn
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(generic_type
(identifier_Dict) identifier_Dict
(type_parameter
(type
(identifier_str) identifier_str
)type
(type
(identifier_bytes) identifier_bytes
)type
)type_parameter
)generic_type
)type
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__do_with_retry) identifier__do_with_retry
)attribute
(argument_list
(lambda
(lambda_parameters
(identifier_obj) identifier_obj
)lambda_parameters
(call
(attribute
(identifier_obj) identifier_obj
(identifier_search) identifier_search
)attribute
(argument_list
(identifier_dn) identifier_dn
(string_'(objectclass=*)') string_'(objectclass=*)'
(attribute
(identifier_ldap3) identifier_ldap3
(identifier_BASE) identifier_BASE
)attribute
(keyword_argument
(identifier_attributes) identifier_attributes
(list
(string_'*') string_'*'
(string_'+') string_'+'
)list
)keyword_argument
)argument_list
)call
)lambda
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_results) identifier_results
(attribute
(attribute
(identifier_self) identifier_self
(identifier__obj) identifier__obj
)attribute
(identifier_response) identifier_response
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_results) identifier_results
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(raise_statement
(call
(identifier_NoSuchObject) identifier_NoSuchObject
(argument_list
(string_"No results finding current value") string_"No results finding current value"
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_results) identifier_results
)argument_list
)call
(integer_1) integer_1
)comparison_operator
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(string_"Too many results finding current value") string_"Too many results finding current value"
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(subscript
(subscript
(identifier_results) identifier_results
(integer_0) integer_0
)subscript
(string_'raw_attributes') string_'raw_attributes'
)subscript
)return_statement
)block
)function_definition
)module
|
Object state is cached. When an update is required the update will be
simulated on this cache, so that rollback information can be correct.
This function retrieves the cached data.
|
(module
(function_definition
(function_name_is_won) function_name_is_won
(parameters
(identifier_grid) identifier_grid
)parameters
(block
(expression_statement
(string_"Did the latest move win the game?") string_"Did the latest move win the game?"
)expression_statement
(expression_statement
(assignment
(pattern_list
(identifier_p) identifier_p
(identifier_q) identifier_q
)pattern_list
(identifier_grid) identifier_grid
)assignment
)expression_statement
(return_statement
(call
(identifier_any) identifier_any
(generator_expression
(comparison_operator
(identifier_way) identifier_way
(parenthesized_expression
(binary_operator
(identifier_way) identifier_way
(identifier_q) identifier_q
)binary_operator
)parenthesized_expression
)comparison_operator
(for_in_clause
(identifier_way) identifier_way
(identifier_ways_to_win) identifier_ways_to_win
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module
|
Did the latest move win the game?
|
(module
(function_definition
(function_name_get_id_head) function_name_get_id_head
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_id_head) identifier_id_head
(None) None
)assignment
)expression_statement
(for_statement
(identifier_target_node) identifier_target_node
(identifier_self) identifier_self
(block
(if_statement
(call
(attribute
(identifier_target_node) identifier_target_node
(identifier_is_head) identifier_is_head
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_id_head) identifier_id_head
(call
(attribute
(identifier_target_node) identifier_target_node
(identifier_get_id) identifier_get_id
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(break_statement
)break_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_id_head) identifier_id_head
)return_statement
)block
)function_definition
)module
|
Returns the id of the target that is set as "head"
@rtype: string
@return: the target id (or None) of the head target
|
(module
(function_definition
(function_name_assess_content) function_name_assess_content
(parameters
(identifier_member) identifier_member
(identifier_file_filter) identifier_file_filter
)parameters
(block
(expression_statement
(assignment
(identifier_member_path) identifier_member_path
(call
(attribute
(attribute
(identifier_member) identifier_member
(identifier_name) identifier_name
)attribute
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'.') string_'.'
(string_'') string_''
(integer_1) integer_1
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_member_path) identifier_member_path
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_"skip_files") string_"skip_files"
(identifier_file_filter) identifier_file_filter
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_member_path) identifier_member_path
(subscript
(identifier_file_filter) identifier_file_filter
(string_'skip_files') string_'skip_files'
)subscript
)comparison_operator
(block
(return_statement
(False) False
)return_statement
)block
)if_statement
)block
)if_statement
(if_statement
(comparison_operator
(string_"assess_content") string_"assess_content"
(identifier_file_filter) identifier_file_filter
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_member_path) identifier_member_path
(subscript
(identifier_file_filter) identifier_file_filter
(string_'assess_content') string_'assess_content'
)subscript
)comparison_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
)block
)if_statement
(return_statement
(False) False
)return_statement
)block
)function_definition
)module
|
Determine if the filter wants the file to be read for content.
In the case of yes, we would then want to add the content to the
hash and not the file object.
|
(module
(function_definition
(function_name_scale_samples) function_name_scale_samples
(parameters
(identifier_params) identifier_params
(identifier_bounds) identifier_bounds
)parameters
(block
(expression_statement
(assignment
(identifier_b) identifier_b
(call
(attribute
(identifier_np) identifier_np
(identifier_array) identifier_array
)attribute
(argument_list
(identifier_bounds) identifier_bounds
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lower_bounds) identifier_lower_bounds
(subscript
(identifier_b) identifier_b
(slice
(colon) colon
)slice
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_upper_bounds) identifier_upper_bounds
(subscript
(identifier_b) identifier_b
(slice
(colon) colon
)slice
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_any) identifier_any
)attribute
(argument_list
(comparison_operator
(identifier_lower_bounds) identifier_lower_bounds
(identifier_upper_bounds) identifier_upper_bounds
)comparison_operator
)argument_list
)call
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Bounds are not legal") string_"Bounds are not legal"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_add) identifier_add
)attribute
(argument_list
(call
(attribute
(identifier_np) identifier_np
(identifier_multiply) identifier_multiply
)attribute
(argument_list
(identifier_params) identifier_params
(parenthesized_expression
(binary_operator
(identifier_upper_bounds) identifier_upper_bounds
(identifier_lower_bounds) identifier_lower_bounds
)binary_operator
)parenthesized_expression
(keyword_argument
(identifier_out) identifier_out
(identifier_params) identifier_params
)keyword_argument
)argument_list
)call
(identifier_lower_bounds) identifier_lower_bounds
(keyword_argument
(identifier_out) identifier_out
(identifier_params) identifier_params
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
Rescale samples in 0-to-1 range to arbitrary bounds
Arguments
---------
bounds : list
list of lists of dimensions `num_params`-by-2
params : numpy.ndarray
numpy array of dimensions `num_params`-by-:math:`N`,
where :math:`N` is the number of samples
|
(module
(function_definition
(function_name_get_duration_metadata) function_name_get_duration_metadata
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_metadata) identifier_metadata
(call
(identifier_dict) identifier_dict
(argument_list
(subscript
(attribute
(identifier_self) identifier_self
(identifier__mdata) identifier__mdata
)attribute
(string_'duration') string_'duration'
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_metadata) identifier_metadata
(identifier_update) identifier_update
)attribute
(argument_list
(dictionary
(pair
(string_'existing_duration_values') string_'existing_duration_values'
(subscript
(attribute
(identifier_self) identifier_self
(identifier__my_map) identifier__my_map
)attribute
(string_'duration') string_'duration'
)subscript
)pair
)dictionary
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier_Metadata) identifier_Metadata
(argument_list
(dictionary_splat
(identifier_metadata) identifier_metadata
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Gets the metadata for the assessment duration.
return: (osid.Metadata) - metadata for the duration
*compliance: mandatory -- This method must be implemented.*
|
(module
(function_definition
(function_name__in) function_name__in
(parameters
(identifier_ins) identifier_ins
)parameters
(block
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(identifier__16bit_oper) identifier__16bit_oper
(argument_list
(subscript
(attribute
(identifier_ins) identifier_ins
(identifier_quad) identifier_quad
)attribute
(integer_1) integer_1
)subscript
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(string_'ld b, h') string_'ld b, h'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(string_'ld c, l') string_'ld c, l'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(string_'in a, (c)') string_'in a, (c)'
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_output) identifier_output
(identifier_append) identifier_append
)attribute
(argument_list
(string_'push af') string_'push af'
)argument_list
)call
)expression_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)function_definition
)module
|
Translates IN to asm.
|
(module
(function_definition
(function_name_encrypt) function_name_encrypt
(parameters
(identifier_self) identifier_self
(identifier_s) identifier_s
(default_parameter
(identifier_mac_bytes) identifier_mac_bytes
(integer_10) integer_10
)default_parameter
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_s) identifier_s
(attribute
(identifier_six) identifier_six
(identifier_text_type) identifier_text_type
)attribute
)argument_list
)call
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_"Encode `s` to a bytestring yourself to") string_"Encode `s` to a bytestring yourself to"
(string_" prevent problems with different default encodings") string_" prevent problems with different default encodings"
)binary_operator
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_out) identifier_out
(call
(identifier_BytesIO) identifier_BytesIO
(argument_list
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_self) identifier_self
(identifier_encrypt_to) identifier_encrypt_to
)attribute
(argument_list
(identifier_out) identifier_out
(identifier_mac_bytes) identifier_mac_bytes
)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_s) identifier_s
)argument_list
)call
)expression_statement
)block
)with_statement
(return_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_getvalue) identifier_getvalue
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Encrypt `s' for this pubkey.
|
(module
(function_definition
(function_name__metadata_is_invalid) function_name__metadata_is_invalid
(parameters
(identifier_cls) identifier_cls
(identifier_fact) identifier_fact
)parameters
(block
(return_statement
(call
(identifier_any) identifier_any
(generator_expression
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_token) identifier_token
(identifier_URIRef) identifier_URIRef
)argument_list
)call
(comparison_operator
(string_' ') string_' '
(identifier_token) identifier_token
)comparison_operator
)boolean_operator
(for_in_clause
(identifier_token) identifier_token
(identifier_fact) identifier_fact
)for_in_clause
)generator_expression
)call
)return_statement
)block
)function_definition
)module
|
Determines if the fact is not well formed.
|
(module
(function_definition
(function_name_post) function_name_post
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(default_parameter
(identifier_auth) identifier_auth
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__check_ok) identifier__check_ok
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier__post) identifier__post
)attribute
(argument_list
(identifier_path) identifier_path
(keyword_argument
(identifier_auth) identifier_auth
(identifier_auth) identifier_auth
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module
|
Manually make a POST request.
:param str path: relative url of the request (e.g. `/users/username`)
:param auth.Authentication auth: authentication object
:param kwargs dict: Extra arguments for the request, as supported by the
`requests <http://docs.python-requests.org/>`_ library.
:raises NetworkFailure: if there is an error communicating with the server
:raises ApiFailure: if the request cannot be serviced
|
(module
(function_definition
(function_name_add_context_action) function_name_add_context_action
(parameters
(identifier_self) identifier_self
(identifier_action) identifier_action
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_main_tab_widget) identifier_main_tab_widget
)attribute
(identifier_context_actions) identifier_context_actions
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_action) identifier_action
)argument_list
)call
)expression_statement
(for_statement
(identifier_child_splitter) identifier_child_splitter
(attribute
(identifier_self) identifier_self
(identifier_child_splitters) identifier_child_splitters
)attribute
(block
(expression_statement
(call
(attribute
(identifier_child_splitter) identifier_child_splitter
(identifier_add_context_action) identifier_add_context_action
)attribute
(argument_list
(identifier_action) identifier_action
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module
|
Adds a custom context menu action
:param action: action to add.
|
(module
(function_definition
(function_name_rolling_window_sequences) function_name_rolling_window_sequences
(parameters
(identifier_X) identifier_X
(identifier_index) identifier_index
(identifier_window_size) identifier_window_size
(identifier_target_size) identifier_target_size
(identifier_target_column) identifier_target_column
)parameters
(block
(expression_statement
(assignment
(identifier_out_X) identifier_out_X
(call
(identifier_list) identifier_list
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_out_y) identifier_out_y
(call
(identifier_list) identifier_list
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_X_index) identifier_X_index
(call
(identifier_list) identifier_list
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_y_index) identifier_y_index
(call
(identifier_list) identifier_list
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_target) identifier_target
(subscript
(identifier_X) identifier_X
(slice
(colon) colon
)slice
(identifier_target_column) identifier_target_column
)subscript
)assignment
)expression_statement
(for_statement
(identifier_start) identifier_start
(call
(identifier_range) identifier_range
(argument_list
(binary_operator
(binary_operator
(binary_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_X) identifier_X
)argument_list
)call
(identifier_window_size) identifier_window_size
)binary_operator
(identifier_target_size) identifier_target_size
)binary_operator
(integer_1) integer_1
)binary_operator
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_end) identifier_end
(binary_operator
(identifier_start) identifier_start
(identifier_window_size) identifier_window_size
)binary_operator
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_out_X) identifier_out_X
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_X) identifier_X
(slice
(identifier_start) identifier_start
(colon) colon
(identifier_end) identifier_end
)slice
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_out_y) identifier_out_y
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_target) identifier_target
(slice
(identifier_end) identifier_end
(colon) colon
(binary_operator
(identifier_end) identifier_end
(identifier_target_size) identifier_target_size
)binary_operator
)slice
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_X_index) identifier_X_index
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_index) identifier_index
(identifier_start) identifier_start
)subscript
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_y_index) identifier_y_index
(identifier_append) identifier_append
)attribute
(argument_list
(subscript
(identifier_index) identifier_index
(identifier_end) identifier_end
)subscript
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(expression_list
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(identifier_out_X) identifier_out_X
)argument_list
)call
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(identifier_out_y) identifier_out_y
)argument_list
)call
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(identifier_X_index) identifier_X_index
)argument_list
)call
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(identifier_y_index) identifier_y_index
)argument_list
)call
)expression_list
)return_statement
)block
)function_definition
)module
|
Create rolling window sequences out of timeseries data.
|
(module
(function_definition
(function_name_redirect_logging) function_name_redirect_logging
(parameters
(identifier_tqdm_obj) identifier_tqdm_obj
(default_parameter
(identifier_logger) identifier_logger
(call
(attribute
(identifier_logging) identifier_logging
(identifier_getLogger) identifier_getLogger
)attribute
(argument_list
)argument_list
)call
)default_parameter
)parameters
(block
(assert_statement
(parenthesized_expression
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_logger) identifier_logger
(identifier_handlers) identifier_handlers
)attribute
)argument_list
)call
(integer_1) integer_1
)comparison_operator
)parenthesized_expression
)assert_statement
(expression_statement
(assignment
(identifier_prev_handler) identifier_prev_handler
(subscript
(attribute
(identifier_logger) identifier_logger
(identifier_handlers) identifier_handlers
)attribute
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_removeHandler) identifier_removeHandler
)attribute
(argument_list
(identifier_prev_handler) identifier_prev_handler
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_tqdm_handler) identifier_tqdm_handler
(call
(identifier_TqdmLoggingHandler) identifier_TqdmLoggingHandler
(argument_list
(identifier_tqdm_obj) identifier_tqdm_obj
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_prev_handler) identifier_prev_handler
(identifier_formatter) identifier_formatter
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_tqdm_handler) identifier_tqdm_handler
(identifier_setFormatter) identifier_setFormatter
)attribute
(argument_list
(attribute
(identifier_prev_handler) identifier_prev_handler
(identifier_formatter) identifier_formatter
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_addHandler) identifier_addHandler
)attribute
(argument_list
(identifier_tqdm_handler) identifier_tqdm_handler
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(yield
)yield
)expression_statement
)block
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_removeHandler) identifier_removeHandler
)attribute
(argument_list
(identifier_tqdm_handler) identifier_tqdm_handler
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_addHandler) identifier_addHandler
)attribute
(argument_list
(identifier_prev_handler) identifier_prev_handler
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module
|
Context manager to redirect logging to a TqdmLoggingHandler object and then restore the original.
|
(module
(function_definition
(function_name_horizon_dashboard_nav) function_name_horizon_dashboard_nav
(parameters
(identifier_context) identifier_context
)parameters
(block
(if_statement
(comparison_operator
(string_'request') string_'request'
(identifier_context) identifier_context
)comparison_operator
(block
(return_statement
(dictionary
)dictionary
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_dashboard) identifier_dashboard
(subscript
(attribute
(subscript
(identifier_context) identifier_context
(string_'request') string_'request'
)subscript
(identifier_horizon) identifier_horizon
)attribute
(string_'dashboard') string_'dashboard'
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_panel_groups) identifier_panel_groups
(call
(attribute
(identifier_dashboard) identifier_dashboard
(identifier_get_panel_groups) identifier_get_panel_groups
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_non_empty_groups) identifier_non_empty_groups
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_group) identifier_group
(call
(attribute
(identifier_panel_groups) identifier_panel_groups
(identifier_values) identifier_values
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_allowed_panels) identifier_allowed_panels
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_panel) identifier_panel
(identifier_group) identifier_group
(block
(if_statement
(parenthesized_expression
(boolean_operator
(boolean_operator
(call
(identifier_callable) identifier_callable
(argument_list
(attribute
(identifier_panel) identifier_panel
(identifier_nav) identifier_nav
)attribute
)argument_list
)call
(call
(attribute
(identifier_panel) identifier_panel
(identifier_nav) identifier_nav
)attribute
(argument_list
(identifier_context) identifier_context
)argument_list
)call
)boolean_operator
(call
(attribute
(identifier_panel) identifier_panel
(identifier_can_access) identifier_can_access
)attribute
(argument_list
(identifier_context) identifier_context
)argument_list
)call
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(call
(attribute
(identifier_allowed_panels) identifier_allowed_panels
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_panel) identifier_panel
)argument_list
)call
)expression_statement
)block
(elif_clause
(parenthesized_expression
(boolean_operator
(boolean_operator
(not_operator
(call
(identifier_callable) identifier_callable
(argument_list
(attribute
(identifier_panel) identifier_panel
(identifier_nav) identifier_nav
)attribute
)argument_list
)call
)not_operator
(attribute
(identifier_panel) identifier_panel
(identifier_nav) identifier_nav
)attribute
)boolean_operator
(call
(attribute
(identifier_panel) identifier_panel
(identifier_can_access) identifier_can_access
)attribute
(argument_list
(identifier_context) identifier_context
)argument_list
)call
)boolean_operator
)parenthesized_expression
(block
(expression_statement
(call
(attribute
(identifier_allowed_panels) identifier_allowed_panels
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_panel) identifier_panel
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
)block
)for_statement
(if_statement
(identifier_allowed_panels) identifier_allowed_panels
(block
(if_statement
(comparison_operator
(attribute
(identifier_group) identifier_group
(identifier_name) identifier_name
)attribute
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_non_empty_groups) identifier_non_empty_groups
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(attribute
(identifier_dashboard) identifier_dashboard
(identifier_name) identifier_name
)attribute
(identifier_allowed_panels) identifier_allowed_panels
)tuple
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_non_empty_groups) identifier_non_empty_groups
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(attribute
(identifier_group) identifier_group
(identifier_name) identifier_name
)attribute
(identifier_allowed_panels) identifier_allowed_panels
)tuple
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
)block
)for_statement
(return_statement
(dictionary
(pair
(string_'components') string_'components'
(call
(identifier_OrderedDict) identifier_OrderedDict
(argument_list
(identifier_non_empty_groups) identifier_non_empty_groups
)argument_list
)call
)pair
(pair
(string_'user') string_'user'
(attribute
(subscript
(identifier_context) identifier_context
(string_'request') string_'request'
)subscript
(identifier_user) identifier_user
)attribute
)pair
(pair
(string_'current') string_'current'
(attribute
(subscript
(attribute
(subscript
(identifier_context) identifier_context
(string_'request') string_'request'
)subscript
(identifier_horizon) identifier_horizon
)attribute
(string_'panel') string_'panel'
)subscript
(identifier_slug) identifier_slug
)attribute
)pair
(pair
(string_'request') string_'request'
(subscript
(identifier_context) identifier_context
(string_'request') string_'request'
)subscript
)pair
)dictionary
)return_statement
)block
)function_definition
)module
|
Generates sub-navigation entries for the current dashboard.
|
(module
(function_definition
(function_name_lookup_function) function_name_lookup_function
(parameters
(identifier_val) identifier_val
)parameters
(block
(expression_statement
(string_"Look-up and return a pretty-printer that can print va.") string_"Look-up and return a pretty-printer that can print va."
)expression_statement
(expression_statement
(assignment
(identifier_type) identifier_type
(attribute
(identifier_val) identifier_val
(identifier_type) identifier_type
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_type) identifier_type
(identifier_code) identifier_code
)attribute
(attribute
(identifier_gdb) identifier_gdb
(identifier_TYPE_CODE_REF) identifier_TYPE_CODE_REF
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_type) identifier_type
(call
(attribute
(identifier_type) identifier_type
(identifier_target) identifier_target
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_type) identifier_type
(call
(attribute
(call
(attribute
(identifier_type) identifier_type
(identifier_unqualified) identifier_unqualified
)attribute
(argument_list
)argument_list
)call
(identifier_strip_typedefs) identifier_strip_typedefs
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_typename) identifier_typename
(attribute
(identifier_type) identifier_type
(identifier_tag) identifier_tag
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_typename) identifier_typename
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(for_statement
(identifier_function) identifier_function
(identifier_pretty_printers_dict) identifier_pretty_printers_dict
(block
(if_statement
(call
(attribute
(identifier_function) identifier_function
(identifier_search) identifier_search
)attribute
(argument_list
(identifier_typename) identifier_typename
)argument_list
)call
(block
(return_statement
(call
(subscript
(identifier_pretty_printers_dict) identifier_pretty_printers_dict
(identifier_function) identifier_function
)subscript
(argument_list
(identifier_val) identifier_val
)argument_list
)call
)return_statement
)block
)if_statement
)block
)for_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module
|
Look-up and return a pretty-printer that can print va.
|
(module
(function_definition
(function_name_start) function_name_start
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_parse_opt) identifier_parse_opt
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_parse_cfg) identifier_parse_cfg
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(boolean_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(identifier_browse) identifier_browse
)attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(identifier_browse_big) identifier_browse_big
)attribute
)boolean_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(identifier_progress) identifier_progress
)attribute
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_browse) identifier_browse
)attribute
(argument_list
)argument_list
)call
)expression_statement
(raise_statement
(identifier_SystemExit) identifier_SystemExit
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_paramlist) identifier_paramlist
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_exp) identifier_exp
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cfgparser) identifier_cfgparser
)attribute
(identifier_sections) identifier_sections
)attribute
(argument_list
)argument_list
)call
(block
(if_statement
(boolean_operator
(not_operator
(attribute
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(identifier_experiments) identifier_experiments
)attribute
)not_operator
(comparison_operator
(identifier_exp) identifier_exp
(attribute
(attribute
(identifier_self) identifier_self
(identifier_options) identifier_options
)attribute
(identifier_experiments) identifier_experiments
)attribute
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(call
(attribute
(identifier_self) identifier_self
(identifier_items_to_params) identifier_items_to_params
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_cfgparser) identifier_cfgparser
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
(identifier_exp) identifier_exp
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'name') string_'name'
)subscript
(identifier_exp) identifier_exp
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_paramlist) identifier_paramlist
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_params) identifier_params
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_do_experiment) identifier_do_experiment
)attribute
(argument_list
(identifier_paramlist) identifier_paramlist
)argument_list
)call
)expression_statement
)block
)function_definition
)module
|
starts the experiments as given in the config file.
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.