sequence stringlengths 557 12.7k | docstring stringlengths 4 15.2k |
|---|---|
(module
(function_definition
(function_name_uint8sc) function_name_uint8sc
(parameters
(identifier_im) identifier_im
)parameters
(block
(expression_statement
(assignment
(identifier_im) identifier_im
(call
(attribute
(identifier_np) identifier_np
(identifier_asarray) identifier_asarray
)attribute
(argument_list
(identifier_im) identifier_im
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_immin) identifier_immin
(call
(attribute
(identifier_im) identifier_im
(identifier_min) identifier_min
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_immax) identifier_immax
(call
(attribute
(identifier_im) identifier_im
(identifier_max) identifier_max
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_imrange) identifier_imrange
(binary_operator
(identifier_immax) identifier_immax
(identifier_immin) identifier_immin
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_cv2) identifier_cv2
(identifier_convertScaleAbs) identifier_convertScaleAbs
)attribute
(argument_list
(binary_operator
(identifier_im) identifier_im
(identifier_immin) identifier_immin
)binary_operator
(keyword_argument
(identifier_alpha) identifier_alpha
(binary_operator
(integer_255) integer_255
(identifier_imrange) identifier_imrange
)binary_operator
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Scale the image to uint8
Parameters:
-----------
im: 2d array
The image
Returns:
--------
im: 2d array (dtype uint8)
The scaled image to uint8 |
(module
(function_definition
(function_name_add_efac) function_name_add_efac
(parameters
(identifier_psr) identifier_psr
(default_parameter
(identifier_efac) identifier_efac
(float_1.0) float_1.0
)default_parameter
(default_parameter
(identifier_flagid) identifier_flagid
(None) None
)default_parameter
(default_parameter
(identifier_flags) identifier_flags
(None) None
)default_parameter
(default_parameter
(identifier_seed) identifier_seed
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_seed) identifier_seed
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(attribute
(identifier_N) identifier_N
(identifier_random) identifier_random
)attribute
(identifier_seed) identifier_seed
)attribute
(argument_list
(identifier_seed) identifier_seed
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_efacvec) identifier_efacvec
(call
(attribute
(identifier_N) identifier_N
(identifier_ones) identifier_ones
)attribute
(argument_list
(attribute
(identifier_psr) identifier_psr
(identifier_nobs) identifier_nobs
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_flags) identifier_flags
(None) None
)comparison_operator
(block
(if_statement
(not_operator
(call
(attribute
(identifier_N) identifier_N
(identifier_isscalar) identifier_isscalar
)attribute
(argument_list
(identifier_efac) identifier_efac
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'ERROR: If flags is None, efac must be a scalar') string_'ERROR: If flags is None, efac must be a scalar'
)argument_list
)call
)raise_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_efacvec) identifier_efacvec
(binary_operator
(call
(attribute
(identifier_N) identifier_N
(identifier_ones) identifier_ones
)attribute
(argument_list
(attribute
(identifier_psr) identifier_psr
(identifier_nobs) identifier_nobs
)attribute
)argument_list
)call
(identifier_efac) identifier_efac
)binary_operator
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
(if_statement
(boolean_operator
(boolean_operator
(comparison_operator
(identifier_flags) identifier_flags
(None) None
)comparison_operator
(comparison_operator
(identifier_flagid) identifier_flagid
(None) None
)comparison_operator
)boolean_operator
(not_operator
(call
(attribute
(identifier_N) identifier_N
(identifier_isscalar) identifier_isscalar
)attribute
(argument_list
(identifier_efac) identifier_efac
)argument_list
)call
)not_operator
)boolean_operator
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_efac) identifier_efac
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_flags) identifier_flags
)argument_list
)call
)comparison_operator
(block
(for_statement
(pattern_list
(identifier_ct) identifier_ct
(identifier_flag) identifier_flag
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_flags) identifier_flags
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_ind) identifier_ind
(comparison_operator
(identifier_flag) identifier_flag
(call
(attribute
(identifier_N) identifier_N
(identifier_array) identifier_array
)attribute
(argument_list
(call
(attribute
(identifier_psr) identifier_psr
(identifier_flagvals) identifier_flagvals
)attribute
(argument_list
(identifier_flagid) identifier_flagid
)argument_list
)call
)argument_list
)call
)comparison_operator
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_efacvec) identifier_efacvec
(identifier_ind) identifier_ind
)subscript
(subscript
(identifier_efac) identifier_efac
(identifier_ct) identifier_ct
)subscript
)assignment
)expression_statement
)block
)for_statement
)block
)if_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(subscript
(attribute
(identifier_psr) identifier_psr
(identifier_stoas) identifier_stoas
)attribute
(slice
(colon) colon
)slice
)subscript
(binary_operator
(binary_operator
(binary_operator
(identifier_efacvec) identifier_efacvec
(attribute
(identifier_psr) identifier_psr
(identifier_toaerrs) identifier_toaerrs
)attribute
)binary_operator
(parenthesized_expression
(binary_operator
(float_1e-6) float_1e-6
(identifier_day) identifier_day
)binary_operator
)parenthesized_expression
)binary_operator
(call
(attribute
(attribute
(identifier_N) identifier_N
(identifier_random) identifier_random
)attribute
(identifier_randn) identifier_randn
)attribute
(argument_list
(attribute
(identifier_psr) identifier_psr
(identifier_nobs) identifier_nobs
)attribute
)argument_list
)call
)binary_operator
)augmented_assignment
)expression_statement
)block
)function_definition
)module | Add nominal TOA errors, multiplied by `efac` factor.
Optionally take a pseudorandom-number-generator seed. |
(module
(function_definition
(function_name_contains) function_name_contains
(parameters
(identifier_self) identifier_self
(identifier_expected) identifier_expected
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__encode_invoke) identifier__encode_invoke
)attribute
(argument_list
(identifier_atomic_reference_contains_codec) identifier_atomic_reference_contains_codec
(keyword_argument
(identifier_expected) identifier_expected
(call
(attribute
(identifier_self) identifier_self
(identifier__to_data) identifier__to_data
)attribute
(argument_list
(identifier_expected) identifier_expected
)argument_list
)call
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Checks if the reference contains the value.
:param expected: (object), the value to check (is allowed to be ``None``).
:return: (bool), ``true`` if the value is found, ``false`` otherwise. |
(module
(function_definition
(function_name_disable) function_name_disable
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_w) identifier_w
(identifier_ActButton) identifier_ActButton
)attribute
(identifier_disable) identifier_disable
)attribute
(argument_list
(identifier_self) identifier_self
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_g) identifier_g
(attribute
(call
(identifier_get_root) identifier_get_root
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(identifier_globals) identifier_globals
)attribute
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier__expert) identifier__expert
)attribute
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(argument_list
(keyword_argument
(identifier_bg) identifier_bg
(subscript
(attribute
(identifier_g) identifier_g
(identifier_COL) identifier_COL
)attribute
(string_'start') string_'start'
)subscript
)keyword_argument
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_config) identifier_config
)attribute
(argument_list
(keyword_argument
(identifier_bg) identifier_bg
(subscript
(attribute
(identifier_g) identifier_g
(identifier_COL) identifier_COL
)attribute
(string_'startD') string_'startD'
)subscript
)keyword_argument
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Disable the button, if in non-expert mode. |
(module
(function_definition
(function_name__table_to_csv) function_name__table_to_csv
(parameters
(identifier_table_) identifier_table_
)parameters
(block
(expression_statement
(assignment
(identifier_f) identifier_f
(call
(attribute
(identifier_cStringIO) identifier_cStringIO
(identifier_StringIO) identifier_StringIO
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(call
(identifier__write_csv) identifier__write_csv
(argument_list
(identifier_f) identifier_f
(identifier_table_) identifier_table_
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_getvalue) identifier_getvalue
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier_f) identifier_f
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Return the given table converted to a CSV string.
:param table: the table to convert
:type table: list of OrderedDicts each with the same keys in the same
order
:rtype: UTF8-encoded, CSV-formatted string |
(module
(function_definition
(function_name_enable) function_name_enable
(parameters
(identifier_instrumentation_key) identifier_instrumentation_key
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(not_operator
(identifier_instrumentation_key) identifier_instrumentation_key
)not_operator
(block
(raise_statement
(call
(identifier_Exception) identifier_Exception
(argument_list
(string_'Instrumentation key was required but not provided') string_'Instrumentation key was required but not provided'
)argument_list
)call
)raise_statement
)block
)if_statement
(global_statement
(identifier_original_excepthook) identifier_original_excepthook
)global_statement
(global_statement
(identifier_telemetry_channel) identifier_telemetry_channel
)global_statement
(expression_statement
(assignment
(identifier_telemetry_channel) identifier_telemetry_channel
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_get) identifier_get
)attribute
(argument_list
(string_'telemetry_channel') string_'telemetry_channel'
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_original_excepthook) identifier_original_excepthook
)not_operator
(block
(expression_statement
(assignment
(identifier_original_excepthook) identifier_original_excepthook
(attribute
(identifier_sys) identifier_sys
(identifier_excepthook) identifier_excepthook
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_sys) identifier_sys
(identifier_excepthook) identifier_excepthook
)attribute
(identifier_intercept_excepthook) identifier_intercept_excepthook
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_instrumentation_key) identifier_instrumentation_key
(identifier_enabled_instrumentation_keys) identifier_enabled_instrumentation_keys
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_enabled_instrumentation_keys) identifier_enabled_instrumentation_keys
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_instrumentation_key) identifier_instrumentation_key
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Enables the automatic collection of unhandled exceptions. Captured exceptions will be sent to the Application
Insights service before being re-thrown. Multiple calls to this function with different instrumentation keys result
in multiple instances being submitted, one for each key.
.. code:: python
from applicationinsights.exceptions import enable
# set up exception capture
enable('<YOUR INSTRUMENTATION KEY GOES HERE>')
# raise an exception (this will be sent to the Application Insights service as an exception telemetry object)
raise Exception('Boom!')
Args:
instrumentation_key (str). the instrumentation key to use while sending telemetry to the service. |
(module
(function_definition
(function_name_fuzzy_match) function_name_fuzzy_match
(parameters
(identifier_self) identifier_self
(identifier_other) identifier_other
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_magic) identifier_magic
(identifier_fuzzy) identifier_fuzzy
)pattern_list
(expression_list
(False) False
(False) False
)expression_list
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_magic) identifier_magic
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_alias) identifier_alias
)attribute
(attribute
(identifier_other) identifier_other
(identifier_magic) identifier_magic
)attribute
)comparison_operator
)assignment
)expression_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(if_statement
(comparison_operator
(string_'.') string_'.'
(attribute
(identifier_self) identifier_self
(identifier_alias) identifier_alias
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_major) identifier_major
(subscript
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_alias) identifier_alias
)attribute
(identifier_split) identifier_split
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fuzzy) identifier_fuzzy
(comparison_operator
(identifier_major) identifier_major
(attribute
(identifier_other) identifier_other
(identifier_alias) identifier_alias
)attribute
)comparison_operator
)assignment
)expression_statement
)block
)if_statement
(return_statement
(boolean_operator
(identifier_magic) identifier_magic
(identifier_fuzzy) identifier_fuzzy
)boolean_operator
)return_statement
)block
)function_definition
)module | Given another token, see if either the major alias identifier
matches the other alias, or if magic matches the alias. |
(module
(function_definition
(function_name_save_to_files) function_name_save_to_files
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_directory) identifier_directory
(type
(identifier_str) identifier_str
)type
)typed_parameter
)parameters
(type
(None) None
)type
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_makedirs) identifier_makedirs
)attribute
(argument_list
(identifier_directory) identifier_directory
(keyword_argument
(identifier_exist_ok) identifier_exist_ok
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
(if_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_listdir) identifier_listdir
)attribute
(argument_list
(identifier_directory) identifier_directory
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"vocabulary serialization directory %s is not empty") string_"vocabulary serialization directory %s is not empty"
(identifier_directory) identifier_directory
)argument_list
)call
)expression_statement
)block
)if_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_codecs) identifier_codecs
(identifier_open) identifier_open
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_directory) identifier_directory
(identifier_NAMESPACE_PADDING_FILE) identifier_NAMESPACE_PADDING_FILE
)argument_list
)call
(string_'w') string_'w'
(string_'utf-8') string_'utf-8'
)argument_list
)call
(as_pattern_target
(identifier_namespace_file) identifier_namespace_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(for_statement
(identifier_namespace_str) identifier_namespace_str
(attribute
(identifier_self) identifier_self
(identifier__non_padded_namespaces) identifier__non_padded_namespaces
)attribute
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(identifier_namespace_str) identifier_namespace_str
(keyword_argument
(identifier_file) identifier_file
(identifier_namespace_file) identifier_namespace_file
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)with_statement
(for_statement
(pattern_list
(identifier_namespace) identifier_namespace
(identifier_mapping) identifier_mapping
)pattern_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__index_to_token) identifier__index_to_token
)attribute
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_codecs) identifier_codecs
(identifier_open) identifier_open
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_directory) identifier_directory
(binary_operator
(identifier_namespace) identifier_namespace
(string_'.txt') string_'.txt'
)binary_operator
)argument_list
)call
(string_'w') string_'w'
(string_'utf-8') string_'utf-8'
)argument_list
)call
(as_pattern_target
(identifier_token_file) identifier_token_file
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_num_tokens) identifier_num_tokens
(call
(identifier_len) identifier_len
(argument_list
(identifier_mapping) identifier_mapping
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_start_index) identifier_start_index
(conditional_expression
(integer_1) integer_1
(comparison_operator
(subscript
(identifier_mapping) identifier_mapping
(integer_0) integer_0
)subscript
(attribute
(identifier_self) identifier_self
(identifier__padding_token) identifier__padding_token
)attribute
)comparison_operator
(integer_0) integer_0
)conditional_expression
)assignment
)expression_statement
(for_statement
(identifier_i) identifier_i
(call
(identifier_range) identifier_range
(argument_list
(identifier_start_index) identifier_start_index
(identifier_num_tokens) identifier_num_tokens
)argument_list
)call
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(subscript
(identifier_mapping) identifier_mapping
(identifier_i) identifier_i
)subscript
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_'\n') string_'\n'
(string_'@@NEWLINE@@') string_'@@NEWLINE@@'
)argument_list
)call
(keyword_argument
(identifier_file) identifier_file
(identifier_token_file) identifier_token_file
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)with_statement
)block
)for_statement
)block
)function_definition
)module | Persist this Vocabulary to files so it can be reloaded later.
Each namespace corresponds to one file.
Parameters
----------
directory : ``str``
The directory where we save the serialized vocabulary. |
(module
(function_definition
(function_name__shorten_render) function_name__shorten_render
(parameters
(identifier_renderer) identifier_renderer
(identifier_max_len) identifier_max_len
)parameters
(block
(function_definition
(function_name_short_renderer) function_name_short_renderer
(parameters
(identifier_expr) identifier_expr
)parameters
(block
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(identifier_renderer) identifier_renderer
(argument_list
(identifier_expr) identifier_expr
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_res) identifier_res
)argument_list
)call
(identifier_max_len) identifier_max_len
)comparison_operator
(block
(return_statement
(string_'...') string_'...'
)return_statement
)block
(else_clause
(block
(return_statement
(identifier_res) identifier_res
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
(return_statement
(identifier_short_renderer) identifier_short_renderer
)return_statement
)block
)function_definition
)module | Return a modified that returns the representation of expr, or '...' if
that representation is longer than `max_len` |
(module
(function_definition
(function_name_executable_path) function_name_executable_path
(parameters
(identifier_conn) identifier_conn
(identifier_executable) identifier_executable
)parameters
(block
(expression_statement
(assignment
(identifier_executable_path) identifier_executable_path
(call
(attribute
(attribute
(identifier_conn) identifier_conn
(identifier_remote_module) identifier_remote_module
)attribute
(identifier_which) identifier_which
)attribute
(argument_list
(identifier_executable) identifier_executable
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_executable_path) identifier_executable_path
)not_operator
(block
(raise_statement
(call
(identifier_ExecutableNotFound) identifier_ExecutableNotFound
(argument_list
(identifier_executable) identifier_executable
(attribute
(identifier_conn) identifier_conn
(identifier_hostname) identifier_hostname
)attribute
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(identifier_executable_path) identifier_executable_path
)return_statement
)block
)function_definition
)module | Remote validator that accepts a connection object to ensure that a certain
executable is available returning its full path if so.
Otherwise an exception with thorough details will be raised, informing the
user that the executable was not found. |
(module
(function_definition
(function_name_match_case_tokens) function_name_match_case_tokens
(parameters
(identifier_loc) identifier_loc
(identifier_tokens) identifier_tokens
(identifier_check_var) identifier_check_var
(identifier_top) identifier_top
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_tokens) identifier_tokens
)argument_list
)call
(integer_2) integer_2
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_matches) identifier_matches
(identifier_stmts) identifier_stmts
)pattern_list
(identifier_tokens) identifier_tokens
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_cond) identifier_cond
(None) None
)assignment
)expression_statement
)block
(elif_clause
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_tokens) identifier_tokens
)argument_list
)call
(integer_3) integer_3
)comparison_operator
(block
(expression_statement
(assignment
(pattern_list
(identifier_matches) identifier_matches
(identifier_cond) identifier_cond
(identifier_stmts) identifier_stmts
)pattern_list
(identifier_tokens) identifier_tokens
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_CoconutInternalException) identifier_CoconutInternalException
(argument_list
(string_"invalid case match tokens") string_"invalid case match tokens"
(identifier_tokens) identifier_tokens
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_matching) identifier_matching
(call
(identifier_Matcher) identifier_Matcher
(argument_list
(identifier_loc) identifier_loc
(identifier_check_var) identifier_check_var
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_matching) identifier_matching
(identifier_match) identifier_match
)attribute
(argument_list
(identifier_matches) identifier_matches
(identifier_match_to_var) identifier_match_to_var
)argument_list
)call
)expression_statement
(if_statement
(identifier_cond) identifier_cond
(block
(expression_statement
(call
(attribute
(identifier_matching) identifier_matching
(identifier_add_guard) identifier_add_guard
)attribute
(argument_list
(identifier_cond) identifier_cond
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_matching) identifier_matching
(identifier_build) identifier_build
)attribute
(argument_list
(identifier_stmts) identifier_stmts
(keyword_argument
(identifier_set_check_var) identifier_set_check_var
(identifier_top) identifier_top
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Build code for matching the given case. |
(module
(function_definition
(function_name_bytes_to_string) function_name_bytes_to_string
(parameters
(typed_parameter
(identifier_raw_data) identifier_raw_data
(type
(identifier_bytes) identifier_bytes
)type
)typed_parameter
(typed_default_parameter
(identifier_prefix) identifier_prefix
(type
(identifier_bool) identifier_bool
)type
(False) False
)typed_default_parameter
)parameters
(type
(identifier_str) identifier_str
)type
(block
(expression_statement
(assignment
(identifier_prefix_string) identifier_prefix_string
(string_'') string_''
)assignment
)expression_statement
(if_statement
(identifier_prefix) identifier_prefix
(block
(expression_statement
(assignment
(identifier_prefix_string) identifier_prefix_string
(string_'0x') string_'0x'
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_suffix) identifier_suffix
(call
(attribute
(string_'') string_''
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(identifier_format) identifier_format
(argument_list
(identifier_c) identifier_c
(string_"02x") string_"02x"
)argument_list
)call
(for_in_clause
(identifier_c) identifier_c
(identifier_raw_data) identifier_raw_data
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(identifier_prefix_string) identifier_prefix_string
(call
(attribute
(identifier_suffix) identifier_suffix
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | Convert a byte array to a hex string. |
(module
(function_definition
(function_name_list_releases) function_name_list_releases
(parameters
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(call
(attribute
(identifier_PYPI_URL) identifier_PYPI_URL
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_package) identifier_package
(identifier_PYPI_PACKAGE_NAME) identifier_PYPI_PACKAGE_NAME
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_response) identifier_response
(block
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_releases_dict) identifier_releases_dict
(call
(attribute
(identifier_data) identifier_data
(identifier_get) identifier_get
)attribute
(argument_list
(string_'releases') string_'releases'
(dictionary
)dictionary
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_releases_dict) identifier_releases_dict
(block
(for_statement
(pattern_list
(identifier_version) identifier_version
(identifier_release) identifier_release
)pattern_list
(call
(attribute
(identifier_releases_dict) identifier_releases_dict
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_release_formats) identifier_release_formats
(list
)list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_published_on_date) identifier_published_on_date
(None) None
)assignment
)expression_statement
(for_statement
(identifier_fmt) identifier_fmt
(identifier_release) identifier_release
(block
(expression_statement
(call
(attribute
(identifier_release_formats) identifier_release_formats
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_fmt) identifier_fmt
(identifier_get) identifier_get
)attribute
(argument_list
(string_'packagetype') string_'packagetype'
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_published_on_date) identifier_published_on_date
(call
(attribute
(identifier_fmt) identifier_fmt
(identifier_get) identifier_get
)attribute
(argument_list
(string_'upload_time') string_'upload_time'
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_release_formats) identifier_release_formats
(call
(attribute
(string_' | ') string_' | '
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_release_formats) identifier_release_formats
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_'{:<10}{:>15}{:>25}') string_'{:<10}{:>15}{:>25}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_version) identifier_version
(identifier_published_on_date) identifier_published_on_date
(identifier_release_formats) identifier_release_formats
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_'No releases found for {}') string_'No releases found for {}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_PYPI_PACKAGE_NAME) identifier_PYPI_PACKAGE_NAME
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(call
(attribute
(string_'Package "{}" not found on Pypi.org') string_'Package "{}" not found on Pypi.org'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_PYPI_PACKAGE_NAME) identifier_PYPI_PACKAGE_NAME
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Lists all releases published on pypi. |
(module
(function_definition
(function_name_make_hmap) function_name_make_hmap
(parameters
(identifier_pmap) identifier_pmap
(identifier_imtls) identifier_imtls
(identifier_poes) identifier_poes
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_M) identifier_M
(identifier_P) identifier_P
)pattern_list
(expression_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_imtls) identifier_imtls
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(identifier_poes) identifier_poes
)argument_list
)call
)expression_list
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_hmap) identifier_hmap
(call
(attribute
(attribute
(identifier_probability_map) identifier_probability_map
(identifier_ProbabilityMap) identifier_ProbabilityMap
)attribute
(identifier_build) identifier_build
)attribute
(argument_list
(identifier_M) identifier_M
(identifier_P) identifier_P
(identifier_pmap) identifier_pmap
(keyword_argument
(identifier_dtype) identifier_dtype
(identifier_F32) identifier_F32
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_pmap) identifier_pmap
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(identifier_hmap) identifier_hmap
)return_statement
)block
)if_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_imt) identifier_imt
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_imtls) identifier_imtls
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_curves) identifier_curves
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_array) identifier_array
)attribute
(argument_list
(list_comprehension
(subscript
(attribute
(subscript
(identifier_pmap) identifier_pmap
(identifier_sid) identifier_sid
)subscript
(identifier_array) identifier_array
)attribute
(call
(identifier_imtls) identifier_imtls
(argument_list
(identifier_imt) identifier_imt
)argument_list
)call
(integer_0) integer_0
)subscript
(for_in_clause
(identifier_sid) identifier_sid
(attribute
(identifier_pmap) identifier_pmap
(identifier_sids) identifier_sids
)attribute
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(identifier_compute_hazard_maps) identifier_compute_hazard_maps
(argument_list
(identifier_curves) identifier_curves
(subscript
(identifier_imtls) identifier_imtls
(identifier_imt) identifier_imt
)subscript
(identifier_poes) identifier_poes
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_sid) identifier_sid
(identifier_value) identifier_value
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(attribute
(identifier_pmap) identifier_pmap
(identifier_sids) identifier_sids
)attribute
(identifier_data) identifier_data
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_array) identifier_array
(attribute
(subscript
(identifier_hmap) identifier_hmap
(identifier_sid) identifier_sid
)subscript
(identifier_array) identifier_array
)attribute
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_j) identifier_j
(identifier_val) identifier_val
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_array) identifier_array
(identifier_i) identifier_i
(identifier_j) identifier_j
)subscript
(identifier_val) identifier_val
)assignment
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)for_statement
(return_statement
(identifier_hmap) identifier_hmap
)return_statement
)block
)function_definition
)module | Compute the hazard maps associated to the passed probability map.
:param pmap: hazard curves in the form of a ProbabilityMap
:param imtls: DictArray with M intensity measure types
:param poes: P PoEs where to compute the maps
:returns: a ProbabilityMap with size (N, M, P) |
(module
(function_definition
(function_name_alter_poms) function_name_alter_poms
(parameters
(identifier_pom_dir) identifier_pom_dir
(identifier_additional_params) identifier_additional_params
(default_parameter
(identifier_repo_url) identifier_repo_url
(None) None
)default_parameter
(default_parameter
(identifier_mvn_repo_local) identifier_mvn_repo_local
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_work_dir) identifier_work_dir
(call
(attribute
(identifier_os) identifier_os
(identifier_getcwd) identifier_getcwd
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_chdir) identifier_chdir
)attribute
(argument_list
(identifier_pom_dir) identifier_pom_dir
)argument_list
)call
)expression_statement
(try_statement
(block
(if_statement
(identifier_repo_url) identifier_repo_url
(block
(expression_statement
(assignment
(identifier_settings_filename) identifier_settings_filename
(call
(identifier_create_mirror_settings) identifier_create_mirror_settings
(argument_list
(identifier_repo_url) identifier_repo_url
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_settings_filename) identifier_settings_filename
(None) None
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_args) identifier_args
(list
(string_"mvn") string_"mvn"
(string_"clean") string_"clean"
)list
)assignment
)expression_statement
(if_statement
(identifier_mvn_repo_local) identifier_mvn_repo_local
(block
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_extend) identifier_extend
)attribute
(argument_list
(list
(string_"-s") string_"-s"
(identifier_settings_filename) identifier_settings_filename
)list
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(identifier_mvn_repo_local) identifier_mvn_repo_local
(block
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_append) identifier_append
)attribute
(argument_list
(binary_operator
(string_"-Dmaven.repo.local=%s") string_"-Dmaven.repo.local=%s"
(identifier_mvn_repo_local) identifier_mvn_repo_local
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_param_list) identifier_param_list
(call
(attribute
(identifier_additional_params) identifier_additional_params
(identifier_split) identifier_split
)attribute
(argument_list
(string_" ") string_" "
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_args) identifier_args
(identifier_extend) identifier_extend
)attribute
(argument_list
(identifier_param_list) identifier_param_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(string_"Running command: %s") string_"Running command: %s"
(call
(attribute
(string_" ") string_" "
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_args) identifier_args
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_command) identifier_command
(call
(identifier_Popen) identifier_Popen
(argument_list
(identifier_args) identifier_args
(keyword_argument
(identifier_stdout) identifier_stdout
(identifier_PIPE) identifier_PIPE
)keyword_argument
(keyword_argument
(identifier_stderr) identifier_stderr
(identifier_STDOUT) identifier_STDOUT
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stdout) identifier_stdout
(subscript
(call
(attribute
(identifier_command) identifier_command
(identifier_communicate) identifier_communicate
)attribute
(argument_list
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(if_statement
(attribute
(identifier_command) identifier_command
(identifier_returncode) identifier_returncode
)attribute
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_error) identifier_error
)attribute
(argument_list
(binary_operator
(string_"POM manipulation failed. Output:\n%s") string_"POM manipulation failed. Output:\n%s"
(identifier_stdout) identifier_stdout
)binary_operator
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_debug) identifier_debug
)attribute
(argument_list
(binary_operator
(string_"POM manipulation succeeded. Output:\n%s") string_"POM manipulation succeeded. Output:\n%s"
(identifier_stdout) identifier_stdout
)binary_operator
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
(finally_clause
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_chdir) identifier_chdir
)attribute
(argument_list
(identifier_work_dir) identifier_work_dir
)argument_list
)call
)expression_statement
)block
)finally_clause
)try_statement
)block
)function_definition
)module | Runs mvn clean command with provided additional parameters to perform pom updates by pom-manipulation-ext. |
(module
(function_definition
(function_name_render) function_name_render
(parameters
(identifier_self) identifier_self
(identifier_hosts) identifier_hosts
(default_parameter
(identifier_vars) identifier_vars
(dictionary
)dictionary
)default_parameter
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tpl_file) identifier_tpl_file
)attribute
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_".tpl") string_".tpl"
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__render_mako) identifier__render_mako
)attribute
(argument_list
(identifier_hosts) identifier_hosts
(identifier_vars) identifier_vars
)argument_list
)call
)return_statement
)block
(elif_clause
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_tpl_file) identifier_tpl_file
)attribute
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_".py") string_".py"
)argument_list
)call
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__render_py) identifier__render_py
)attribute
(argument_list
(identifier_hosts) identifier_hosts
(identifier_vars) identifier_vars
)argument_list
)call
)return_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(call
(attribute
(string_"Don't know how to handle '{0}'") string_"Don't know how to handle '{0}'"
(identifier_format) identifier_format
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_tpl_file) identifier_tpl_file
)attribute
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Render a mako or .py file. |
(module
(function_definition
(function_name_dump_database) function_name_dump_database
(parameters
(identifier_id) identifier_id
)parameters
(block
(expression_statement
(assignment
(identifier_tmp_dir) identifier_tmp_dir
(call
(attribute
(identifier_tempfile) identifier_tempfile
(identifier_mkdtemp) identifier_mkdtemp
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_current_dir) identifier_current_dir
(call
(attribute
(identifier_os) identifier_os
(identifier_getcwd) identifier_getcwd
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_chdir) identifier_chdir
)attribute
(argument_list
(identifier_tmp_dir) identifier_tmp_dir
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_FNULL) identifier_FNULL
(call
(identifier_open) identifier_open
(argument_list
(attribute
(identifier_os) identifier_os
(identifier_devnull) identifier_devnull
)attribute
(string_"w") string_"w"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_heroku_app) identifier_heroku_app
(call
(identifier_HerokuApp) identifier_HerokuApp
(argument_list
(keyword_argument
(identifier_dallinger_uid) identifier_dallinger_uid
(identifier_id) identifier_id
)keyword_argument
(keyword_argument
(identifier_output) identifier_output
(identifier_FNULL) identifier_FNULL
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_heroku_app) identifier_heroku_app
(identifier_backup_capture) identifier_backup_capture
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_heroku_app) identifier_heroku_app
(identifier_backup_download) identifier_backup_download
)attribute
(argument_list
)argument_list
)call
)expression_statement
(for_statement
(identifier_filename) identifier_filename
(call
(attribute
(identifier_os) identifier_os
(identifier_listdir) identifier_listdir
)attribute
(argument_list
(identifier_tmp_dir) identifier_tmp_dir
)argument_list
)call
(block
(if_statement
(call
(attribute
(identifier_filename) identifier_filename
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_"latest.dump") string_"latest.dump"
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_rename) identifier_rename
)attribute
(argument_list
(identifier_filename) identifier_filename
(string_"database.dump") string_"database.dump"
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_chdir) identifier_chdir
)attribute
(argument_list
(identifier_current_dir) identifier_current_dir
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_tmp_dir) identifier_tmp_dir
(string_"database.dump") string_"database.dump"
)argument_list
)call
)return_statement
)block
)function_definition
)module | Dump the database to a temporary directory. |
(module
(function_definition
(function_name__normalize_words) function_name__normalize_words
(parameters
(identifier_words) identifier_words
(identifier_acronyms) identifier_acronyms
)parameters
(block
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier__) identifier__
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_words) identifier_words
)argument_list
)call
(block
(if_statement
(comparison_operator
(call
(attribute
(subscript
(identifier_words) identifier_words
(identifier_i) identifier_i
)subscript
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
(identifier_acronyms) identifier_acronyms
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(identifier_words) identifier_words
(identifier_i) identifier_i
)subscript
(call
(attribute
(subscript
(identifier_words) identifier_words
(identifier_i) identifier_i
)subscript
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(if_statement
(not_operator
(call
(attribute
(subscript
(identifier_words) identifier_words
(identifier_i) identifier_i
)subscript
(identifier_isupper) identifier_isupper
)attribute
(argument_list
)argument_list
)call
)not_operator
(block
(expression_statement
(assignment
(subscript
(identifier_words) identifier_words
(identifier_i) identifier_i
)subscript
(call
(attribute
(subscript
(identifier_words) identifier_words
(identifier_i) identifier_i
)subscript
(identifier_capitalize) identifier_capitalize
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_words) identifier_words
)return_statement
)block
)function_definition
)module | Normalize case of each word to PascalCase. |
(module
(function_definition
(function_name_find_path_package_name) function_name_find_path_package_name
(parameters
(identifier_thepath) identifier_thepath
)parameters
(block
(expression_statement
(assignment
(identifier_module_found) identifier_module_found
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_last_module_found) identifier_last_module_found
(None) None
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_continue_) identifier_continue_
(True) True
)assignment
)expression_statement
(while_statement
(identifier_continue_) identifier_continue_
(block
(expression_statement
(assignment
(identifier_module_found) identifier_module_found
(call
(identifier_is_path_python_module) identifier_is_path_python_module
(argument_list
(identifier_thepath) identifier_thepath
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_next_path) identifier_next_path
(call
(attribute
(identifier_path) identifier_path
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_thepath) identifier_thepath
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_next_path) identifier_next_path
(identifier_thepath) identifier_thepath
)comparison_operator
(block
(expression_statement
(assignment
(identifier_continue_) identifier_continue_
(False) False
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_module_found) identifier_module_found
(block
(expression_statement
(assignment
(identifier_init_names) identifier_init_names
(list_comprehension
(binary_operator
(string_'__init__%s') string_'__init__%s'
(call
(attribute
(identifier_suffix) identifier_suffix
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)binary_operator
(for_in_clause
(identifier_suffix) identifier_suffix
(identifier__py_suffixes) identifier__py_suffixes
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(attribute
(call
(attribute
(identifier_path) identifier_path
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_thepath) identifier_thepath
)argument_list
)call
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(identifier_init_names) identifier_init_names
)comparison_operator
(block
(expression_statement
(assignment
(identifier_last_module_found) identifier_last_module_found
(call
(attribute
(identifier_path) identifier_path
(identifier_basename) identifier_basename
)attribute
(argument_list
(call
(attribute
(identifier_path) identifier_path
(identifier_dirname) identifier_dirname
)attribute
(argument_list
(identifier_thepath) identifier_thepath
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_last_module_found) identifier_last_module_found
(call
(attribute
(identifier_path) identifier_path
(identifier_basename) identifier_basename
)attribute
(argument_list
(identifier_thepath) identifier_thepath
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)if_statement
(if_statement
(boolean_operator
(identifier_last_module_found) identifier_last_module_found
(not_operator
(identifier_module_found) identifier_module_found
)not_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_continue_) identifier_continue_
(False) False
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_thepath) identifier_thepath
(identifier_next_path) identifier_next_path
)assignment
)expression_statement
)block
)while_statement
(return_statement
(identifier_last_module_found) identifier_last_module_found
)return_statement
)block
)function_definition
)module | Takes a file system path and returns the name of the python package
the said path belongs to. If the said path can not be determined, it
returns None. |
(module
(function_definition
(function_name_bodc2s) function_name_bodc2s
(parameters
(identifier_code) identifier_code
(default_parameter
(identifier_lenout) identifier_lenout
(identifier__default_len_out) identifier__default_len_out
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_code) identifier_code
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_int) identifier_c_int
)attribute
(argument_list
(identifier_code) identifier_code
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_stringToCharP) identifier_stringToCharP
)attribute
(argument_list
(binary_operator
(string_" ") string_" "
(identifier_lenout) identifier_lenout
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_lenout) identifier_lenout
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_int) identifier_c_int
)attribute
(argument_list
(identifier_lenout) identifier_lenout
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_libspice) identifier_libspice
(identifier_bodc2s_c) identifier_bodc2s_c
)attribute
(argument_list
(identifier_code) identifier_code
(identifier_lenout) identifier_lenout
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
(return_statement
(call
(attribute
(identifier_stypes) identifier_stypes
(identifier_toPythonString) identifier_toPythonString
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)return_statement
)block
)function_definition
)module | Translate a body ID code to either the corresponding name or if no
name to ID code mapping exists, the string representation of the
body ID value.
http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/bodc2s_c.html
:param code: Integer ID code to translate to a string.
:type code: int
:param lenout: Maximum length of output name.
:type lenout: int
:return: String corresponding to 'code'.
:rtype: str |
(module
(function_definition
(function_name_excel_key) function_name_excel_key
(parameters
(identifier_index) identifier_index
)parameters
(block
(expression_statement
(assignment
(identifier_X) identifier_X
(lambda
(lambda_parameters
(identifier_n) identifier_n
)lambda_parameters
(boolean_operator
(boolean_operator
(unary_operator
(identifier_n) identifier_n
)unary_operator
(binary_operator
(call
(identifier_X) identifier_X
(argument_list
(binary_operator
(parenthesized_expression
(binary_operator
(identifier_n) identifier_n
(integer_26) integer_26
)binary_operator
)parenthesized_expression
(integer_1) integer_1
)binary_operator
)argument_list
)call
(call
(identifier_chr) identifier_chr
(argument_list
(binary_operator
(integer_65) integer_65
(parenthesized_expression
(binary_operator
(identifier_n) identifier_n
(integer_26) integer_26
)binary_operator
)parenthesized_expression
)binary_operator
)argument_list
)call
)binary_operator
)boolean_operator
(string_'') string_''
)boolean_operator
)lambda
)assignment
)expression_statement
(return_statement
(call
(identifier_X) identifier_X
(argument_list
(call
(identifier_int) identifier_int
(argument_list
(identifier_index) identifier_index
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | create a key for index by converting index into a base-26 number, using A-Z as the characters. |
(module
(function_definition
(function_name_save_summaries) function_name_save_summaries
(parameters
(identifier_frames) identifier_frames
(identifier_keys) identifier_keys
(identifier_selected_summaries) identifier_selected_summaries
(identifier_batch_dir) identifier_batch_dir
(identifier_batch_name) identifier_batch_name
)parameters
(block
(if_statement
(not_operator
(identifier_frames) identifier_frames
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Could save summaries - no summaries to save!") string_"Could save summaries - no summaries to save!"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"You have no frames - aborting") string_"You have no frames - aborting"
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)if_statement
(if_statement
(not_operator
(identifier_keys) identifier_keys
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"Could save summaries - no summaries to save!") string_"Could save summaries - no summaries to save!"
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"You have no keys - aborting") string_"You have no keys - aborting"
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_selected_summaries_dict) identifier_selected_summaries_dict
(call
(identifier_create_selected_summaries_dict) identifier_create_selected_summaries_dict
(argument_list
(identifier_selected_summaries) identifier_selected_summaries
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_summary_df) identifier_summary_df
(call
(attribute
(identifier_pd) identifier_pd
(identifier_concat) identifier_concat
)attribute
(argument_list
(identifier_frames) identifier_frames
(keyword_argument
(identifier_keys) identifier_keys
(identifier_keys) identifier_keys
)keyword_argument
(keyword_argument
(identifier_axis) identifier_axis
(integer_1) integer_1
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_value) identifier_value
)pattern_list
(call
(attribute
(identifier_selected_summaries_dict) identifier_selected_summaries_dict
(identifier_items) identifier_items
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier__summary_file_name) identifier__summary_file_name
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_batch_dir) identifier_batch_dir
(binary_operator
(string_"summary_%s_%s.csv") string_"summary_%s_%s.csv"
(tuple
(identifier_key) identifier_key
(identifier_batch_name) identifier_batch_name
)tuple
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__summary_df) identifier__summary_df
(subscript
(attribute
(identifier_summary_df) identifier_summary_df
(identifier_iloc) identifier_iloc
)attribute
(slice
(colon) colon
)slice
(comparison_operator
(call
(attribute
(attribute
(identifier_summary_df) identifier_summary_df
(identifier_columns) identifier_columns
)attribute
(identifier_get_level_values) identifier_get_level_values
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
(identifier_value) identifier_value
)comparison_operator
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__header) identifier__header
(attribute
(identifier__summary_df) identifier__summary_df
(identifier_columns) identifier_columns
)attribute
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier__summary_df) identifier__summary_df
(identifier_to_csv) identifier_to_csv
)attribute
(argument_list
(identifier__summary_file_name) identifier__summary_file_name
(keyword_argument
(identifier_sep) identifier_sep
(string_";") string_";"
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(binary_operator
(string_"saved summary (%s) to:\n %s") string_"saved summary (%s) to:\n %s"
(tuple
(identifier_key) identifier_key
(identifier__summary_file_name) identifier__summary_file_name
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_"finished saving summaries") string_"finished saving summaries"
)argument_list
)call
)expression_statement
(return_statement
(identifier_summary_df) identifier_summary_df
)return_statement
)block
)function_definition
)module | Writes the summaries to csv-files
Args:
frames: list of ``cellpy`` summary DataFrames
keys: list of indexes (typically run-names) for the different runs
selected_summaries: list defining which summary data to save
batch_dir: directory to save to
batch_name: the batch name (will be used for making the file-name(s))
Returns: a pandas DataFrame with your selected summaries. |
(module
(function_definition
(function_name_write_to_file) function_name_write_to_file
(parameters
(identifier_path) identifier_path
(identifier_contents) identifier_contents
(default_parameter
(identifier_file_type) identifier_file_type
(string_'text') string_'text'
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_FILE_TYPES) identifier_FILE_TYPES
(tuple
(string_'json') string_'json'
(string_'text') string_'text'
(string_'binary') string_'binary'
)tuple
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_file_type) identifier_file_type
(identifier_FILE_TYPES) identifier_FILE_TYPES
)comparison_operator
(block
(raise_statement
(call
(identifier_ScriptWorkerException) identifier_ScriptWorkerException
(argument_list
(call
(attribute
(string_"Unknown file_type {} not in {}!") string_"Unknown file_type {} not in {}!"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_file_type) identifier_file_type
(identifier_FILE_TYPES) identifier_FILE_TYPES
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_file_type) identifier_file_type
(string_'json') string_'json'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_contents) identifier_contents
(call
(identifier_format_json) identifier_format_json
(argument_list
(identifier_contents) identifier_contents
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_file_type) identifier_file_type
(string_'binary') string_'binary'
)comparison_operator
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_path) identifier_path
(string_'wb') string_'wb'
)argument_list
)call
(as_pattern_target
(identifier_fh) identifier_fh
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(attribute
(identifier_fh) identifier_fh
(identifier_write) identifier_write
)attribute
(argument_list
(identifier_contents) identifier_contents
)argument_list
)call
)expression_statement
)block
)with_statement
)block
(else_clause
(block
(with_statement
(with_clause
(with_item
(as_pattern
(call
(identifier_open) identifier_open
(argument_list
(identifier_path) identifier_path
(string_'w') string_'w'
)argument_list
)call
(as_pattern_target
(identifier_fh) identifier_fh
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(identifier_contents) identifier_contents
(keyword_argument
(identifier_file) identifier_file
(identifier_fh) identifier_fh
)keyword_argument
(keyword_argument
(identifier_end) identifier_end
(string_"") string_""
)keyword_argument
)argument_list
)call
)expression_statement
)block
)with_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Write ``contents`` to ``path`` with optional formatting.
Small helper function to write ``contents`` to ``file`` with optional formatting.
Args:
path (str): the path to write to
contents (str, object, or bytes): the contents to write to the file
file_type (str, optional): the type of file. Currently accepts
``text`` or ``binary`` (contents are unchanged) or ``json`` (contents
are formatted). Defaults to ``text``.
Raises:
ScriptWorkerException: with an unknown ``file_type``
TypeError: if ``file_type`` is ``json`` and ``contents`` isn't JSON serializable |
(module
(function_definition
(function_name_register_writer) function_name_register_writer
(parameters
(identifier_klass) identifier_klass
)parameters
(block
(if_statement
(not_operator
(call
(identifier_callable) identifier_callable
(argument_list
(identifier_klass) identifier_klass
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Can only register callables as engines") string_"Can only register callables as engines"
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_engine_name) identifier_engine_name
(attribute
(identifier_klass) identifier_klass
(identifier_engine) identifier_engine
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier__writers) identifier__writers
(identifier_engine_name) identifier_engine_name
)subscript
(identifier_klass) identifier_klass
)assignment
)expression_statement
)block
)function_definition
)module | Add engine to the excel writer registry.io.excel.
You must use this method to integrate with ``to_excel``.
Parameters
----------
klass : ExcelWriter |
(module
(function_definition
(function_name_add_path_to_sys_path) function_name_add_path_to_sys_path
(parameters
(identifier_self) identifier_self
)parameters
(block
(for_statement
(identifier_path) identifier_path
(call
(identifier_reversed) identifier_reversed
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_get_spyder_pythonpath) identifier_get_spyder_pythonpath
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
(block
(expression_statement
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_path) identifier_path
)attribute
(identifier_insert) identifier_insert
)attribute
(argument_list
(integer_1) integer_1
(identifier_path) identifier_path
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Add Spyder path to sys.path |
(module
(function_definition
(function_name_zero) function_name_zero
(parameters
(identifier_self) identifier_self
)parameters
(block
(function_definition
(function_name_zero_vec) function_name_zero_vec
(parameters
(identifier_x) identifier_x
(default_parameter
(identifier_out) identifier_out
(None) None
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(call
(identifier_is_valid_input_meshgrid) identifier_is_valid_input_meshgrid
(argument_list
(identifier_x) identifier_x
(attribute
(attribute
(identifier_self) identifier_self
(identifier_domain) identifier_domain
)attribute
(identifier_ndim) identifier_ndim
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_scalar_out_shape) identifier_scalar_out_shape
(call
(identifier_out_shape_from_meshgrid) identifier_out_shape_from_meshgrid
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)assignment
)expression_statement
)block
(elif_clause
(call
(identifier_is_valid_input_array) identifier_is_valid_input_array
(argument_list
(identifier_x) identifier_x
(attribute
(attribute
(identifier_self) identifier_self
(identifier_domain) identifier_domain
)attribute
(identifier_ndim) identifier_ndim
)attribute
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_scalar_out_shape) identifier_scalar_out_shape
(call
(identifier_out_shape_from_array) identifier_out_shape_from_array
(argument_list
(identifier_x) identifier_x
)argument_list
)call
)assignment
)expression_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_'invalid input type') string_'invalid input type'
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_out_shape) identifier_out_shape
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_out_shape) identifier_out_shape
)attribute
(identifier_scalar_out_shape) identifier_scalar_out_shape
)binary_operator
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_out) identifier_out
(None) None
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_np) identifier_np
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(identifier_out_shape) identifier_out_shape
(keyword_argument
(identifier_dtype) identifier_dtype
(attribute
(identifier_self) identifier_self
(identifier_scalar_out_dtype) identifier_scalar_out_dtype
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_fill_value) identifier_fill_value
(subscript
(call
(attribute
(identifier_np) identifier_np
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(integer_1) integer_1
(keyword_argument
(identifier_dtype) identifier_dtype
(attribute
(identifier_self) identifier_self
(identifier_scalar_out_dtype) identifier_scalar_out_dtype
)attribute
)keyword_argument
)argument_list
)call
(integer_0) integer_0
)subscript
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_out) identifier_out
(identifier_fill) identifier_fill
)attribute
(argument_list
(identifier_fill_value) identifier_fill_value
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)function_definition
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_element_type) identifier_element_type
)attribute
(argument_list
(identifier_self) identifier_self
(identifier_zero_vec) identifier_zero_vec
)argument_list
)call
)return_statement
)block
)function_definition
)module | Function mapping anything to zero. |
(module
(function_definition
(function_name_transform) function_name_transform
(parameters
(identifier_self) identifier_self
(identifier_raw_X) identifier_raw_X
(default_parameter
(identifier_y) identifier_y
(None) None
)default_parameter
)parameters
(block
(return_statement
(list_comprehension
(call
(attribute
(identifier_self) identifier_self
(identifier__extract_features) identifier__extract_features
)attribute
(argument_list
(identifier_sequence1) identifier_sequence1
(identifier_sequence2) identifier_sequence2
)argument_list
)call
(for_in_clause
(pattern_list
(identifier_sequence1) identifier_sequence1
(identifier_sequence2) identifier_sequence2
)pattern_list
(identifier_raw_X) identifier_raw_X
)for_in_clause
)list_comprehension
)return_statement
)block
)function_definition
)module | Transform sequence pairs to feature arrays that can be used as input to `Hacrf` models.
Parameters
----------
raw_X : List of (sequence1_n, sequence2_n) pairs, one for each training example n.
y : (ignored)
Returns
-------
X : List of numpy ndarrays, each with shape = (I_n, J_n, K), where I_n is the length of sequence1_n, J_n is the
length of sequence2_n, and K is the number of features.
Feature matrix list, for use with estimators or further transformers. |
(module
(function_definition
(function_name_set_nsxcontroller_port) function_name_set_nsxcontroller_port
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_name) identifier_name
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'name') string_'name'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_port) identifier_port
(call
(identifier_str) identifier_str
(argument_list
(call
(attribute
(identifier_kwargs) identifier_kwargs
(identifier_pop) identifier_pop
)attribute
(argument_list
(string_'port') string_'port'
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_port_args) identifier_port_args
(call
(identifier_dict) identifier_dict
(argument_list
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_port) identifier_port
(identifier_port) identifier_port
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_method_name) identifier_method_name
(string_'nsx_controller_connection_addr_port') string_'nsx_controller_connection_addr_port'
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_method_class) identifier_method_class
(attribute
(identifier_self) identifier_self
(identifier__brocade_tunnels) identifier__brocade_tunnels
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nsxcontroller_attr) identifier_nsxcontroller_attr
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_method_class) identifier_method_class
(identifier_method_name) identifier_method_name
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_config) identifier_config
(call
(identifier_nsxcontroller_attr) identifier_nsxcontroller_attr
(argument_list
(dictionary_splat
(identifier_port_args) identifier_port_args
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(attribute
(identifier_self) identifier_self
(identifier__callback) identifier__callback
)attribute
(argument_list
(identifier_config) identifier_config
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_output) identifier_output
)return_statement
)block
)function_definition
)module | Set Nsx Controller pot on the switch
Args:
port (int): 1 to 65535.
callback (function): A function executed upon completion of the
method.
Returns:
Return value of `callback`.
Raises:
None |
(module
(function_definition
(function_name_rms) function_name_rms
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_stride) identifier_stride
(integer_1) integer_1
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_stridesamp) identifier_stridesamp
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(identifier_stride) identifier_stride
(attribute
(attribute
(identifier_self) identifier_self
(identifier_sample_rate) identifier_sample_rate
)attribute
(identifier_value) identifier_value
)attribute
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_nsteps) identifier_nsteps
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_size) identifier_size
)attribute
(identifier_stridesamp) identifier_stridesamp
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_data) identifier_data
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_zeros) identifier_zeros
)attribute
(argument_list
(identifier_nsteps) identifier_nsteps
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_step) identifier_step
(call
(identifier_range) identifier_range
(argument_list
(identifier_nsteps) identifier_nsteps
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_idx) identifier_idx
(call
(identifier_int) identifier_int
(argument_list
(binary_operator
(identifier_stridesamp) identifier_stridesamp
(identifier_step) identifier_step
)binary_operator
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_idx_end) identifier_idx_end
(binary_operator
(identifier_idx) identifier_idx
(identifier_stridesamp) identifier_stridesamp
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_stepseries) identifier_stepseries
(subscript
(identifier_self) identifier_self
(slice
(identifier_idx) identifier_idx
(colon) colon
(identifier_idx_end) identifier_idx_end
)slice
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rms_) identifier_rms_
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_sqrt) identifier_sqrt
)attribute
(argument_list
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_mean) identifier_mean
)attribute
(argument_list
(binary_operator
(call
(attribute
(identifier_numpy) identifier_numpy
(identifier_abs) identifier_abs
)attribute
(argument_list
(attribute
(identifier_stepseries) identifier_stepseries
(identifier_value) identifier_value
)attribute
)argument_list
)call
(integer_2) integer_2
)binary_operator
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_data) identifier_data
(identifier_step) identifier_step
)subscript
(identifier_rms_) identifier_rms_
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(identifier_name) identifier_name
(binary_operator
(string_'%s %.2f-second RMS') string_'%s %.2f-second RMS'
(tuple
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(identifier_stride) identifier_stride
)tuple
)binary_operator
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(argument_list
(identifier_data) identifier_data
(keyword_argument
(identifier_channel) identifier_channel
(attribute
(identifier_self) identifier_self
(identifier_channel) identifier_channel
)attribute
)keyword_argument
(keyword_argument
(identifier_t0) identifier_t0
(attribute
(identifier_self) identifier_self
(identifier_t0) identifier_t0
)attribute
)keyword_argument
(keyword_argument
(identifier_name) identifier_name
(identifier_name) identifier_name
)keyword_argument
(keyword_argument
(identifier_sample_rate) identifier_sample_rate
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(call
(identifier_float) identifier_float
(argument_list
(identifier_stride) identifier_stride
)argument_list
)call
)binary_operator
)parenthesized_expression
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Calculate the root-mean-square value of this `TimeSeries`
once per stride.
Parameters
----------
stride : `float`
stride (seconds) between RMS calculations
Returns
-------
rms : `TimeSeries`
a new `TimeSeries` containing the RMS value with dt=stride |
(module
(function_definition
(function_name_confirm_push) function_name_confirm_push
(parameters
(identifier_self) identifier_self
(identifier_coord) identifier_coord
(identifier_version) identifier_version
)parameters
(block
(if_statement
(not_operator
(attribute
(call
(attribute
(identifier_self) identifier_self
(identifier_get_options) identifier_get_options
)attribute
(argument_list
)argument_list
)call
(identifier_prompt) identifier_prompt
)attribute
)not_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_isatty) identifier_isatty
(call
(attribute
(identifier_os) identifier_os
(identifier_isatty) identifier_isatty
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_sys) identifier_sys
(identifier_stdin) identifier_stdin
)attribute
(identifier_fileno) identifier_fileno
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(expression_statement
(assignment
(identifier_isatty) identifier_isatty
(False) False
)assignment
)expression_statement
)block
)except_clause
)try_statement
(if_statement
(not_operator
(identifier_isatty) identifier_isatty
)not_operator
(block
(return_statement
(True) True
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_push) identifier_push
(call
(identifier_input) identifier_input
(argument_list
(call
(attribute
(string_'\nPublish {} with revision {} ? [y|N] ') string_'\nPublish {} with revision {} ? [y|N] '
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_coord) identifier_coord
(identifier_version) identifier_version
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'\n') string_'\n'
)argument_list
)call
)expression_statement
(return_statement
(comparison_operator
(call
(attribute
(call
(attribute
(identifier_push) identifier_push
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
(string_'y') string_'y'
)comparison_operator
)return_statement
)block
)function_definition
)module | Ask the user if a push should be done for a particular version of a
particular coordinate. Return True if the push should be done |
(module
(function_definition
(function_name_save_plots) function_name_save_plots
(parameters
(identifier_self) identifier_self
(identifier_directory) identifier_directory
(default_parameter
(identifier_format) identifier_format
(string_"png") string_"png"
)default_parameter
(default_parameter
(identifier_recommended_only) identifier_recommended_only
(False) False
)default_parameter
)parameters
(block
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_session) identifier_session
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(block
(expression_statement
(call
(attribute
(identifier_session) identifier_session
(identifier_save_plots) identifier_save_plots
)attribute
(argument_list
(identifier_directory) identifier_directory
(keyword_argument
(identifier_prefix) identifier_prefix
(call
(identifier_str) identifier_str
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_format) identifier_format
(identifier_format) identifier_format
)keyword_argument
(keyword_argument
(identifier_recommended_only) identifier_recommended_only
(identifier_recommended_only) identifier_recommended_only
)keyword_argument
)argument_list
)call
)expression_statement
)block
)for_statement
)block
)function_definition
)module | Save images of dose-response curve-fits for each model.
Parameters
----------
directory : str
Directory where the PNG files will be saved.
format : str, optional
Image output format. Valid options include: png, pdf, svg, ps, eps
recommended_only : bool, optional
If True, only recommended models for each session are included. If
no model is recommended, then a row with it's ID will be included,
but all fields will be null.
Returns
-------
None |
(module
(function_definition
(function_name_lower_comparisons_to_between) function_name_lower_comparisons_to_between
(parameters
(identifier_match_query) identifier_match_query
)parameters
(block
(expression_statement
(assignment
(identifier_new_match_traversals) identifier_new_match_traversals
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_current_match_traversal) identifier_current_match_traversal
(attribute
(identifier_match_query) identifier_match_query
(identifier_match_traversals) identifier_match_traversals
)attribute
(block
(expression_statement
(assignment
(identifier_new_traversal) identifier_new_traversal
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_step) identifier_step
(identifier_current_match_traversal) identifier_current_match_traversal
(block
(if_statement
(attribute
(identifier_step) identifier_step
(identifier_where_block) identifier_where_block
)attribute
(block
(expression_statement
(assignment
(identifier_expression) identifier_expression
(attribute
(attribute
(identifier_step) identifier_step
(identifier_where_block) identifier_where_block
)attribute
(identifier_predicate) identifier_predicate
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_where_block) identifier_new_where_block
(call
(identifier_Filter) identifier_Filter
(argument_list
(call
(identifier__lower_expressions_to_between) identifier__lower_expressions_to_between
(argument_list
(identifier_expression) identifier_expression
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_new_traversal) identifier_new_traversal
(identifier_append) identifier_append
)attribute
(argument_list
(call
(attribute
(identifier_step) identifier_step
(identifier__replace) identifier__replace
)attribute
(argument_list
(keyword_argument
(identifier_where_block) identifier_where_block
(identifier_new_where_block) identifier_new_where_block
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(attribute
(identifier_new_traversal) identifier_new_traversal
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_step) identifier_step
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(expression_statement
(call
(attribute
(identifier_new_match_traversals) identifier_new_match_traversals
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_new_traversal) identifier_new_traversal
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(call
(attribute
(identifier_match_query) identifier_match_query
(identifier__replace) identifier__replace
)attribute
(argument_list
(keyword_argument
(identifier_match_traversals) identifier_match_traversals
(identifier_new_match_traversals) identifier_new_match_traversals
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a new MatchQuery, with all eligible comparison filters lowered to between clauses. |
(module
(function_definition
(function_name_reload) function_name_reload
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_r) identifier_r
(None) None
)default_parameter
(default_parameter
(identifier_pr) identifier_pr
(None) None
)default_parameter
(default_parameter
(identifier_timeout) identifier_timeout
(None) None
)default_parameter
(default_parameter
(identifier_basic_quorum) identifier_basic_quorum
(None) None
)default_parameter
(default_parameter
(identifier_notfound_ok) identifier_notfound_ok
(None) None
)default_parameter
(default_parameter
(identifier_head_only) identifier_head_only
(False) False
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_client) identifier_client
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_self) identifier_self
(keyword_argument
(identifier_r) identifier_r
(identifier_r) identifier_r
)keyword_argument
(keyword_argument
(identifier_pr) identifier_pr
(identifier_pr) identifier_pr
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
(keyword_argument
(identifier_head_only) identifier_head_only
(identifier_head_only) identifier_head_only
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(identifier_self) identifier_self
)return_statement
)block
)function_definition
)module | Reload the object from Riak. When this operation completes, the
object could contain new metadata and a new value, if the object
was updated in Riak since it was last retrieved.
.. note:: Even if the key is not found in Riak, this will
return a :class:`RiakObject`. Check the :attr:`exists`
property to see if the key was found.
:param r: R-Value, wait for this many partitions to respond
before returning to client.
:type r: integer
:param pr: PR-value, require this many primary partitions to
be available before performing the read that
precedes the put
:type pr: integer
:param timeout: a timeout value in milliseconds
:type timeout: int
:param basic_quorum: whether to use the "basic quorum" policy
for not-founds
:type basic_quorum: bool
:param notfound_ok: whether to treat not-found responses as successful
:type notfound_ok: bool
:param head_only: whether to fetch without value, so only metadata
(only available on PB transport)
:type head_only: bool
:rtype: :class:`RiakObject` |
(module
(function_definition
(function_name_rename_with_num) function_name_rename_with_num
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_prefix) identifier_prefix
(string_"") string_""
)default_parameter
(default_parameter
(identifier_new_path) identifier_new_path
(None) None
)default_parameter
(default_parameter
(identifier_remove_desc) identifier_remove_desc
(True) True
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_new_path) identifier_new_path
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_numbered) identifier_numbered
(call
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(argument_list
(call
(identifier_new_temp_path) identifier_new_temp_path
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_numbered) identifier_numbered
(call
(attribute
(identifier_self) identifier_self
(identifier___class__) identifier___class__
)attribute
(argument_list
(identifier_new_path) identifier_new_path
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(function_definition
(function_name_numbered_iterator) function_name_numbered_iterator
(parameters
)parameters
(block
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_read) identifier_read
)pattern_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_self) identifier_self
)argument_list
)call
(block
(expression_statement
(assignment
(attribute
(identifier_read) identifier_read
(identifier_id) identifier_id
)attribute
(binary_operator
(identifier_prefix) identifier_prefix
(call
(identifier_str) identifier_str
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)binary_operator
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_read) identifier_read
(identifier_seq) identifier_seq
)attribute
(call
(attribute
(attribute
(identifier_read) identifier_read
(identifier_seq) identifier_seq
)attribute
(identifier_upper) identifier_upper
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_remove_desc) identifier_remove_desc
(block
(expression_statement
(assignment
(attribute
(identifier_read) identifier_read
(identifier_description) identifier_description
)attribute
(string_"") string_""
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(yield
(identifier_read) identifier_read
)yield
)expression_statement
)block
)for_statement
)block
)function_definition
(expression_statement
(call
(attribute
(identifier_numbered) identifier_numbered
(identifier_write) identifier_write
)attribute
(argument_list
(call
(identifier_numbered_iterator) identifier_numbered_iterator
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_numbered) identifier_numbered
(identifier_close) identifier_close
)attribute
(argument_list
)argument_list
)call
)expression_statement
(if_statement
(comparison_operator
(identifier_new_path) identifier_new_path
(None) None
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_remove) identifier_remove
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_shutil) identifier_shutil
(identifier_move) identifier_move
)attribute
(argument_list
(identifier_numbered) identifier_numbered
(attribute
(identifier_self) identifier_self
(identifier_path) identifier_path
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_numbered) identifier_numbered
)return_statement
)block
)function_definition
)module | Rename every sequence based on a prefix and a number. |
(module
(function_definition
(function_name__get_ann) function_name__get_ann
(parameters
(identifier_dbs) identifier_dbs
(identifier_features) identifier_features
)parameters
(block
(expression_statement
(assignment
(identifier_value) identifier_value
(string_"") string_""
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_db) identifier_db
(identifier_feature) identifier_feature
)pattern_list
(call
(identifier_zip) identifier_zip
(argument_list
(identifier_dbs) identifier_dbs
(identifier_features) identifier_features
)argument_list
)call
(block
(expression_statement
(augmented_assignment
(identifier_value) identifier_value
(binary_operator
(binary_operator
(identifier_db) identifier_db
(string_":") string_":"
)binary_operator
(identifier_feature) identifier_feature
)binary_operator
)augmented_assignment
)expression_statement
)block
)for_statement
(return_statement
(identifier_value) identifier_value
)return_statement
)block
)function_definition
)module | Gives format to annotation for html table output |
(module
(function_definition
(function_name_help) function_name_help
(parameters
(identifier_self) identifier_self
(list_splat_pattern
(identifier_args) identifier_args
)list_splat_pattern
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(identifier_args) identifier_args
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(identifier_help_msg) identifier_help_msg
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_which) identifier_which
(call
(attribute
(subscript
(identifier_args) identifier_args
(integer_0) integer_0
)subscript
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_which) identifier_which
(string_'ginga') string_'ginga'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_method) identifier_method
(subscript
(identifier_args) identifier_args
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__method) identifier__method
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_fv) identifier_fv
)attribute
(identifier_method) identifier_method
)argument_list
)call
)assignment
)expression_statement
(return_statement
(attribute
(identifier__method) identifier__method
(identifier___doc__) identifier___doc__
)attribute
)return_statement
)block
(elif_clause
(comparison_operator
(identifier_which) identifier_which
(string_'channel') string_'channel'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_chname) identifier_chname
(subscript
(identifier_args) identifier_args
(integer_1) integer_1
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_method) identifier_method
(subscript
(identifier_args) identifier_args
(integer_2) integer_2
)subscript
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_chinfo) identifier_chinfo
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_fv) identifier_fv
)attribute
(identifier_get_channel) identifier_get_channel
)attribute
(argument_list
(identifier_chname) identifier_chname
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier__method) identifier__method
(call
(identifier_getattr) identifier_getattr
(argument_list
(attribute
(identifier_chinfo) identifier_chinfo
(identifier_viewer) identifier_viewer
)attribute
(identifier_method) identifier_method
)argument_list
)call
)assignment
)expression_statement
(return_statement
(attribute
(identifier__method) identifier__method
(identifier___doc__) identifier___doc__
)attribute
)return_statement
)block
)elif_clause
(else_clause
(block
(return_statement
(parenthesized_expression
(concatenated_string
(string_"Please use 'help ginga <method>' or ") string_"Please use 'help ginga <method>' or "
(string_"'help channel <chname> <method>'") string_"'help channel <chname> <method>'"
)concatenated_string
)parenthesized_expression
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Get help for a remote interface method.
Examples
--------
help('ginga', `method`)
name of the method for which you want help
help('channel', `chname`, `method`)
name of the method in the channel for which you want help
Returns
-------
help : string
a help message |
(module
(function_definition
(function_name_get_attribute_references) function_name_get_attribute_references
(parameters
(identifier_instring) identifier_instring
)parameters
(block
(expression_statement
(assignment
(identifier_parsed) identifier_parsed
(call
(attribute
(attribute
(call
(identifier_ConditionGrammar) identifier_ConditionGrammar
(argument_list
)argument_list
)call
(identifier_conditions) identifier_conditions
)attribute
(identifier_parseString) identifier_parseString
)attribute
(argument_list
(identifier_instring) identifier_instring
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(conditional_expression
(identifier_parsed) identifier_parsed
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(subscript
(identifier_parsed) identifier_parsed
(integer_0) integer_0
)subscript
(identifier_str) identifier_str
)argument_list
)call
(subscript
(identifier_parsed) identifier_parsed
(integer_0) integer_0
)subscript
)conditional_expression
)assignment
)expression_statement
(return_statement
(conditional_expression
(call
(attribute
(attribute
(identifier_result) identifier_result
(identifier_attribute_reference) identifier_attribute_reference
)attribute
(identifier_asList) identifier_asList
)attribute
(argument_list
)argument_list
)call
(attribute
(identifier_result) identifier_result
(identifier_attribute_reference) identifier_attribute_reference
)attribute
(list
)list
)conditional_expression
)return_statement
)block
)function_definition
)module | Return a list of attribute references in the condition expression.
attribute_reference ::= relation_name "." attribute_name | attribute_name
:param instring: a condition expression.
:return: a list of attribute references. |
(module
(function_definition
(function_name_update) function_name_update
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_fmt) identifier_fmt
(dictionary
)dictionary
)default_parameter
(default_parameter
(identifier_replot) identifier_replot
(False) False
)default_parameter
(default_parameter
(identifier_auto_update) identifier_auto_update
(False) False
)default_parameter
(default_parameter
(identifier_draw) identifier_draw
(None) None
)default_parameter
(default_parameter
(identifier_force) identifier_force
(False) False
)default_parameter
(default_parameter
(identifier_todefault) identifier_todefault
(False) False
)default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_disabled) identifier_disabled
)attribute
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_fmt) identifier_fmt
(call
(identifier_dict) identifier_dict
(argument_list
(identifier_fmt) identifier_fmt
)argument_list
)call
)assignment
)expression_statement
(if_statement
(identifier_kwargs) identifier_kwargs
(block
(expression_statement
(call
(attribute
(identifier_fmt) identifier_fmt
(identifier_update) identifier_update
)attribute
(argument_list
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(not_operator
(attribute
(identifier_self) identifier_self
(identifier__initialized) identifier__initialized
)attribute
)not_operator
(block
(for_statement
(pattern_list
(identifier_key) identifier_key
(identifier_val) identifier_val
)pattern_list
(call
(attribute
(identifier_six) identifier_six
(identifier_iteritems) identifier_iteritems
)attribute
(argument_list
(identifier_fmt) identifier_fmt
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(identifier_self) identifier_self
(identifier_key) identifier_key
)subscript
(identifier_val) identifier_val
)assignment
)expression_statement
)block
)for_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__register_update) identifier__register_update
)attribute
(argument_list
(keyword_argument
(identifier_fmt) identifier_fmt
(identifier_fmt) identifier_fmt
)keyword_argument
(keyword_argument
(identifier_replot) identifier_replot
(identifier_replot) identifier_replot
)keyword_argument
(keyword_argument
(identifier_force) identifier_force
(identifier_force) identifier_force
)keyword_argument
(keyword_argument
(identifier_todefault) identifier_todefault
(identifier_todefault) identifier_todefault
)keyword_argument
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(not_operator
(attribute
(identifier_self) identifier_self
(identifier_no_auto_update) identifier_no_auto_update
)attribute
)not_operator
(identifier_auto_update) identifier_auto_update
)boolean_operator
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_start_update) identifier_start_update
)attribute
(argument_list
(keyword_argument
(identifier_draw) identifier_draw
(identifier_draw) identifier_draw
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)function_definition
)module | Update the formatoptions and the plot
If the :attr:`data` attribute of this plotter is None, the plotter is
updated like a usual dictionary (see :meth:`dict.update`). Otherwise
the update is registered and the plot is updated if `auto_update` is
True or if the :meth:`start_update` method is called (see below).
Parameters
----------
%(Plotter._register_update.parameters)s
%(InteractiveBase.start_update.parameters)s
%(InteractiveBase.update.parameters.auto_update)s
``**kwargs``
Any other formatoption that shall be updated (additionally to those
in `fmt`)
Notes
-----
%(InteractiveBase.update.notes)s |
(module
(function_definition
(function_name___metadata_helper) function_name___metadata_helper
(parameters
(identifier_json_path) identifier_json_path
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(attribute
(identifier_shakedown) identifier_shakedown
(identifier_dcos_url_path) identifier_dcos_url_path
)attribute
(argument_list
(call
(attribute
(string_'dcos-metadata/{}') string_'dcos-metadata/{}'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_json_path) identifier_json_path
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(attribute
(identifier_dcos) identifier_dcos
(identifier_http) identifier_http
)attribute
(identifier_request) identifier_request
)attribute
(argument_list
(string_'get') string_'get'
(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
)if_statement
)block
(except_clause
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(return_statement
(None) None
)return_statement
)block
)function_definition
)module | Returns json for specific cluster metadata. Important to realize that
this was introduced in dcos-1.9. Clusters prior to 1.9 and missing metadata
will return None |
(module
(function_definition
(function_name_get_required_kwonly_args) function_name_get_required_kwonly_args
(parameters
(identifier_argspecs) identifier_argspecs
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_kwonly) identifier_kwonly
(attribute
(identifier_argspecs) identifier_argspecs
(identifier_kwonlyargs) identifier_kwonlyargs
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_argspecs) identifier_argspecs
(identifier_kwonlydefaults) identifier_kwonlydefaults
)attribute
(None) None
)comparison_operator
(block
(return_statement
(identifier_kwonly) identifier_kwonly
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(list
)list
)assignment
)expression_statement
(for_statement
(identifier_name) identifier_name
(identifier_kwonly) identifier_kwonly
(block
(if_statement
(not_operator
(comparison_operator
(identifier_name) identifier_name
(attribute
(identifier_argspecs) identifier_argspecs
(identifier_kwonlydefaults) identifier_kwonlydefaults
)attribute
)comparison_operator
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_res) identifier_res
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(identifier_res) identifier_res
)return_statement
)block
(except_clause
(identifier_AttributeError) identifier_AttributeError
(block
(return_statement
(list
)list
)return_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Determines whether given argspecs implies required keywords-only args
and returns them as a list. Returns empty list if no such args exist. |
(module
(function_definition
(function_name_insert) function_name_insert
(parameters
(identifier_self) identifier_self
(identifier_tag) identifier_tag
(identifier_identifier) identifier_identifier
(identifier_parent) identifier_parent
(identifier_data) identifier_data
)parameters
(block
(if_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_global_plate_definitions) identifier_global_plate_definitions
)attribute
(identifier_contains) identifier_contains
)attribute
(argument_list
(identifier_identifier) identifier_identifier
)argument_list
)call
(block
(raise_statement
(call
(identifier_KeyError) identifier_KeyError
(argument_list
(call
(attribute
(string_"Identifier {} already exists in tree") string_"Identifier {} already exists in tree"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_identifier) identifier_identifier
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_global_plate_definitions) identifier_global_plate_definitions
)attribute
(identifier_create_node) identifier_create_node
)attribute
(argument_list
(keyword_argument
(identifier_tag) identifier_tag
(identifier_tag) identifier_tag
)keyword_argument
(keyword_argument
(identifier_identifier) identifier_identifier
(identifier_identifier) identifier_identifier
)keyword_argument
(keyword_argument
(identifier_parent) identifier_parent
(identifier_parent) identifier_parent
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
)argument_list
)call
)expression_statement
(with_statement
(with_clause
(with_item
(call
(identifier_switch_db) identifier_switch_db
(argument_list
(identifier_MetaDataModel) identifier_MetaDataModel
(string_'hyperstream') string_'hyperstream'
)argument_list
)call
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_meta_data) identifier_meta_data
(call
(identifier_MetaDataModel) identifier_MetaDataModel
(argument_list
(keyword_argument
(identifier_tag) identifier_tag
(identifier_tag) identifier_tag
)keyword_argument
(keyword_argument
(identifier_parent) identifier_parent
(identifier_parent) identifier_parent
)keyword_argument
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_meta_data) identifier_meta_data
(identifier_save) identifier_save
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_info) identifier_info
)attribute
(argument_list
(call
(attribute
(string_"Meta data {} inserted") string_"Meta data {} inserted"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_identifier) identifier_identifier
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Insert the given meta data into the database
:param tag: The tag (equates to meta_data_id)
:param identifier: The identifier (a combination of the meta_data_id and the plate value)
:param parent: The parent plate identifier
:param data: The data (plate value)
:return: None |
(module
(function_definition
(function_name_RunWMIQuery) function_name_RunWMIQuery
(parameters
(identifier_query) identifier_query
(default_parameter
(identifier_baseobj) identifier_baseobj
(string_r"winmgmts:\root\cimv2") string_r"winmgmts:\root\cimv2"
)default_parameter
)parameters
(block
(expression_statement
(call
(attribute
(identifier_pythoncom) identifier_pythoncom
(identifier_CoInitialize) identifier_CoInitialize
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_wmi_obj) identifier_wmi_obj
(call
(attribute
(attribute
(identifier_win32com) identifier_win32com
(identifier_client) identifier_client
)attribute
(identifier_GetObject) identifier_GetObject
)attribute
(argument_list
(identifier_baseobj) identifier_baseobj
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(attribute
(identifier_wmi_obj) identifier_wmi_obj
(identifier_Security_) identifier_Security_
)attribute
(identifier_Privileges) identifier_Privileges
)attribute
(identifier_AddAsString) identifier_AddAsString
)attribute
(argument_list
(string_"SeDebugPrivilege") string_"SeDebugPrivilege"
)argument_list
)call
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_query_results) identifier_query_results
(call
(attribute
(identifier_wmi_obj) identifier_wmi_obj
(identifier_ExecQuery) identifier_ExecQuery
)attribute
(argument_list
(identifier_query) identifier_query
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_pythoncom) identifier_pythoncom
(identifier_com_error) identifier_com_error
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(binary_operator
(string_"Failed to run WMI query \'%s\' err was %s") string_"Failed to run WMI query \'%s\' err was %s"
(tuple
(identifier_query) identifier_query
(identifier_e) identifier_e
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
(try_statement
(block
(for_statement
(identifier_result) identifier_result
(identifier_query_results) identifier_query_results
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_rdf_protodict) identifier_rdf_protodict
(identifier_Dict) identifier_Dict
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_properties) identifier_properties
(parenthesized_expression
(binary_operator
(call
(identifier_list) identifier_list
(argument_list
(attribute
(identifier_result) identifier_result
(identifier_Properties_) identifier_Properties_
)attribute
)argument_list
)call
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_getattr) identifier_getattr
(argument_list
(identifier_result) identifier_result
(string_"SystemProperties_") string_"SystemProperties_"
(list
)list
)argument_list
)call
)argument_list
)call
)binary_operator
)parenthesized_expression
)assignment
)expression_statement
(for_statement
(identifier_prop) identifier_prop
(identifier_properties) identifier_properties
(block
(if_statement
(comparison_operator
(attribute
(identifier_prop) identifier_prop
(identifier_Name) identifier_Name
)attribute
(identifier_IGNORE_PROPS) identifier_IGNORE_PROPS
)comparison_operator
(block
(expression_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_SetItem) identifier_SetItem
)attribute
(argument_list
(attribute
(identifier_prop) identifier_prop
(identifier_Name) identifier_Name
)attribute
(attribute
(identifier_prop) identifier_prop
(identifier_Value) identifier_Value
)attribute
(keyword_argument
(identifier_raise_on_error) identifier_raise_on_error
(False) False
)keyword_argument
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(expression_statement
(yield
(identifier_response) identifier_response
)yield
)expression_statement
)block
)for_statement
)block
(except_clause
(as_pattern
(attribute
(identifier_pythoncom) identifier_pythoncom
(identifier_com_error) identifier_com_error
)attribute
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_RuntimeError) identifier_RuntimeError
(argument_list
(binary_operator
(string_"WMI query data error on query \'%s\' err was %s") string_"WMI query data error on query \'%s\' err was %s"
(tuple
(identifier_e) identifier_e
(identifier_query) identifier_query
)tuple
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Run a WMI query and return a result.
Args:
query: the WMI query to run.
baseobj: the base object for the WMI query.
Yields:
rdf_protodict.Dicts containing key value pairs from the resulting COM
objects. |
(module
(function_definition
(function_name_condense) function_name_condense
(parameters
(identifier_input_string) identifier_input_string
)parameters
(block
(try_statement
(block
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_input_string) identifier_input_string
(identifier_basestring) identifier_basestring
)argument_list
)call
)assert_statement
)block
(except_clause
(identifier_AssertionError) identifier_AssertionError
(block
(raise_statement
(identifier_TypeError) identifier_TypeError
)raise_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_removed_leading_whitespace) identifier_removed_leading_whitespace
(call
(attribute
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_'>\s+') string_'>\s+'
(string_'>') string_'>'
(identifier_input_string) identifier_input_string
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_removed_trailing_whitespace) identifier_removed_trailing_whitespace
(call
(attribute
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_'\s+<') string_'\s+<'
(string_'<') string_'<'
(identifier_removed_leading_whitespace) identifier_removed_leading_whitespace
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_removed_trailing_whitespace) identifier_removed_trailing_whitespace
)return_statement
)block
)function_definition
)module | Trims leadings and trailing whitespace between tags in an html document
Args:
input_string: A (possible unicode) string representing HTML.
Returns:
A (possibly unicode) string representing HTML.
Raises:
TypeError: Raised if input_string isn't a unicode string or string. |
(module
(function_definition
(function_name_remove_if_same) function_name_remove_if_same
(parameters
(identifier_self) identifier_self
(identifier_key) identifier_key
(identifier_value) identifier_value
)parameters
(block
(expression_statement
(call
(identifier_check_not_none) identifier_check_not_none
(argument_list
(identifier_key) identifier_key
(string_"key can't be None") string_"key can't be None"
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_check_not_none) identifier_check_not_none
(argument_list
(identifier_value) identifier_value
(string_"value can't be None") string_"value can't be None"
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_key_data) identifier_key_data
(call
(attribute
(identifier_self) identifier_self
(identifier__to_data) identifier__to_data
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_value_data) identifier_value_data
(call
(attribute
(identifier_self) identifier_self
(identifier__to_data) identifier__to_data
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__remove_if_same_internal_) identifier__remove_if_same_internal_
)attribute
(argument_list
(identifier_key_data) identifier_key_data
(identifier_value_data) identifier_value_data
)argument_list
)call
)return_statement
)block
)function_definition
)module | Removes the entry for a key only if it is currently mapped to a given value.
This is equivalent to:
>>> if map.contains_key(key) and map.get(key).equals(value):
>>> map.remove(key)
>>> return true
>>> else:
>>> return false
except that the action is performed atomically.
**Warning: This method uses __hash__ and __eq__ methods of binary form of the key, not the actual implementations
of __hash__ and __eq__ defined in key's class.**
:param key: (object), the specified key.
:param value: (object), remove the key if it has this value.
:return: (bool), ``true`` if the value was removed. |
(module
(function_definition
(function_name_get_offset_topic_partition_count) function_name_get_offset_topic_partition_count
(parameters
(identifier_kafka_config) identifier_kafka_config
)parameters
(block
(expression_statement
(assignment
(identifier_metadata) identifier_metadata
(call
(identifier_get_topic_partition_metadata) identifier_get_topic_partition_metadata
(argument_list
(attribute
(identifier_kafka_config) identifier_kafka_config
(identifier_broker_list) identifier_broker_list
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_CONSUMER_OFFSET_TOPIC) identifier_CONSUMER_OFFSET_TOPIC
(identifier_metadata) identifier_metadata
)comparison_operator
(block
(raise_statement
(call
(identifier_UnknownTopic) identifier_UnknownTopic
(argument_list
(string_"Consumer offset topic is missing.") string_"Consumer offset topic is missing."
)argument_list
)call
)raise_statement
)block
)if_statement
(return_statement
(call
(identifier_len) identifier_len
(argument_list
(subscript
(identifier_metadata) identifier_metadata
(identifier_CONSUMER_OFFSET_TOPIC) identifier_CONSUMER_OFFSET_TOPIC
)subscript
)argument_list
)call
)return_statement
)block
)function_definition
)module | Given a kafka cluster configuration, return the number of partitions
in the offset topic. It will raise an UnknownTopic exception if the topic
cannot be found. |
(module
(function_definition
(function_name_patch) function_name_patch
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
(identifier_data) identifier_data
(dictionary_splat_pattern
(identifier_options) identifier_options
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier_data) identifier_data
(identifier_options) identifier_options
)pattern_list
(call
(attribute
(identifier_self) identifier_self
(identifier__update_request) identifier__update_request
)attribute
(argument_list
(identifier_data) identifier_data
(identifier_options) identifier_options
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_request) identifier_request
)attribute
(argument_list
(string_'patch') string_'patch'
(identifier_path) identifier_path
(keyword_argument
(identifier_data) identifier_data
(identifier_data) identifier_data
)keyword_argument
(dictionary_splat
(identifier_options) identifier_options
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Parses PATCH request options and dispatches a request |
(module
(function_definition
(function_name_minute_to_session) function_name_minute_to_session
(parameters
(identifier_column) identifier_column
(identifier_close_locs) identifier_close_locs
(identifier_data) identifier_data
(identifier_out) identifier_out
)parameters
(block
(if_statement
(comparison_operator
(identifier_column) identifier_column
(string_'open') string_'open'
)comparison_operator
(block
(expression_statement
(call
(identifier__minute_to_session_open) identifier__minute_to_session_open
(argument_list
(identifier_close_locs) identifier_close_locs
(identifier_data) identifier_data
(identifier_out) identifier_out
)argument_list
)call
)expression_statement
)block
(elif_clause
(comparison_operator
(identifier_column) identifier_column
(string_'high') string_'high'
)comparison_operator
(block
(expression_statement
(call
(identifier__minute_to_session_high) identifier__minute_to_session_high
(argument_list
(identifier_close_locs) identifier_close_locs
(identifier_data) identifier_data
(identifier_out) identifier_out
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_column) identifier_column
(string_'low') string_'low'
)comparison_operator
(block
(expression_statement
(call
(identifier__minute_to_session_low) identifier__minute_to_session_low
(argument_list
(identifier_close_locs) identifier_close_locs
(identifier_data) identifier_data
(identifier_out) identifier_out
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_column) identifier_column
(string_'close') string_'close'
)comparison_operator
(block
(expression_statement
(call
(identifier__minute_to_session_close) identifier__minute_to_session_close
(argument_list
(identifier_close_locs) identifier_close_locs
(identifier_data) identifier_data
(identifier_out) identifier_out
)argument_list
)call
)expression_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(identifier_column) identifier_column
(string_'volume') string_'volume'
)comparison_operator
(block
(expression_statement
(call
(identifier__minute_to_session_volume) identifier__minute_to_session_volume
(argument_list
(identifier_close_locs) identifier_close_locs
(identifier_data) identifier_data
(identifier_out) identifier_out
)argument_list
)call
)expression_statement
)block
)elif_clause
)if_statement
(return_statement
(identifier_out) identifier_out
)return_statement
)block
)function_definition
)module | Resample an array with minute data into an array with session data.
This function assumes that the minute data is the exact length of all
minutes in the sessions in the output.
Parameters
----------
column : str
The `open`, `high`, `low`, `close`, or `volume` column.
close_locs : array[intp]
The locations in `data` which are the market close minutes.
data : array[float64|uint32]
The minute data to be sampled into session data.
The first value should align with the market open of the first session,
containing values for all minutes for all sessions. With the last value
being the market close of the last session.
out : array[float64|uint32]
The output array into which to write the sampled sessions. |
(module
(function_definition
(function_name_nn_getsockopt) function_name_nn_getsockopt
(parameters
(identifier_socket) identifier_socket
(identifier_level) identifier_level
(identifier_option) identifier_option
(identifier_value) identifier_value
)parameters
(block
(if_statement
(attribute
(call
(identifier_memoryview) identifier_memoryview
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(identifier_readonly) identifier_readonly
)attribute
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(string_'Writable buffer is required') string_'Writable buffer is required'
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_size_t_size) identifier_size_t_size
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_c_size_t) identifier_c_size_t
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(identifier_value) identifier_value
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_rtn) identifier_rtn
(call
(identifier__nn_getsockopt) identifier__nn_getsockopt
(argument_list
(identifier_socket) identifier_socket
(identifier_level) identifier_level
(identifier_option) identifier_option
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_addressof) identifier_addressof
)attribute
(argument_list
(identifier_value) identifier_value
)argument_list
)call
(call
(attribute
(identifier_ctypes) identifier_ctypes
(identifier_byref) identifier_byref
)attribute
(argument_list
(identifier_size_t_size) identifier_size_t_size
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(tuple
(identifier_rtn) identifier_rtn
(attribute
(identifier_size_t_size) identifier_size_t_size
(identifier_value) identifier_value
)attribute
)tuple
)return_statement
)block
)function_definition
)module | retrieve a socket option
socket - socket number
level - option level
option - option
value - a writable byte buffer (e.g. a bytearray) which the option value
will be copied to
returns - number of bytes copied or on error nunber < 0 |
(module
(function_definition
(function_name__start_connection_setup) function_name__start_connection_setup
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_info) identifier_info
)attribute
(argument_list
(string_'We are connected[%s], request connection setup') string_'We are connected[%s], request connection setup'
(attribute
(identifier_self) identifier_self
(identifier_link_uri) identifier_link_uri
)attribute
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_platform) identifier_platform
)attribute
(identifier_fetch_platform_informations) identifier_fetch_platform_informations
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__platform_info_fetched) identifier__platform_info_fetched
)attribute
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Start the connection setup by refreshing the TOCs |
(module
(function_definition
(function_name_validate_json_schema) function_name_validate_json_schema
(parameters
(identifier_data) identifier_data
(identifier_schema) identifier_schema
(default_parameter
(identifier_name) identifier_name
(string_"task") string_"task"
)default_parameter
)parameters
(block
(try_statement
(block
(expression_statement
(call
(attribute
(identifier_jsonschema) identifier_jsonschema
(identifier_validate) identifier_validate
)attribute
(argument_list
(identifier_data) identifier_data
(identifier_schema) identifier_schema
)argument_list
)call
)expression_statement
)block
(except_clause
(as_pattern
(attribute
(attribute
(identifier_jsonschema) identifier_jsonschema
(identifier_exceptions) identifier_exceptions
)attribute
(identifier_ValidationError) identifier_ValidationError
)attribute
(as_pattern_target
(identifier_exc) identifier_exc
)as_pattern_target
)as_pattern
(block
(raise_statement
(call
(identifier_ScriptWorkerTaskException) identifier_ScriptWorkerTaskException
(argument_list
(call
(attribute
(string_"Can't validate {} schema!\n{}") string_"Can't validate {} schema!\n{}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_name) identifier_name
(call
(identifier_str) identifier_str
(argument_list
(identifier_exc) identifier_exc
)argument_list
)call
)argument_list
)call
(keyword_argument
(identifier_exit_code) identifier_exit_code
(subscript
(identifier_STATUSES) identifier_STATUSES
(string_'malformed-payload') string_'malformed-payload'
)subscript
)keyword_argument
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Given data and a jsonschema, let's validate it.
This happens for tasks and chain of trust artifacts.
Args:
data (dict): the json to validate.
schema (dict): the jsonschema to validate against.
name (str, optional): the name of the json, for exception messages.
Defaults to "task".
Raises:
ScriptWorkerTaskException: on failure |
(module
(function_definition
(function_name__stripslashes) function_name__stripslashes
(parameters
(identifier_s) identifier_s
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_r"\\(n|r)") string_r"\\(n|r)"
(string_"\n") string_"\n"
(identifier_s) identifier_s
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(identifier_re) identifier_re
(identifier_sub) identifier_sub
)attribute
(argument_list
(string_r"\\") string_r"\\"
(string_"") string_""
(identifier_r) identifier_r
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_r) identifier_r
)return_statement
)block
)function_definition
)module | Removes trailing and leading backslashes from string |
(module
(function_definition
(function_name_insert) function_name_insert
(parameters
(identifier_self) identifier_self
(identifier_row) identifier_row
(default_parameter
(identifier_ensure) identifier_ensure
(None) None
)default_parameter
(default_parameter
(identifier_types) identifier_types
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_row) identifier_row
(call
(attribute
(identifier_self) identifier_self
(identifier__sync_columns) identifier__sync_columns
)attribute
(argument_list
(identifier_row) identifier_row
(identifier_ensure) identifier_ensure
(keyword_argument
(identifier_types) identifier_types
(identifier_types) identifier_types
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_res) identifier_res
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_db) identifier_db
)attribute
(identifier_executable) identifier_executable
)attribute
(identifier_execute) identifier_execute
)attribute
(argument_list
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_table) identifier_table
)attribute
(identifier_insert) identifier_insert
)attribute
(argument_list
(identifier_row) identifier_row
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_res) identifier_res
(identifier_inserted_primary_key) identifier_inserted_primary_key
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(subscript
(attribute
(identifier_res) identifier_res
(identifier_inserted_primary_key) identifier_inserted_primary_key
)attribute
(integer_0) integer_0
)subscript
)return_statement
)block
)if_statement
(return_statement
(True) True
)return_statement
)block
)function_definition
)module | Add a ``row`` dict by inserting it into the table.
If ``ensure`` is set, any of the keys of the row are not
table columns, they will be created automatically.
During column creation, ``types`` will be checked for a key
matching the name of a column to be created, and the given
SQLAlchemy column type will be used. Otherwise, the type is
guessed from the row value, defaulting to a simple unicode
field.
::
data = dict(title='I am a banana!')
table.insert(data)
Returns the inserted row's primary key. |
(module
(function_definition
(function_name_search) function_name_search
(parameters
(identifier_self) identifier_self
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(call
(identifier_super) identifier_super
(argument_list
(identifier_ApiV4Neighbor) identifier_ApiV4Neighbor
(identifier_self) identifier_self
)argument_list
)call
(identifier_get) identifier_get
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier_prepare_url) identifier_prepare_url
)attribute
(argument_list
(string_'api/v4/neighbor/') string_'api/v4/neighbor/'
(identifier_kwargs) identifier_kwargs
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Method to search neighbors based on extends search.
:param search: Dict containing QuerySets to find neighbors.
:param include: Array containing fields to include on response.
:param exclude: Array containing fields to exclude on response.
:param fields: Array containing fields to override default fields.
:param kind: Determine if result will be detailed ('detail') or basic ('basic').
:return: Dict containing neighbors |
(module
(function_definition
(function_name_register) function_name_register
(parameters
(identifier_id) identifier_id
(default_parameter
(identifier_url) identifier_url
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_bucket) identifier_bucket
(call
(identifier_registration_s3_bucket) identifier_registration_s3_bucket
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_key) identifier_key
(call
(identifier_registration_key) identifier_registration_key
(argument_list
(identifier_id) identifier_id
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_obj) identifier_obj
(call
(attribute
(identifier_bucket) identifier_bucket
(identifier_Object) identifier_Object
)attribute
(argument_list
(identifier_key) identifier_key
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_obj) identifier_obj
(identifier_put) identifier_put
)attribute
(argument_list
(keyword_argument
(identifier_Body) identifier_Body
(boolean_operator
(identifier_url) identifier_url
(string_"missing") string_"missing"
)boolean_operator
)keyword_argument
)argument_list
)call
)expression_statement
(return_statement
(call
(identifier__generate_s3_url) identifier__generate_s3_url
(argument_list
(identifier_bucket) identifier_bucket
(identifier_key) identifier_key
)argument_list
)call
)return_statement
)block
)function_definition
)module | Register a UUID key in the global S3 bucket. |
(module
(function_definition
(function_name_base_url) function_name_base_url
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_base_url) identifier_base_url
(None) None
)default_parameter
)parameters
(block
(if_statement
(identifier_base_url) identifier_base_url
(block
(if_statement
(comparison_operator
(attribute
(call
(identifier_urlparse) identifier_urlparse
(argument_list
(identifier_base_url) identifier_base_url
)argument_list
)call
(identifier_scheme) identifier_scheme
)attribute
(string_'https') string_'https'
)comparison_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(concatenated_string
(string_'`base_url`s need to be over `https`. Update your ') string_'`base_url`s need to be over `https`. Update your '
(string_'`base_url`.') string_'`base_url`.'
)concatenated_string
)argument_list
)call
)raise_statement
)block
)if_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier__base_url) identifier__base_url
)attribute
(identifier_base_url) identifier_base_url
)assignment
)expression_statement
)block
(else_clause
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier__base_url) identifier__base_url
)attribute
)return_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Return or set `base_url`.
Args:
base_url (str, optional): If set, updates the `base_url`. Otherwise
returns current `base_url`.
Note:
This does not update the `username` attribute. Separately update
the username with ``Credentials.username`` or update `base_url` and
`username` at the same time with ``Credentials.set``.
Example:
.. code::
>>> from cartoframes import Credentials
# load credentials saved in previous session
>>> creds = Credentials()
# returns current base_url
>>> creds.base_url()
'https://eschbacher.carto.com/'
# updates base_url with new value
>>> creds.base_url('new_base_url') |
(module
(function_definition
(function_name_meth_wdl) function_name_meth_wdl
(parameters
(identifier_args) identifier_args
)parameters
(block
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(identifier_fapi) identifier_fapi
(identifier_get_repository_method) identifier_get_repository_method
)attribute
(argument_list
(attribute
(identifier_args) identifier_args
(identifier_namespace) identifier_namespace
)attribute
(attribute
(identifier_args) identifier_args
(identifier_method) identifier_method
)attribute
(attribute
(identifier_args) identifier_args
(identifier_snapshot_id) identifier_snapshot_id
)attribute
(True) True
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_fapi) identifier_fapi
(identifier__check_response_code) identifier__check_response_code
)attribute
(argument_list
(identifier_r) identifier_r
(integer_200) integer_200
)argument_list
)call
)expression_statement
(return_statement
(attribute
(identifier_r) identifier_r
(identifier_text) identifier_text
)attribute
)return_statement
)block
)function_definition
)module | Retrieve WDL for given version of a repository method |
(module
(function_definition
(function_name___generate_really) function_name___generate_really
(parameters
(identifier_self) identifier_self
(identifier_prop_set) identifier_prop_set
)parameters
(block
(assert_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_prop_set) identifier_prop_set
(attribute
(identifier_property_set) identifier_property_set
(identifier_PropertySet) identifier_PropertySet
)attribute
)argument_list
)call
)assert_statement
(expression_statement
(assignment
(identifier_best_alternative) identifier_best_alternative
(call
(attribute
(identifier_self) identifier_self
(identifier___select_alternatives) identifier___select_alternatives
)attribute
(argument_list
(identifier_prop_set) identifier_prop_set
(keyword_argument
(identifier_debug) identifier_debug
(integer_0) integer_0
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_best_alternative) identifier_best_alternative
)attribute
(identifier_best_alternative) identifier_best_alternative
)assignment
)expression_statement
(if_statement
(not_operator
(identifier_best_alternative) identifier_best_alternative
)not_operator
(block
(expression_statement
(call
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_manager_) identifier_manager_
)attribute
(identifier_errors) identifier_errors
)attribute
(argument_list
)argument_list
)call
(argument_list
(binary_operator
(string_"No best alternative for '%s'.\n") string_"No best alternative for '%s'.\n"
(tuple
(call
(attribute
(identifier_self) identifier_self
(identifier_full_name) identifier_full_name
)attribute
(argument_list
)argument_list
)call
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(attribute
(identifier_best_alternative) identifier_best_alternative
(identifier_generate) identifier_generate
)attribute
(argument_list
(identifier_prop_set) identifier_prop_set
)argument_list
)call
)assignment
)expression_statement
(return_statement
(identifier_result) identifier_result
)return_statement
)block
)function_definition
)module | Generates the main target with the given property set
and returns a list which first element is property_set object
containing usage_requirements of generated target and with
generated virtual target in other elements. It's possible
that no targets are generated. |
(module
(function_definition
(function_name_scroll_deck_x) function_name_scroll_deck_x
(parameters
(identifier_self) identifier_self
(identifier_decknum) identifier_decknum
(identifier_scroll_x) identifier_scroll_x
)parameters
(block
(if_statement
(comparison_operator
(identifier_decknum) identifier_decknum
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_decks) identifier_decks
)attribute
)argument_list
)call
)comparison_operator
(block
(raise_statement
(call
(identifier_IndexError) identifier_IndexError
(argument_list
(call
(attribute
(string_"I have no deck at {}") string_"I have no deck at {}"
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_decknum) identifier_decknum
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_decknum) identifier_decknum
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_deck_x_hint_offsets) identifier_deck_x_hint_offsets
)attribute
)argument_list
)call
)comparison_operator
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_deck_x_hint_offsets) identifier_deck_x_hint_offsets
)attribute
(binary_operator
(call
(identifier_list) identifier_list
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_deck_x_hint_offsets) identifier_deck_x_hint_offsets
)attribute
)argument_list
)call
(binary_operator
(list
(integer_0) integer_0
)list
(parenthesized_expression
(binary_operator
(binary_operator
(identifier_decknum) identifier_decknum
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_deck_x_hint_offsets) identifier_deck_x_hint_offsets
)attribute
)argument_list
)call
)binary_operator
(integer_1) integer_1
)binary_operator
)parenthesized_expression
)binary_operator
)binary_operator
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(augmented_assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_deck_x_hint_offsets) identifier_deck_x_hint_offsets
)attribute
(identifier_decknum) identifier_decknum
)subscript
(identifier_scroll_x) identifier_scroll_x
)augmented_assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier__trigger_layout) identifier__trigger_layout
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Move a deck left or right. |
(module
(function_definition
(function_name_wait_for_states) function_name_wait_for_states
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_timeout) identifier_timeout
(integer_40) integer_40
)default_parameter
(list_splat_pattern
(identifier_states) identifier_states
)list_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_state) identifier_state
(call
(attribute
(identifier_self) identifier_self
(identifier_get_attribute) identifier_get_attribute
)attribute
(argument_list
(string_'state') string_'state'
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier__) identifier__
(call
(identifier_range) identifier_range
(argument_list
(identifier_timeout) identifier_timeout
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_state) identifier_state
(identifier_states) identifier_states
)comparison_operator
(block
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_time) identifier_time
(identifier_sleep) identifier_sleep
)attribute
(argument_list
(integer_1) integer_1
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_state) identifier_state
(call
(attribute
(identifier_self) identifier_self
(identifier_get_attribute) identifier_get_attribute
)attribute
(argument_list
(string_'state') string_'state'
)argument_list
)call
)assignment
)expression_statement
)block
)for_statement
(raise_statement
(call
(identifier_TgnError) identifier_TgnError
(argument_list
(call
(attribute
(string_'Failed to reach states {}, port state is {} after {} seconds') string_'Failed to reach states {}, port state is {} after {} seconds'
(identifier_format) identifier_format
)attribute
(argument_list
(identifier_states) identifier_states
(identifier_state) identifier_state
(identifier_timeout) identifier_timeout
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Wait until port reaches one of the requested states.
:param timeout: max time to wait for requested port states. |
(module
(function_definition
(function_name_create_user) function_name_create_user
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_projects) identifier_projects
(None) None
)default_parameter
(default_parameter
(identifier_tasks) identifier_tasks
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_projects) identifier_projects
(boolean_operator
(identifier_projects) identifier_projects
(list
)list
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_tasks) identifier_tasks
(boolean_operator
(identifier_tasks) identifier_tasks
(list
)list
)boolean_operator
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_dialog) identifier_dialog
(call
(identifier_UserCreatorDialog) identifier_UserCreatorDialog
(argument_list
(keyword_argument
(identifier_projects) identifier_projects
(identifier_projects) identifier_projects
)keyword_argument
(keyword_argument
(identifier_tasks) identifier_tasks
(identifier_tasks) identifier_tasks
)keyword_argument
(keyword_argument
(identifier_parent) identifier_parent
(identifier_self) identifier_self
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_dialog) identifier_dialog
(identifier_exec_) identifier_exec_
)attribute
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_user) identifier_user
(attribute
(identifier_dialog) identifier_dialog
(identifier_user) identifier_user
)attribute
)assignment
)expression_statement
(if_statement
(identifier_user) identifier_user
(block
(expression_statement
(assignment
(identifier_userdata) identifier_userdata
(call
(attribute
(identifier_djitemdata) identifier_djitemdata
(identifier_UserItemData) identifier_UserItemData
)attribute
(argument_list
(identifier_user) identifier_user
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_treemodel) identifier_treemodel
(identifier_TreeItem) identifier_TreeItem
)attribute
(argument_list
(identifier_userdata) identifier_userdata
(attribute
(attribute
(identifier_self) identifier_self
(identifier_users_model) identifier_users_model
)attribute
(identifier_root) identifier_root
)attribute
)argument_list
)call
)expression_statement
)block
)if_statement
(return_statement
(identifier_user) identifier_user
)return_statement
)block
)function_definition
)module | Create and return a new user
:param projects: the projects for the user
:type projects: list of :class:`jukeboxcore.djadapter.models.Project`
:param tasks: the tasks for the user
:type tasks: list of :class:`jukeboxcore.djadapter.models.Task`
:returns: The created user or None
:rtype: None | :class:`jukeboxcore.djadapter.models.User`
:raises: None |
(module
(function_definition
(function_name_get_all_tags) function_name_get_all_tags
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_filters) identifier_filters
(None) None
)default_parameter
(default_parameter
(identifier_max_records) identifier_max_records
(None) None
)default_parameter
(default_parameter
(identifier_next_token) identifier_next_token
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_params) identifier_params
(dictionary
)dictionary
)assignment
)expression_statement
(if_statement
(identifier_max_records) identifier_max_records
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'MaxRecords') string_'MaxRecords'
)subscript
(identifier_max_records) identifier_max_records
)assignment
)expression_statement
)block
)if_statement
(if_statement
(identifier_next_token) identifier_next_token
(block
(expression_statement
(assignment
(subscript
(identifier_params) identifier_params
(string_'NextToken') string_'NextToken'
)subscript
(identifier_next_token) identifier_next_token
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_get_list) identifier_get_list
)attribute
(argument_list
(string_'DescribeTags') string_'DescribeTags'
(identifier_params) identifier_params
(list
(tuple
(string_'member') string_'member'
(identifier_Tag) identifier_Tag
)tuple
)list
)argument_list
)call
)return_statement
)block
)function_definition
)module | Lists the Auto Scaling group tags.
This action supports pagination by returning a token if there are more
pages to retrieve. To get the next page, call this action again with the returned token as the NextToken parameter.
:type filters: dict
:param filters: The value of the filter type used to identify
the tags to be returned. NOT IMPLEMENTED YET.
:type max_records: int
:param max_records: Maximum number of tags to return.
:rtype: list
:returns: List of :class:`boto.ec2.autoscale.tag.Tag`
instances. |
(module
(function_definition
(function_name_from_extension) function_name_from_extension
(parameters
(identifier_extension) identifier_extension
)parameters
(block
(if_statement
(not_operator
(call
(attribute
(identifier_extension) identifier_extension
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'.') string_'.'
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_"Extensions must begin with a period.") string_"Extensions must begin with a period."
)argument_list
)call
)raise_statement
)block
)if_statement
(try_statement
(block
(return_statement
(subscript
(identifier_EXTENSION_TO_TYPE) identifier_EXTENSION_TO_TYPE
(call
(attribute
(identifier_extension) identifier_extension
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)subscript
)return_statement
)block
(except_clause
(identifier_KeyError) identifier_KeyError
(block
(raise_statement
(call
(identifier_UnknownExtensionError) identifier_UnknownExtensionError
(argument_list
(binary_operator
(binary_operator
(string_"seqmagick does not know how to handle ") string_"seqmagick does not know how to handle "
(string_"files with extensions like this: ") string_"files with extensions like this: "
)binary_operator
(identifier_extension) identifier_extension
)binary_operator
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Look up the BioPython file type corresponding with input extension.
Look up is case insensitive. |
(module
(function_definition
(function_name_find) function_name_find
(parameters
(identifier_self) identifier_self
(identifier_datum) identifier_datum
)parameters
(block
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_datum) identifier_datum
(identifier_value) identifier_value
)attribute
(identifier_dict) identifier_dict
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_expressions) identifier_expressions
)attribute
)boolean_operator
(block
(return_statement
(identifier_datum) identifier_datum
)return_statement
)block
)if_statement
(if_statement
(boolean_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_datum) identifier_datum
(identifier_value) identifier_value
)attribute
(identifier_dict) identifier_dict
)argument_list
)call
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(attribute
(identifier_datum) identifier_datum
(identifier_value) identifier_value
)attribute
(identifier_list) identifier_list
)argument_list
)call
)boolean_operator
(block
(expression_statement
(assignment
(identifier_key) identifier_key
(parenthesized_expression
(conditional_expression
(call
(attribute
(identifier_functools) identifier_functools
(identifier_cmp_to_key) identifier_cmp_to_key
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier__compare) identifier__compare
)attribute
)argument_list
)call
(attribute
(identifier_self) identifier_self
(identifier_expressions) identifier_expressions
)attribute
(None) None
)conditional_expression
)parenthesized_expression
)assignment
)expression_statement
(return_statement
(list
(call
(attribute
(attribute
(identifier_jsonpath_rw) identifier_jsonpath_rw
(identifier_DatumInContext) identifier_DatumInContext
)attribute
(identifier_wrap) identifier_wrap
)attribute
(argument_list
(list_comprehension
(identifier_value) identifier_value
(for_in_clause
(identifier_value) identifier_value
(call
(identifier_sorted) identifier_sorted
(argument_list
(attribute
(identifier_datum) identifier_datum
(identifier_value) identifier_value
)attribute
(keyword_argument
(identifier_key) identifier_key
(identifier_key) identifier_key
)keyword_argument
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)list
)return_statement
)block
)if_statement
(return_statement
(identifier_datum) identifier_datum
)return_statement
)block
)function_definition
)module | Return sorted value of This if list or dict. |
(module
(function_definition
(function_name_run_script_with_context) function_name_run_script_with_context
(parameters
(identifier_script_path) identifier_script_path
(identifier_cwd) identifier_cwd
(identifier_context) identifier_context
)parameters
(block
(expression_statement
(assignment
(pattern_list
(identifier__) identifier__
(identifier_extension) identifier_extension
)pattern_list
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(identifier_script_path) identifier_script_path
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_contents) identifier_contents
(call
(attribute
(call
(attribute
(identifier_io) identifier_io
(identifier_open) identifier_open
)attribute
(argument_list
(identifier_script_path) identifier_script_path
(string_'r') string_'r'
(keyword_argument
(identifier_encoding) identifier_encoding
(string_'utf-8') string_'utf-8'
)keyword_argument
)argument_list
)call
(identifier_read) identifier_read
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(with_statement
(with_clause
(with_item
(as_pattern
(call
(attribute
(identifier_tempfile) identifier_tempfile
(identifier_NamedTemporaryFile) identifier_NamedTemporaryFile
)attribute
(argument_list
(keyword_argument
(identifier_delete) identifier_delete
(False) False
)keyword_argument
(keyword_argument
(identifier_mode) identifier_mode
(string_'wb') string_'wb'
)keyword_argument
(keyword_argument
(identifier_suffix) identifier_suffix
(identifier_extension) identifier_extension
)keyword_argument
)argument_list
)call
(as_pattern_target
(identifier_temp) identifier_temp
)as_pattern_target
)as_pattern
)with_item
)with_clause
(block
(expression_statement
(assignment
(identifier_env) identifier_env
(call
(identifier_StrictEnvironment) identifier_StrictEnvironment
(argument_list
(keyword_argument
(identifier_context) identifier_context
(identifier_context) identifier_context
)keyword_argument
(keyword_argument
(identifier_keep_trailing_newline) identifier_keep_trailing_newline
(True) True
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_template) identifier_template
(call
(attribute
(identifier_env) identifier_env
(identifier_from_string) identifier_from_string
)attribute
(argument_list
(identifier_contents) identifier_contents
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_output) identifier_output
(call
(attribute
(identifier_template) identifier_template
(identifier_render) identifier_render
)attribute
(argument_list
(dictionary_splat
(identifier_context) identifier_context
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_temp) identifier_temp
(identifier_write) identifier_write
)attribute
(argument_list
(call
(attribute
(identifier_output) identifier_output
(identifier_encode) identifier_encode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)with_statement
(expression_statement
(call
(identifier_run_script) identifier_run_script
(argument_list
(attribute
(identifier_temp) identifier_temp
(identifier_name) identifier_name
)attribute
(identifier_cwd) identifier_cwd
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Execute a script after rendering it with Jinja.
:param script_path: Absolute path to the script to run.
:param cwd: The directory to run the script from.
:param context: Cookiecutter project template context. |
(module
(function_definition
(function_name_process_allow_action) function_name_process_allow_action
(parameters
(identifier_processors) identifier_processors
(identifier_action) identifier_action
(identifier_argument) identifier_argument
)parameters
(block
(for_statement
(identifier_processor) identifier_processor
(identifier_processors) identifier_processors
(block
(expression_statement
(call
(identifier_processor) identifier_processor
(argument_list
(identifier_action) identifier_action
(identifier_argument) identifier_argument
)argument_list
)call
)expression_statement
)block
)for_statement
(expression_statement
(call
(attribute
(attribute
(identifier_db) identifier_db
(identifier_session) identifier_session
)attribute
(identifier_commit) identifier_commit
)attribute
(argument_list
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Process allow action. |
(module
(function_definition
(function_name_shape) function_name_shape
(parameters
(identifier_self) identifier_self
)parameters
(type
(generic_type
(identifier_Tuple) identifier_Tuple
(type_parameter
(type
(identifier_int) identifier_int
)type
(type
(identifier_int) identifier_int
)type
)type_parameter
)generic_type
)type
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_sort_timeplaceentries) identifier_sort_timeplaceentries
)attribute
(argument_list
(call
(identifier_len) identifier_len
(argument_list
(attribute
(attribute
(attribute
(identifier_hydpy) identifier_hydpy
(identifier_pub) identifier_pub
)attribute
(identifier_timegrids) identifier_timegrids
)attribute
(identifier_init) identifier_init
)attribute
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_sequences) identifier_sequences
)attribute
)argument_list
)call
)argument_list
)call
)return_statement
)block
)function_definition
)module | Required shape of |NetCDFVariableAgg.array|.
For the default configuration, the first axis corresponds to the
number of devices, and the second one to the number of timesteps.
We show this for the 1-dimensional input sequence |lland_fluxes.NKor|:
>>> from hydpy.core.examples import prepare_io_example_1
>>> nodes, elements = prepare_io_example_1()
>>> from hydpy.core.netcdftools import NetCDFVariableAgg
>>> ncvar = NetCDFVariableAgg('flux_nkor', isolate=False, timeaxis=1)
>>> for element in elements:
... ncvar.log(element.model.sequences.fluxes.nkor, None)
>>> ncvar.shape
(3, 4)
When using the first axis as the "timeaxis", the order of |tuple|
entries turns:
>>> ncvar = NetCDFVariableAgg('flux_nkor', isolate=False, timeaxis=0)
>>> for element in elements:
... ncvar.log(element.model.sequences.fluxes.nkor, None)
>>> ncvar.shape
(4, 3) |
(module
(function_definition
(function_name_find_pattern) function_name_find_pattern
(parameters
(identifier_search_base) identifier_search_base
(default_parameter
(identifier_pattern) identifier_pattern
(string_'*.rpm') string_'*.rpm'
)default_parameter
)parameters
(block
(if_statement
(boolean_operator
(parenthesized_expression
(not_operator
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_isdir) identifier_isdir
)attribute
(argument_list
(identifier_search_base) identifier_search_base
)argument_list
)call
)not_operator
)parenthesized_expression
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_exists) identifier_exists
)attribute
(argument_list
(identifier_search_base) identifier_search_base
)argument_list
)call
)boolean_operator
(block
(expression_statement
(yield
(identifier_search_base) identifier_search_base
)yield
)expression_statement
)block
(else_clause
(block
(for_statement
(pattern_list
(identifier_root) identifier_root
(identifier_dirs) identifier_dirs
(identifier_files) identifier_files
)pattern_list
(call
(attribute
(identifier_os) identifier_os
(identifier_walk) identifier_walk
)attribute
(argument_list
(identifier_search_base) identifier_search_base
)argument_list
)call
(block
(for_statement
(identifier_filename) identifier_filename
(call
(attribute
(identifier_fnmatch) identifier_fnmatch
(identifier_filter) identifier_filter
)attribute
(argument_list
(identifier_files) identifier_files
(identifier_pattern) identifier_pattern
)argument_list
)call
(block
(expression_statement
(yield
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_root) identifier_root
(identifier_filename) identifier_filename
)argument_list
)call
)yield
)expression_statement
)block
)for_statement
)block
)for_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | `search_base` - The directory to begin walking down.
`pattern` - File pattern to match for.
This is a generator which yields the full path to files (one at a
time) which match the given glob (`pattern`). |
(module
(function_definition
(function_name_peers) function_name_peers
(parameters
(identifier_self) identifier_self
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(await
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__api) identifier__api
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(string_"/v1/status/peers") string_"/v1/status/peers"
)argument_list
)call
)await
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_response) identifier_response
(identifier_status) identifier_status
)attribute
(integer_200) integer_200
)comparison_operator
(block
(return_statement
(call
(identifier_set) identifier_set
(argument_list
(attribute
(identifier_response) identifier_response
(identifier_body) identifier_body
)attribute
)argument_list
)call
)return_statement
)block
)if_statement
)block
)function_definition
)module | Returns the current Raft peer set
Returns:
Collection: addresses of peers
This endpoint retrieves the Raft peers for the datacenter in which
the agent is running. It returns a collection of addresses, such as::
[
"10.1.10.12:8300",
"10.1.10.11:8300",
"10.1.10.10:8300"
]
This list of peers is strongly consistent and can be useful in
determining when a given server has successfully joined the cluster. |
(module
(function_definition
(function_name_name_replace) function_name_name_replace
(parameters
(identifier_self) identifier_self
(identifier_to_replace) identifier_to_replace
(identifier_replacement) identifier_replacement
)parameters
(block
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(identifier_replace) identifier_replace
)attribute
(argument_list
(identifier_to_replace) identifier_to_replace
(identifier_replacement) identifier_replacement
)argument_list
)call
)assignment
)expression_statement
)block
)function_definition
)module | Replaces part of tag name with new value |
(module
(function_definition
(function_name_list_qos_policies) function_name_list_qos_policies
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_retrieve_all) identifier_retrieve_all
(True) True
)default_parameter
(dictionary_splat_pattern
(identifier__params) identifier__params
)dictionary_splat_pattern
)parameters
(block
(return_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_list) identifier_list
)attribute
(argument_list
(string_'policies') string_'policies'
(attribute
(identifier_self) identifier_self
(identifier_qos_policies_path) identifier_qos_policies_path
)attribute
(identifier_retrieve_all) identifier_retrieve_all
(dictionary_splat
(identifier__params) identifier__params
)dictionary_splat
)argument_list
)call
)return_statement
)block
)function_definition
)module | Fetches a list of all qos policies for a project. |
(module
(function_definition
(function_name__retrieve_tag) function_name__retrieve_tag
(parameters
(identifier_self) identifier_self
(identifier_text) identifier_text
)parameters
(block
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_tagger) identifier_tagger
)attribute
(string_'tag_ngram_123_backoff') string_'tag_ngram_123_backoff'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_tags) identifier_tags
(call
(attribute
(call
(identifier_POSTag) identifier_POSTag
(argument_list
(string_'latin') string_'latin'
)argument_list
)call
(identifier_tag_ngram_123_backoff) identifier_tag_ngram_123_backoff
)attribute
(argument_list
(call
(attribute
(identifier_text) identifier_text
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(list_comprehension
(tuple
(subscript
(identifier_tag) identifier_tag
(integer_0) integer_0
)subscript
(subscript
(identifier_tag) identifier_tag
(integer_1) integer_1
)subscript
)tuple
(for_in_clause
(identifier_tag) identifier_tag
(identifier_tags) identifier_tags
)for_in_clause
)list_comprehension
)return_statement
)block
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_tagger) identifier_tagger
)attribute
(string_'tag_tnt') string_'tag_tnt'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_tags) identifier_tags
(call
(attribute
(call
(identifier_POSTag) identifier_POSTag
(argument_list
(string_'latin') string_'latin'
)argument_list
)call
(identifier_tag_tnt) identifier_tag_tnt
)attribute
(argument_list
(call
(attribute
(identifier_text) identifier_text
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(list_comprehension
(tuple
(subscript
(identifier_tag) identifier_tag
(integer_0) integer_0
)subscript
(subscript
(identifier_tag) identifier_tag
(integer_1) integer_1
)subscript
)tuple
(for_in_clause
(identifier_tag) identifier_tag
(identifier_tags) identifier_tags
)for_in_clause
)list_comprehension
)return_statement
)block
)elif_clause
(elif_clause
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_tagger) identifier_tagger
)attribute
(string_'tag_crf') string_'tag_crf'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_tags) identifier_tags
(call
(attribute
(call
(identifier_POSTag) identifier_POSTag
(argument_list
(string_'latin') string_'latin'
)argument_list
)call
(identifier_tag_crf) identifier_tag_crf
)attribute
(argument_list
(call
(attribute
(identifier_text) identifier_text
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(return_statement
(list_comprehension
(tuple
(subscript
(identifier_tag) identifier_tag
(integer_0) integer_0
)subscript
(subscript
(identifier_tag) identifier_tag
(integer_1) integer_1
)subscript
)tuple
(for_in_clause
(identifier_tag) identifier_tag
(identifier_tags) identifier_tags
)for_in_clause
)list_comprehension
)return_statement
)block
)elif_clause
)if_statement
)block
)function_definition
)module | Tag text with chosen tagger and clean tags.
Tag format: [('word', 'tag')]
:param text: string
:return: list of tuples, with each tuple containing the word and its pos tag
:rtype : list |
(module
(function_definition
(function_name_CreateAllStaticECMWFRAPIDFiles) function_name_CreateAllStaticECMWFRAPIDFiles
(parameters
(identifier_in_drainage_line) identifier_in_drainage_line
(identifier_river_id) identifier_river_id
(identifier_length_id) identifier_length_id
(identifier_slope_id) identifier_slope_id
(identifier_next_down_id) identifier_next_down_id
(identifier_in_catchment) identifier_in_catchment
(identifier_catchment_river_id) identifier_catchment_river_id
(identifier_rapid_output_folder) identifier_rapid_output_folder
(default_parameter
(identifier_kfac_celerity) identifier_kfac_celerity
(binary_operator
(float_1000.0) float_1000.0
(float_3600.0) float_3600.0
)binary_operator
)default_parameter
(default_parameter
(identifier_kfac_formula_type) identifier_kfac_formula_type
(integer_3) integer_3
)default_parameter
(default_parameter
(identifier_kfac_length_units) identifier_kfac_length_units
(string_"km") string_"km"
)default_parameter
(default_parameter
(identifier_lambda_k) identifier_lambda_k
(float_0.35) float_0.35
)default_parameter
(default_parameter
(identifier_x_value) identifier_x_value
(float_0.3) float_0.3
)default_parameter
(default_parameter
(identifier_nhdplus) identifier_nhdplus
(False) False
)default_parameter
(default_parameter
(identifier_taudem_network_connectivity_tree_file) identifier_taudem_network_connectivity_tree_file
(None) None
)default_parameter
(default_parameter
(identifier_file_geodatabase) identifier_file_geodatabase
(None) None
)default_parameter
)parameters
(block
(expression_statement
(call
(identifier_CreateAllStaticRAPIDFiles) identifier_CreateAllStaticRAPIDFiles
(argument_list
(identifier_in_drainage_line) identifier_in_drainage_line
(identifier_river_id) identifier_river_id
(identifier_length_id) identifier_length_id
(identifier_slope_id) identifier_slope_id
(identifier_next_down_id) identifier_next_down_id
(identifier_rapid_output_folder) identifier_rapid_output_folder
(identifier_kfac_celerity) identifier_kfac_celerity
(identifier_kfac_formula_type) identifier_kfac_formula_type
(identifier_kfac_length_units) identifier_kfac_length_units
(identifier_lambda_k) identifier_lambda_k
(identifier_x_value) identifier_x_value
(identifier_nhdplus) identifier_nhdplus
(identifier_taudem_network_connectivity_tree_file) identifier_taudem_network_connectivity_tree_file
(identifier_file_geodatabase) identifier_file_geodatabase
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_rapid_connect_file) identifier_rapid_connect_file
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(identifier_rapid_output_folder) identifier_rapid_output_folder
(string_'rapid_connect.csv') string_'rapid_connect.csv'
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_CreateAllStaticECMWFFiles) identifier_CreateAllStaticECMWFFiles
(argument_list
(identifier_in_catchment) identifier_in_catchment
(identifier_catchment_river_id) identifier_catchment_river_id
(identifier_rapid_output_folder) identifier_rapid_output_folder
(identifier_rapid_connect_file) identifier_rapid_connect_file
(identifier_file_geodatabase) identifier_file_geodatabase
)argument_list
)call
)expression_statement
)block
)function_definition
)module | This creates all of the static RAPID files and ECMWF grid weight tables.
Parameters
----------
in_drainage_line: str
Path to the stream network (i.e. Drainage Line) shapefile.
river_id: str
The name of the field with the river ID
(Ex. 'HydroID', 'COMID', or 'LINKNO').
length_id: str
The field name containging the length of the river segment
(Ex. 'LENGTHKM' or 'Length').
slope_id: str
The field name containging the slope of the river segment
(Ex. 'Avg_Slope' or 'Slope').
next_down_id: str
The name of the field with the river ID of the next downstream
river segment (Ex. 'NextDownID' or 'DSLINKNO').
in_catchment: str
Path to the Catchment shapefile.
catchment_river_id: str
The name of the field with the river ID (Ex. 'DrainLnID' or 'LINKNO').
rapid_output_folder: str
The path to the folder where all of the RAPID output will be generated.
kfac_celerity: float, optional
The flow wave celerity for the watershed in meters per second.
1 km/hr or 1000.0/3600.0 m/s is a reasonable value if unknown.
kfac_formula_type: int, optional
An integer representing the formula type to use when calculating kfac.
Default is 3.
kfac_length_units: str, optional
The units for the length_id field. Supported types are "m" for meters
and "km" for kilometers. Default is "km".
lambda_k: float, optional
The value for lambda given from RAPID after the calibration process.
Default is 0.35.
x_value: float, optional
Value for the muskingum X parameter [0-0.5].Default is 0.3.
nhdplus: bool, optional
If True, the drainage line is from the NHDPlus dataset with the
VAA fields COMID, FROMNODE, TONODE, and DIVERGENCE. Default is False.
taudem_network_connectivity_tree_file: str, optional
If set, the connectivity file will be generated from the
TauDEM connectivity tree file.
file_geodatabase: str, optional
Path to the file geodatabase. If you use this option,
in_drainage_line is the name of the stream network feature class
(WARNING: Not always stable with GDAL).
Example::
from RAPIDpy.gis.workflow import CreateAllStaticECMWFRAPIDFiles
CreateAllStaticECMWFRAPIDFiles(
in_drainage_line="/path/to/drainage_line.shp",
river_id="HydroID",
length_id="LENGTHKM",
slope_id="SLOPE",
next_down_id="NextDownID",
in_catchment="/path/to/catchment.shp",
catchment_river_id="DrainLnID",
rapid_output_folder="/path/to/rapid/output",
) |
(module
(function_definition
(function_name_recv_from_app) function_name_recv_from_app
(parameters
(default_parameter
(identifier_timeout) identifier_timeout
(identifier__default_timeout) identifier__default_timeout
)default_parameter
)parameters
(block
(try_statement
(block
(return_statement
(call
(attribute
(attribute
(identifier_ApplicationLayer) identifier_ApplicationLayer
(identifier__from_app) identifier__from_app
)attribute
(identifier_get) identifier_get
)attribute
(argument_list
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_Empty) identifier_Empty
(block
(pass_statement
)pass_statement
)block
)except_clause
)try_statement
(raise_statement
(call
(identifier_NoPackets) identifier_NoPackets
(argument_list
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Called by a network stack implementer to receive application-layer
data for sending on to a remote location.
Can optionally take a timeout value. If no data are available,
raises NoPackets exception.
Returns a 2-tuple: flowaddr and data.
The flowaddr consists of 5 items: protocol, localaddr, localport,
remoteaddr, remoteport. |
(module
(function_definition
(function_name__write_html_file) function_name__write_html_file
(parameters
(identifier_word) identifier_word
(identifier_translations) identifier_translations
(identifier_data_dir) identifier_data_dir
(default_parameter
(identifier_native) identifier_native
(False) False
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_content_str) identifier_content_str
(call
(identifier__create_html_file_content) identifier__create_html_file_content
(argument_list
(identifier_translations) identifier_translations
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_html_string) identifier_html_string
(call
(attribute
(identifier_HTML_TEMPLATE) identifier_HTML_TEMPLATE
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"{% word %}") string_"{% word %}"
(identifier_word) identifier_word
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_html_string) identifier_html_string
(call
(attribute
(identifier_html_string) identifier_html_string
(identifier_replace) identifier_replace
)attribute
(argument_list
(string_"{% content %}") string_"{% content %}"
(identifier_content_str) identifier_content_str
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_trans_dir) identifier_trans_dir
(string_"translations") string_"translations"
)assignment
)expression_statement
(if_statement
(identifier_native) identifier_native
(block
(expression_statement
(augmented_assignment
(identifier_trans_dir) identifier_trans_dir
(string_"_native") string_"_native"
)augmented_assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_translations_dir) identifier_translations_dir
(call
(attribute
(identifier_data_dir) identifier_data_dir
(identifier_joinpath) identifier_joinpath
)attribute
(argument_list
(identifier_trans_dir) identifier_trans_dir
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_fname) identifier_fname
(call
(attribute
(identifier_translations_dir) identifier_translations_dir
(identifier_joinpath) identifier_joinpath
)attribute
(argument_list
(call
(attribute
(string_"{word}.html") string_"{word}.html"
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_word) identifier_word
(identifier_word) identifier_word
)keyword_argument
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(identifier_save_file) identifier_save_file
(argument_list
(identifier_fname) identifier_fname
(identifier_html_string) identifier_html_string
(keyword_argument
(identifier_mk_parents) identifier_mk_parents
(True) True
)keyword_argument
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Create html file of word translations.
Parameters
----------
word : str
Word that was translated.
tralnslations : dict
Dictionary of word translations.
data_dir : pathlib.Path
Location where html files are saved. |
(module
(function_definition
(function_name_createUser) function_name_createUser
(parameters
(identifier_self) identifier_self
(identifier_localpart) identifier_localpart
(identifier_domain) identifier_domain
(default_parameter
(identifier_password) identifier_password
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_loginSystem) identifier_loginSystem
(call
(attribute
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_browser) identifier_browser
)attribute
(identifier_store) identifier_store
)attribute
(identifier_parent) identifier_parent
)attribute
(identifier_findUnique) identifier_findUnique
)attribute
(argument_list
(attribute
(identifier_userbase) identifier_userbase
(identifier_LoginSystem) identifier_LoginSystem
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_password) identifier_password
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_password) identifier_password
(call
(attribute
(string_u'') string_u''
(identifier_join) identifier_join
)attribute
(argument_list
(list_comprehension
(call
(attribute
(identifier_random) identifier_random
(identifier_choice) identifier_choice
)attribute
(argument_list
(binary_operator
(attribute
(identifier_string) identifier_string
(identifier_ascii_letters) identifier_ascii_letters
)attribute
(attribute
(identifier_string) identifier_string
(identifier_digits) identifier_digits
)attribute
)binary_operator
)argument_list
)call
(for_in_clause
(identifier_i) identifier_i
(call
(identifier_xrange) identifier_xrange
(argument_list
(integer_8) integer_8
)argument_list
)call
)for_in_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_loginSystem) identifier_loginSystem
(identifier_addAccount) identifier_addAccount
)attribute
(argument_list
(identifier_localpart) identifier_localpart
(identifier_domain) identifier_domain
(identifier_password) identifier_password
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Create a new, blank user account with the given name and domain and, if
specified, with the given password.
@type localpart: C{unicode}
@param localpart: The local portion of the username. ie, the
C{'alice'} in C{'alice@example.com'}.
@type domain: C{unicode}
@param domain: The domain portion of the username. ie, the
C{'example.com'} in C{'alice@example.com'}.
@type password: C{unicode} or C{None}
@param password: The password to associate with the new account. If
C{None}, generate a new password automatically. |
(module
(function_definition
(function_name_update_dns) function_name_update_dns
(parameters
(identifier_self) identifier_self
(identifier_new_ip) identifier_new_ip
)parameters
(block
(expression_statement
(assignment
(identifier_headers) identifier_headers
(None) None
)assignment
)expression_statement
(if_statement
(comparison_operator
(attribute
(identifier_self) identifier_self
(identifier_auth_type) identifier_auth_type
)attribute
(string_'T') string_'T'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_api_call_url) identifier_api_call_url
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__base_url) identifier__base_url
)attribute
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_hostname) identifier_hostname
(attribute
(identifier_self) identifier_self
(identifier_hostname) identifier_hostname
)attribute
)keyword_argument
(keyword_argument
(identifier_token) identifier_token
(attribute
(attribute
(identifier_self) identifier_self
(identifier_auth) identifier_auth
)attribute
(identifier_token) identifier_token
)attribute
)keyword_argument
(keyword_argument
(identifier_ip) identifier_ip
(identifier_new_ip) identifier_new_ip
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_api_call_url) identifier_api_call_url
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier__base_url) identifier__base_url
)attribute
(identifier_format) identifier_format
)attribute
(argument_list
(keyword_argument
(identifier_hostname) identifier_hostname
(attribute
(identifier_self) identifier_self
(identifier_hostname) identifier_hostname
)attribute
)keyword_argument
(keyword_argument
(identifier_ip) identifier_ip
(identifier_new_ip) identifier_new_ip
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_headers) identifier_headers
(dictionary
(pair
(string_'Authorization') string_'Authorization'
(binary_operator
(string_"Basic %s") string_"Basic %s"
(call
(attribute
(attribute
(attribute
(identifier_self) identifier_self
(identifier_auth) identifier_auth
)attribute
(identifier_base64key) identifier_base64key
)attribute
(identifier_decode) identifier_decode
)attribute
(argument_list
(string_'utf-8') string_'utf-8'
)argument_list
)call
)binary_operator
)pair
(pair
(string_'User-Agent') string_'User-Agent'
(binary_operator
(string_"%s/%s %s") string_"%s/%s %s"
(tuple
(identifier___title__) identifier___title__
(identifier___version__) identifier___version__
(identifier___email__) identifier___email__
)tuple
)binary_operator
)pair
)dictionary
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(assignment
(identifier_r) identifier_r
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(identifier_api_call_url) identifier_api_call_url
(keyword_argument
(identifier_headers) identifier_headers
(identifier_headers) identifier_headers
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_last_ddns_response) identifier_last_ddns_response
)attribute
(call
(attribute
(call
(identifier_str) identifier_str
(argument_list
(attribute
(identifier_r) identifier_r
(identifier_text) identifier_text
)attribute
)argument_list
)call
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(return_statement
(expression_list
(attribute
(identifier_r) identifier_r
(identifier_status_code) identifier_status_code
)attribute
(attribute
(identifier_r) identifier_r
(identifier_text) identifier_text
)attribute
)expression_list
)return_statement
)block
)function_definition
)module | Call No-IP API based on dict login_info and return the status code. |
(module
(function_definition
(function_name__add_edge) function_name__add_edge
(parameters
(identifier_self) identifier_self
(identifier_layer) identifier_layer
(identifier_input_id) identifier_input_id
(identifier_output_id) identifier_output_id
)parameters
(block
(if_statement
(comparison_operator
(identifier_layer) identifier_layer
(attribute
(identifier_self) identifier_self
(identifier_layer_to_id) identifier_layer_to_id
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(identifier_layer_id) identifier_layer_id
(subscript
(attribute
(identifier_self) identifier_self
(identifier_layer_to_id) identifier_layer_to_id
)attribute
(identifier_layer) identifier_layer
)subscript
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_input_id) identifier_input_id
(subscript
(attribute
(identifier_self) identifier_self
(identifier_layer_id_to_input_node_ids) identifier_layer_id_to_input_node_ids
)attribute
(identifier_layer_id) identifier_layer_id
)subscript
)comparison_operator
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_layer_id_to_input_node_ids) identifier_layer_id_to_input_node_ids
)attribute
(identifier_layer_id) identifier_layer_id
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_input_id) identifier_input_id
)argument_list
)call
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_output_id) identifier_output_id
(subscript
(attribute
(identifier_self) identifier_self
(identifier_layer_id_to_output_node_ids) identifier_layer_id_to_output_node_ids
)attribute
(identifier_layer_id) identifier_layer_id
)subscript
)comparison_operator
(block
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_layer_id_to_output_node_ids) identifier_layer_id_to_output_node_ids
)attribute
(identifier_layer_id) identifier_layer_id
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_output_id) identifier_output_id
)argument_list
)call
)expression_statement
)block
)if_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_layer_id) identifier_layer_id
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_layer_list) identifier_layer_list
)attribute
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_layer_list) identifier_layer_list
)attribute
(identifier_append) identifier_append
)attribute
(argument_list
(identifier_layer) identifier_layer
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_layer_to_id) identifier_layer_to_id
)attribute
(identifier_layer) identifier_layer
)subscript
(identifier_layer_id) identifier_layer_id
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_layer_id_to_input_node_ids) identifier_layer_id_to_input_node_ids
)attribute
(identifier_layer_id) identifier_layer_id
)subscript
(list
(identifier_input_id) identifier_input_id
)list
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier_layer_id_to_output_node_ids) identifier_layer_id_to_output_node_ids
)attribute
(identifier_layer_id) identifier_layer_id
)subscript
(list
(identifier_output_id) identifier_output_id
)list
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_adj_list) identifier_adj_list
)attribute
(identifier_input_id) identifier_input_id
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_output_id) identifier_output_id
(identifier_layer_id) identifier_layer_id
)tuple
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier_reverse_adj_list) identifier_reverse_adj_list
)attribute
(identifier_output_id) identifier_output_id
)subscript
(identifier_append) identifier_append
)attribute
(argument_list
(tuple
(identifier_input_id) identifier_input_id
(identifier_layer_id) identifier_layer_id
)tuple
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Add a new layer to the graph. The nodes should be created in advance. |
(module
(function_definition
(function_name__updateToDeleted) function_name__updateToDeleted
(parameters
(identifier_self) identifier_self
(identifier_directory) identifier_directory
(identifier_fn) identifier_fn
(identifier_dentry) identifier_dentry
(identifier_db) identifier_db
(identifier_service) identifier_service
)parameters
(block
(if_statement
(comparison_operator
(identifier_fn) identifier_fn
(identifier_db) identifier_db
)comparison_operator
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_"%s - rm: not in DB, skipping!") string_"%s - rm: not in DB, skipping!"
(parenthesized_expression
(identifier_fn) identifier_fn
)parenthesized_expression
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_services) identifier_services
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_sman) identifier_sman
)attribute
(identifier_GetServices) identifier_GetServices
)attribute
(argument_list
(identifier_fn) identifier_fn
)argument_list
)call
)assignment
)expression_statement
(if_statement
(parenthesized_expression
(not_operator
(identifier_services) identifier_services
)not_operator
)parenthesized_expression
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_"%s - no manger of this file type found") string_"%s - no manger of this file type found"
(parenthesized_expression
(identifier_fn) identifier_fn
)parenthesized_expression
)binary_operator
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)if_statement
(if_statement
(identifier_service) identifier_service
(block
(if_statement
(call
(attribute
(subscript
(subscript
(identifier_db) identifier_db
(identifier_fn) identifier_fn
)subscript
(string_'services') string_'services'
)subscript
(identifier_has_key) identifier_has_key
)attribute
(argument_list
(identifier_service) identifier_service
)argument_list
)call
(block
(expression_statement
(assignment
(subscript
(subscript
(subscript
(subscript
(identifier_db) identifier_db
(identifier_fn) identifier_fn
)subscript
(string_'services') string_'services'
)subscript
(identifier_service) identifier_service
)subscript
(string_'status') string_'status'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_ST_DELETED) identifier_ST_DELETED
)attribute
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(binary_operator
(string_"%s - Service %s doesn't exist, can't delete") string_"%s - Service %s doesn't exist, can't delete"
(tuple
(identifier_fn) identifier_fn
(identifier_service) identifier_service
)tuple
)binary_operator
)argument_list
)call
)expression_statement
)block
)else_clause
)if_statement
(return_statement
)return_statement
)block
)if_statement
(for_statement
(identifier_service) identifier_service
(subscript
(subscript
(identifier_db) identifier_db
(identifier_fn) identifier_fn
)subscript
(string_'services') string_'services'
)subscript
(block
(expression_statement
(assignment
(subscript
(subscript
(subscript
(subscript
(identifier_db) identifier_db
(identifier_fn) identifier_fn
)subscript
(string_'services') string_'services'
)subscript
(identifier_service) identifier_service
)subscript
(string_'status') string_'status'
)subscript
(attribute
(identifier_self) identifier_self
(identifier_ST_DELETED) identifier_ST_DELETED
)attribute
)assignment
)expression_statement
)block
)for_statement
(return_statement
)return_statement
)block
)function_definition
)module | Changes to status to 'D' as long as a handler exists,
directory - DIR where stuff is happening
fn - File name to be added
dentry - dictionary entry as returned by GetStatus for this file
db - pusher DB for this directory
service - service to delete, None means all |
(module
(function_definition
(function_name__logfile_sigterm_handler) function_name__logfile_sigterm_handler
(parameters
(list_splat_pattern
(identifier__) identifier__
)list_splat_pattern
)parameters
(block
(expression_statement
(call
(attribute
(identifier_logging) identifier_logging
(identifier_error) identifier_error
)attribute
(argument_list
(string_'Received SIGTERM.') string_'Received SIGTERM.'
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_write_logfile) identifier_write_logfile
(argument_list
)argument_list
)call
)expression_statement
(expression_statement
(call
(identifier_print) identifier_print
(argument_list
(string_'Received signal. Please see the log file for more information.') string_'Received signal. Please see the log file for more information.'
(keyword_argument
(identifier_file) identifier_file
(attribute
(identifier_sys) identifier_sys
(identifier_stderr) identifier_stderr
)attribute
)keyword_argument
)argument_list
)call
)expression_statement
(expression_statement
(call
(attribute
(identifier_sys) identifier_sys
(identifier_exit) identifier_exit
)attribute
(argument_list
(identifier_signal) identifier_signal
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Handle exit signals and write out a log file.
Raises:
SystemExit: Contains the signal as the return code. |
(module
(function_definition
(function_name__ensure_product_string) function_name__ensure_product_string
(parameters
(identifier_cls) identifier_cls
(identifier_product) identifier_product
)parameters
(block
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_product) identifier_product
(identifier_str) identifier_str
)argument_list
)call
(block
(return_statement
(identifier_product) identifier_product
)return_statement
)block
)if_statement
(if_statement
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_product) identifier_product
(identifier_list) identifier_list
)argument_list
)call
(block
(return_statement
(call
(attribute
(attribute
(identifier_os) identifier_os
(identifier_path) identifier_path
)attribute
(identifier_join) identifier_join
)attribute
(argument_list
(list_splat
(identifier_product) identifier_product
)list_splat
)argument_list
)call
)return_statement
)block
)if_statement
(raise_statement
(call
(identifier_DataError) identifier_DataError
(argument_list
(string_"Unknown object (not str or list) specified as a component product") string_"Unknown object (not str or list) specified as a component product"
(keyword_argument
(identifier_product) identifier_product
(identifier_product) identifier_product
)keyword_argument
)argument_list
)call
)raise_statement
)block
)function_definition
)module | Ensure that all product locations are strings.
Older components specify paths as lists of path components. Join
those paths into a normal path string. |
(module
(function_definition
(function_name_read_mesh) function_name_read_mesh
(parameters
(identifier_fname) identifier_fname
)parameters
(block
(expression_statement
(assignment
(identifier_fmt) identifier_fmt
(call
(attribute
(subscript
(call
(attribute
(identifier_op) identifier_op
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
(integer_1) integer_1
)subscript
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_fmt) identifier_fmt
(string_'.gz') string_'.gz'
)comparison_operator
(block
(expression_statement
(assignment
(identifier_fmt) identifier_fmt
(call
(attribute
(subscript
(call
(attribute
(identifier_op) identifier_op
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(subscript
(call
(attribute
(identifier_op) identifier_op
(identifier_splitext) identifier_splitext
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
(integer_0) integer_0
)subscript
)argument_list
)call
(integer_1) integer_1
)subscript
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_fmt) identifier_fmt
(parenthesized_expression
(string_'.obj') string_'.obj'
)parenthesized_expression
)comparison_operator
(block
(return_statement
(call
(attribute
(identifier_WavefrontReader) identifier_WavefrontReader
(identifier_read) identifier_read
)attribute
(argument_list
(identifier_fname) identifier_fname
)argument_list
)call
)return_statement
)block
(elif_clause
(not_operator
(identifier_format) identifier_format
)not_operator
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'read_mesh needs could not determine format.') string_'read_mesh needs could not determine format.'
)argument_list
)call
)raise_statement
)block
)elif_clause
(else_clause
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(binary_operator
(string_'read_mesh does not understand format %s.') string_'read_mesh does not understand format %s.'
(identifier_fmt) identifier_fmt
)binary_operator
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Read mesh data from file.
Parameters
----------
fname : str
File name to read. Format will be inferred from the filename.
Currently only '.obj' and '.obj.gz' are supported.
Returns
-------
vertices : array
Vertices.
faces : array | None
Triangle face definitions.
normals : array
Normals for the mesh.
texcoords : array | None
Texture coordinates. |
(module
(function_definition
(function_name_from_config) function_name_from_config
(parameters
(identifier_cls) identifier_cls
(identifier_name) identifier_name
(identifier_config) identifier_config
)parameters
(block
(expression_statement
(call
(attribute
(identifier_cls) identifier_cls
(identifier_validate_config) identifier_validate_config
)attribute
(argument_list
(identifier_config) identifier_config
)argument_list
)call
)expression_statement
(expression_statement
(assignment
(identifier_instance) identifier_instance
(call
(identifier_cls) identifier_cls
(argument_list
)argument_list
)call
)assignment
)expression_statement
(if_statement
(not_operator
(attribute
(identifier_instance) identifier_instance
(identifier_name) identifier_name
)attribute
)not_operator
(block
(expression_statement
(assignment
(attribute
(identifier_instance) identifier_instance
(identifier_name) identifier_name
)attribute
(call
(attribute
(identifier_config) identifier_config
(identifier_get) identifier_get
)attribute
(argument_list
(string_"name") string_"name"
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_instance) identifier_instance
(identifier_apply_config) identifier_apply_config
)attribute
(argument_list
(identifier_config) identifier_config
)argument_list
)call
)expression_statement
(return_statement
(identifier_instance) identifier_instance
)return_statement
)block
)function_definition
)module | Returns a Configurable instance with the given name and config.
By default this is a simple matter of calling the constructor, but
subclasses that are also `Pluggable` instances override this in order
to check that the plugin is installed correctly first. |
(module
(function_definition
(function_name_get_resource) function_name_get_resource
(parameters
(identifier_self) identifier_self
(identifier_path) identifier_path
)parameters
(block
(expression_statement
(assignment
(identifier_response) identifier_response
(call
(attribute
(identifier_self) identifier_self
(identifier__http_request) identifier__http_request
)attribute
(argument_list
(identifier_path) identifier_path
)argument_list
)call
)assignment
)expression_statement
(try_statement
(block
(return_statement
(call
(attribute
(identifier_response) identifier_response
(identifier_json) identifier_json
)attribute
(argument_list
)argument_list
)call
)return_statement
)block
(except_clause
(identifier_ValueError) identifier_ValueError
(block
(raise_statement
(call
(attribute
(identifier_exception) identifier_exception
(identifier_ServiceException) identifier_ServiceException
)attribute
(argument_list
(string_"Invalid service response.") string_"Invalid service response."
)argument_list
)call
)raise_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Getting the required information from the API. |
(module
(function_definition
(function_name_redirect_stream) function_name_redirect_stream
(parameters
(identifier_system_stream) identifier_system_stream
(identifier_target_stream) identifier_target_stream
)parameters
(block
(if_statement
(comparison_operator
(identifier_target_stream) identifier_target_stream
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_target_fd) identifier_target_fd
(call
(attribute
(identifier_os) identifier_os
(identifier_open) identifier_open
)attribute
(argument_list
(attribute
(identifier_os) identifier_os
(identifier_devnull) identifier_devnull
)attribute
(attribute
(identifier_os) identifier_os
(identifier_O_RDWR) identifier_O_RDWR
)attribute
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_target_fd) identifier_target_fd
(call
(attribute
(identifier_target_stream) identifier_target_stream
(identifier_fileno) identifier_fileno
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
(expression_statement
(call
(attribute
(identifier_os) identifier_os
(identifier_dup2) identifier_dup2
)attribute
(argument_list
(identifier_target_fd) identifier_target_fd
(call
(attribute
(identifier_system_stream) identifier_system_stream
(identifier_fileno) identifier_fileno
)attribute
(argument_list
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)function_definition
)module | Redirect a system stream to a specified file.
`system_stream` is a standard system stream such as
``sys.stdout``. `target_stream` is an open file object that
should replace the corresponding system stream object.
If `target_stream` is ``None``, defaults to opening the
operating system's null device and using its file descriptor. |
(module
(function_definition
(function_name_get_clouds) function_name_get_clouds
(parameters
(typed_parameter
(identifier_wxdata) identifier_wxdata
(type
(list
(identifier_str) identifier_str
)list
)type
)typed_parameter
)parameters
(type
(tuple
(list
(identifier_str) identifier_str
)list
(identifier_list) identifier_list
)tuple
)type
(block
(expression_statement
(assignment
(identifier_clouds) identifier_clouds
(list
)list
)assignment
)expression_statement
(for_statement
(pattern_list
(identifier_i) identifier_i
(identifier_item) identifier_item
)pattern_list
(call
(identifier_reversed) identifier_reversed
(argument_list
(call
(identifier_list) identifier_list
(argument_list
(call
(identifier_enumerate) identifier_enumerate
(argument_list
(identifier_wxdata) identifier_wxdata
)argument_list
)call
)argument_list
)call
)argument_list
)call
(block
(if_statement
(boolean_operator
(comparison_operator
(subscript
(identifier_item) identifier_item
(slice
(colon) colon
(integer_3) integer_3
)slice
)subscript
(identifier_CLOUD_LIST) identifier_CLOUD_LIST
)comparison_operator
(comparison_operator
(subscript
(identifier_item) identifier_item
(slice
(colon) colon
(integer_2) integer_2
)slice
)subscript
(string_'VV') string_'VV'
)comparison_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_cloud) identifier_cloud
(call
(attribute
(identifier_wxdata) identifier_wxdata
(identifier_pop) identifier_pop
)attribute
(argument_list
(identifier_i) identifier_i
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(call
(attribute
(identifier_clouds) identifier_clouds
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_make_cloud) identifier_make_cloud
(argument_list
(identifier_cloud) identifier_cloud
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(expression_list
(identifier_wxdata) identifier_wxdata
(call
(identifier_sorted) identifier_sorted
(argument_list
(identifier_clouds) identifier_clouds
(keyword_argument
(identifier_key) identifier_key
(lambda
(lambda_parameters
(identifier_cloud) identifier_cloud
)lambda_parameters
(tuple
(attribute
(identifier_cloud) identifier_cloud
(identifier_altitude) identifier_altitude
)attribute
(attribute
(identifier_cloud) identifier_cloud
(identifier_type) identifier_type
)attribute
)tuple
)lambda
)keyword_argument
)argument_list
)call
)expression_list
)return_statement
)block
)function_definition
)module | Returns the report list and removed list of split cloud layers |
(module
(function_definition
(function_name_get_time) function_name_get_time
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_force_uptime) identifier_force_uptime
(False) False
)default_parameter
)parameters
(block
(if_statement
(identifier_force_uptime) identifier_force_uptime
(block
(return_statement
(attribute
(identifier_self) identifier_self
(identifier_uptime) identifier_uptime
)attribute
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_time) identifier_time
(binary_operator
(attribute
(identifier_self) identifier_self
(identifier_uptime) identifier_uptime
)attribute
(attribute
(identifier_self) identifier_self
(identifier_time_offset) identifier_time_offset
)attribute
)binary_operator
)assignment
)expression_statement
(if_statement
(attribute
(identifier_self) identifier_self
(identifier_is_utc) identifier_is_utc
)attribute
(block
(expression_statement
(augmented_assignment
(identifier_time) identifier_time
(parenthesized_expression
(binary_operator
(integer_1) integer_1
(integer_31) integer_31
)binary_operator
)parenthesized_expression
)augmented_assignment
)expression_statement
)block
)if_statement
(return_statement
(identifier_time) identifier_time
)return_statement
)block
)function_definition
)module | Get the current UTC time or uptime.
By default, this method will return UTC time if possible and fall back
to uptime if not. If you specify, force_uptime=True, it will always
return uptime even if utc time is available.
Args:
force_uptime (bool): Always return uptime, defaults to False.
Returns:
int: The current uptime or encoded utc time. |
(module
(function_definition
(function_name_started_tasks) function_name_started_tasks
(parameters
(identifier_self) identifier_self
(default_parameter
(identifier_task_registry_id) identifier_task_registry_id
(None) None
)default_parameter
(default_parameter
(identifier_task_cls) identifier_task_cls
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(identifier_task_registry_id) identifier_task_registry_id
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_task) identifier_task
(None) None
)assignment
)expression_statement
(for_statement
(identifier_registered_task) identifier_registered_task
(attribute
(identifier_self) identifier_self
(identifier___started) identifier___started
)attribute
(block
(if_statement
(comparison_operator
(attribute
(identifier_registered_task) identifier_registered_task
(identifier___registry_tag__) identifier___registry_tag__
)attribute
(identifier_task_registry_id) identifier_task_registry_id
)comparison_operator
(block
(expression_statement
(assignment
(identifier_task) identifier_task
(identifier_registered_task) identifier_registered_task
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(if_statement
(boolean_operator
(comparison_operator
(identifier_task_cls) identifier_task_cls
(None) None
)comparison_operator
(comparison_operator
(identifier_task) identifier_task
(None) None
)comparison_operator
)boolean_operator
(block
(if_statement
(comparison_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_task) identifier_task
(identifier_task_cls) identifier_task_cls
)argument_list
)call
(True) True
)comparison_operator
(block
(return_statement
(identifier_task) identifier_task
)return_statement
)block
)if_statement
(return_statement
(None) None
)return_statement
)block
)if_statement
(return_statement
(identifier_task) identifier_task
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_filter) identifier_filter
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(comparison_operator
(identifier_x) identifier_x
(None) None
)comparison_operator
)lambda
(attribute
(identifier_self) identifier_self
(identifier___started) identifier___started
)attribute
)argument_list
)call
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_task_cls) identifier_task_cls
(None) None
)comparison_operator
(block
(expression_statement
(assignment
(identifier_result) identifier_result
(call
(identifier_filter) identifier_filter
(argument_list
(lambda
(lambda_parameters
(identifier_x) identifier_x
)lambda_parameters
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_x) identifier_x
(identifier_task_cls) identifier_task_cls
)argument_list
)call
)lambda
(identifier_result) identifier_result
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(return_statement
(call
(identifier_tuple) identifier_tuple
(argument_list
(identifier_result) identifier_result
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return tasks that was started. Result way be filtered by the given arguments.
:param task_registry_id: if it is specified, then try to return single task which id is the same as \
this value.
:param task_cls: if it is specified then result will be consists of this subclass only
:return: None or WTask or tuple of WTask |
(module
(function_definition
(function_name_parse_unifrac_v1_8) function_name_parse_unifrac_v1_8
(parameters
(identifier_unifrac) identifier_unifrac
(identifier_file_data) identifier_file_data
)parameters
(block
(for_statement
(identifier_line) identifier_line
(identifier_file_data) identifier_file_data
(block
(if_statement
(comparison_operator
(identifier_line) identifier_line
(string_"") string_""
)comparison_operator
(block
(break_statement
)break_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_line) identifier_line
(call
(attribute
(identifier_line) identifier_line
(identifier_split) identifier_split
)attribute
(argument_list
(string_"\t") string_"\t"
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(subscript
(identifier_unifrac) identifier_unifrac
(string_"pcd") string_"pcd"
)subscript
(subscript
(identifier_line) identifier_line
(integer_0) integer_0
)subscript
)subscript
(list_comprehension
(call
(identifier_float) identifier_float
(argument_list
(identifier_e) identifier_e
)argument_list
)call
(for_in_clause
(identifier_e) identifier_e
(subscript
(identifier_line) identifier_line
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)for_statement
(expression_statement
(assignment
(subscript
(identifier_unifrac) identifier_unifrac
(string_"eigvals") string_"eigvals"
)subscript
(list_comprehension
(call
(identifier_float) identifier_float
(argument_list
(identifier_entry) identifier_entry
)argument_list
)call
(for_in_clause
(identifier_entry) identifier_entry
(subscript
(call
(attribute
(subscript
(identifier_file_data) identifier_file_data
(unary_operator
(integer_2) integer_2
)unary_operator
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
(string_"\t") string_"\t"
)argument_list
)call
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(expression_statement
(assignment
(subscript
(identifier_unifrac) identifier_unifrac
(string_"varexp") string_"varexp"
)subscript
(list_comprehension
(call
(identifier_float) identifier_float
(argument_list
(identifier_entry) identifier_entry
)argument_list
)call
(for_in_clause
(identifier_entry) identifier_entry
(subscript
(call
(attribute
(subscript
(identifier_file_data) identifier_file_data
(unary_operator
(integer_1) integer_1
)unary_operator
)subscript
(identifier_split) identifier_split
)attribute
(argument_list
(string_"\t") string_"\t"
)argument_list
)call
(slice
(integer_1) integer_1
(colon) colon
)slice
)subscript
)for_in_clause
)list_comprehension
)assignment
)expression_statement
(return_statement
(identifier_unifrac) identifier_unifrac
)return_statement
)block
)function_definition
)module | Function to parse data from older version of unifrac file obtained from Qiime version
1.8 and earlier.
:type unifrac: dict
:param unifracFN: The path to the unifrac results file
:type file_data: list
:param file_data: Unifrac data lines after stripping whitespace characters. |
(module
(function_definition
(function_name_server_document) function_name_server_document
(parameters
(default_parameter
(identifier_url) identifier_url
(string_"default") string_"default"
)default_parameter
(default_parameter
(identifier_relative_urls) identifier_relative_urls
(False) False
)default_parameter
(default_parameter
(identifier_resources) identifier_resources
(string_"default") string_"default"
)default_parameter
(default_parameter
(identifier_arguments) identifier_arguments
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_url) identifier_url
(call
(identifier__clean_url) identifier__clean_url
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_app_path) identifier_app_path
(call
(identifier__get_app_path) identifier__get_app_path
(argument_list
(identifier_url) identifier_url
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_elementid) identifier_elementid
(call
(identifier_make_id) identifier_make_id
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_src_path) identifier_src_path
(call
(identifier__src_path) identifier__src_path
(argument_list
(identifier_url) identifier_url
(identifier_elementid) identifier_elementid
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_src_path) identifier_src_path
(call
(identifier__process_app_path) identifier__process_app_path
(argument_list
(identifier_app_path) identifier_app_path
)argument_list
)call
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_src_path) identifier_src_path
(call
(identifier__process_relative_urls) identifier__process_relative_urls
(argument_list
(identifier_relative_urls) identifier_relative_urls
(identifier_url) identifier_url
)argument_list
)call
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_src_path) identifier_src_path
(call
(identifier__process_resources) identifier__process_resources
(argument_list
(identifier_resources) identifier_resources
)argument_list
)call
)augmented_assignment
)expression_statement
(expression_statement
(augmented_assignment
(identifier_src_path) identifier_src_path
(call
(identifier__process_arguments) identifier__process_arguments
(argument_list
(identifier_arguments) identifier_arguments
)argument_list
)call
)augmented_assignment
)expression_statement
(expression_statement
(assignment
(identifier_tag) identifier_tag
(call
(attribute
(identifier_AUTOLOAD_TAG) identifier_AUTOLOAD_TAG
(identifier_render) identifier_render
)attribute
(argument_list
(keyword_argument
(identifier_src_path) identifier_src_path
(identifier_src_path) identifier_src_path
)keyword_argument
(keyword_argument
(identifier_app_path) identifier_app_path
(identifier_app_path) identifier_app_path
)keyword_argument
(keyword_argument
(identifier_elementid) identifier_elementid
(identifier_elementid) identifier_elementid
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(identifier_encode_utf8) identifier_encode_utf8
(argument_list
(identifier_tag) identifier_tag
)argument_list
)call
)return_statement
)block
)function_definition
)module | Return a script tag that embeds content from a Bokeh server.
Bokeh apps embedded using these methods will NOT set the browser window title.
Args:
url (str, optional) :
A URL to a Bokeh application on a Bokeh server (default: "default")
If ``"default"`` the default URL ``{DEFAULT_SERVER_HTTP_URL}`` will be used.
relative_urls (bool, optional) :
Whether to use relative URLs for resources.
If ``True`` the links generated for resources such a BokehJS
JavaScript and CSS will be relative links.
This should normally be set to ``False``, but must be set to
``True`` in situations where only relative URLs will work. E.g.
when running the Bokeh behind reverse-proxies under certain
configurations
resources (str) : A string specifying what resources need to be loaded
along with the document.
If ``default`` then the default JS/CSS bokeh files will be loaded.
If None then none of the resource files will be loaded. This is
useful if you prefer to serve those resource files via other means
(e.g. from a caching server). Be careful, however, that the resource
files you'll load separately are of the same version as that of the
server's, otherwise the rendering may not work correctly.
arguments (dict[str, str], optional) :
A dictionary of key/values to be passed as HTTP request arguments
to Bokeh application code (default: None)
Returns:
A ``<script>`` tag that will embed content from a Bokeh Server. |
(module
(function_definition
(function_name_tag_myself) function_name_tag_myself
(parameters
(default_parameter
(identifier_project) identifier_project
(string_'cwc') string_'cwc'
)default_parameter
(dictionary_splat_pattern
(identifier_other_tags) identifier_other_tags
)dictionary_splat_pattern
)parameters
(block
(expression_statement
(assignment
(identifier_base_url) identifier_base_url
(string_"http://169.254.169.254") string_"http://169.254.169.254"
)assignment
)expression_statement
(try_statement
(block
(expression_statement
(assignment
(identifier_resp) identifier_resp
(call
(attribute
(identifier_requests) identifier_requests
(identifier_get) identifier_get
)attribute
(argument_list
(binary_operator
(identifier_base_url) identifier_base_url
(string_"/latest/meta-data/instance-id") string_"/latest/meta-data/instance-id"
)binary_operator
)argument_list
)call
)assignment
)expression_statement
)block
(except_clause
(attribute
(attribute
(identifier_requests) identifier_requests
(identifier_exceptions) identifier_exceptions
)attribute
(identifier_ConnectionError) identifier_ConnectionError
)attribute
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(concatenated_string
(string_"Could not connect to service. Note this should only ") string_"Could not connect to service. Note this should only "
(string_"be run from within a batch job.") string_"be run from within a batch job."
)concatenated_string
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)except_clause
)try_statement
(expression_statement
(assignment
(identifier_instance_id) identifier_instance_id
(attribute
(identifier_resp) identifier_resp
(identifier_text) identifier_text
)attribute
)assignment
)expression_statement
(expression_statement
(call
(identifier_tag_instance) identifier_tag_instance
(argument_list
(identifier_instance_id) identifier_instance_id
(keyword_argument
(identifier_project) identifier_project
(identifier_project) identifier_project
)keyword_argument
(dictionary_splat
(identifier_other_tags) identifier_other_tags
)dictionary_splat
)argument_list
)call
)expression_statement
(return_statement
)return_statement
)block
)function_definition
)module | Function run when indra is used in an EC2 instance to apply tags. |
(module
(function_definition
(function_name_extract_xz) function_name_extract_xz
(parameters
(identifier_archive) identifier_archive
(identifier_compression) identifier_compression
(identifier_cmd) identifier_cmd
(identifier_verbosity) identifier_verbosity
(identifier_interactive) identifier_interactive
(identifier_outdir) identifier_outdir
)parameters
(block
(return_statement
(call
(identifier__extract) identifier__extract
(argument_list
(identifier_archive) identifier_archive
(identifier_compression) identifier_compression
(identifier_cmd) identifier_cmd
(string_'xz') string_'xz'
(identifier_verbosity) identifier_verbosity
(identifier_outdir) identifier_outdir
)argument_list
)call
)return_statement
)block
)function_definition
)module | Extract an XZ archive with the lzma Python module. |
(module
(function_definition
(function_name_percent_records_missing_location) function_name_percent_records_missing_location
(parameters
(identifier_user) identifier_user
(default_parameter
(identifier_method) identifier_method
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_user) identifier_user
(identifier_records) identifier_records
)attribute
)argument_list
)call
(integer_0) integer_0
)comparison_operator
(block
(return_statement
(float_0.) float_0.
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_missing_locations) identifier_missing_locations
(call
(identifier_sum) identifier_sum
(argument_list
(list_comprehension
(integer_1) integer_1
(for_in_clause
(identifier_record) identifier_record
(attribute
(identifier_user) identifier_user
(identifier_records) identifier_records
)attribute
)for_in_clause
(if_clause
(comparison_operator
(call
(attribute
(attribute
(identifier_record) identifier_record
(identifier_position) identifier_position
)attribute
(identifier__get_location) identifier__get_location
)attribute
(argument_list
(identifier_user) identifier_user
)argument_list
)call
(None) None
)comparison_operator
)if_clause
)list_comprehension
)argument_list
)call
)assignment
)expression_statement
(return_statement
(binary_operator
(call
(identifier_float) identifier_float
(argument_list
(identifier_missing_locations) identifier_missing_locations
)argument_list
)call
(call
(identifier_len) identifier_len
(argument_list
(attribute
(identifier_user) identifier_user
(identifier_records) identifier_records
)attribute
)argument_list
)call
)binary_operator
)return_statement
)block
)function_definition
)module | Return the percentage of records missing a location parameter. |
(module
(function_definition
(function_name_construct_user_list) function_name_construct_user_list
(parameters
(default_parameter
(identifier_raw_users) identifier_raw_users
(None) None
)default_parameter
)parameters
(block
(expression_statement
(assignment
(identifier_users) identifier_users
(call
(identifier_Users) identifier_Users
(argument_list
(keyword_argument
(identifier_oktypes) identifier_oktypes
(identifier_User) identifier_User
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(for_statement
(identifier_user_dict) identifier_user_dict
(identifier_raw_users) identifier_raw_users
(block
(expression_statement
(assignment
(identifier_public_keys) identifier_public_keys
(None) None
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_user_dict) identifier_user_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'public_keys') string_'public_keys'
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_public_keys) identifier_public_keys
(list_comprehension
(call
(identifier_PublicKey) identifier_PublicKey
(argument_list
(keyword_argument
(identifier_b64encoded) identifier_b64encoded
(identifier_x) identifier_x
)keyword_argument
(keyword_argument
(identifier_raw) identifier_raw
(None) None
)keyword_argument
)argument_list
)call
(for_in_clause
(identifier_x) identifier_x
(call
(attribute
(identifier_user_dict) identifier_user_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'public_keys') string_'public_keys'
)argument_list
)call
)for_in_clause
)list_comprehension
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(call
(attribute
(identifier_users) identifier_users
(identifier_append) identifier_append
)attribute
(argument_list
(call
(identifier_User) identifier_User
(argument_list
(keyword_argument
(identifier_name) identifier_name
(call
(attribute
(identifier_user_dict) identifier_user_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'name') string_'name'
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_passwd) identifier_passwd
(call
(attribute
(identifier_user_dict) identifier_user_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'passwd') string_'passwd'
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_uid) identifier_uid
(call
(attribute
(identifier_user_dict) identifier_user_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'uid') string_'uid'
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_gid) identifier_gid
(call
(attribute
(identifier_user_dict) identifier_user_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'gid') string_'gid'
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_home_dir) identifier_home_dir
(call
(attribute
(identifier_user_dict) identifier_user_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'home_dir') string_'home_dir'
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_gecos) identifier_gecos
(call
(attribute
(identifier_user_dict) identifier_user_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'gecos') string_'gecos'
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_shell) identifier_shell
(call
(attribute
(identifier_user_dict) identifier_user_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'shell') string_'shell'
)argument_list
)call
)keyword_argument
(keyword_argument
(identifier_public_keys) identifier_public_keys
(identifier_public_keys) identifier_public_keys
)keyword_argument
(keyword_argument
(identifier_sudoers_entry) identifier_sudoers_entry
(call
(attribute
(identifier_user_dict) identifier_user_dict
(identifier_get) identifier_get
)attribute
(argument_list
(string_'sudoers_entry') string_'sudoers_entry'
)argument_list
)call
)keyword_argument
)argument_list
)call
)argument_list
)call
)expression_statement
)block
)for_statement
(return_statement
(identifier_users) identifier_users
)return_statement
)block
)function_definition
)module | Construct a list of User objects from a list of dicts. |
(module
(function_definition
(function_name_has_variantcalls) function_name_has_variantcalls
(parameters
(identifier_data) identifier_data
)parameters
(block
(expression_statement
(assignment
(identifier_analysis) identifier_analysis
(call
(attribute
(call
(identifier_get_analysis) identifier_get_analysis
(argument_list
(identifier_data) identifier_data
)argument_list
)call
(identifier_lower) identifier_lower
)attribute
(argument_list
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_variant_pipeline) identifier_variant_pipeline
(call
(attribute
(identifier_analysis) identifier_analysis
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(tuple
(string_"standard") string_"standard"
(string_"variant") string_"variant"
(string_"variant2") string_"variant2"
)tuple
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_variantcaller) identifier_variantcaller
(call
(identifier_get_variantcaller) identifier_get_variantcaller
(argument_list
(identifier_data) identifier_data
)argument_list
)call
)assignment
)expression_statement
(return_statement
(boolean_operator
(identifier_variant_pipeline) identifier_variant_pipeline
(identifier_variantcaller) identifier_variantcaller
)boolean_operator
)return_statement
)block
)function_definition
)module | returns True if the data dictionary is configured for variant calling |
(module
(function_definition
(function_name_validate_ok_for_replace) function_name_validate_ok_for_replace
(parameters
(identifier_replacement) identifier_replacement
)parameters
(block
(expression_statement
(call
(identifier_validate_is_mapping) identifier_validate_is_mapping
(argument_list
(string_"replacement") string_"replacement"
(identifier_replacement) identifier_replacement
)argument_list
)call
)expression_statement
(if_statement
(boolean_operator
(identifier_replacement) identifier_replacement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_replacement) identifier_replacement
(identifier_RawBSONDocument) identifier_RawBSONDocument
)argument_list
)call
)not_operator
)boolean_operator
(block
(expression_statement
(assignment
(identifier_first) identifier_first
(call
(identifier_next) identifier_next
(argument_list
(call
(identifier_iter) identifier_iter
(argument_list
(identifier_replacement) identifier_replacement
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
(if_statement
(call
(attribute
(identifier_first) identifier_first
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_'$') string_'$'
)argument_list
)call
(block
(raise_statement
(call
(identifier_ValueError) identifier_ValueError
(argument_list
(string_'replacement can not include $ operators') string_'replacement can not include $ operators'
)argument_list
)call
)raise_statement
)block
)if_statement
)block
)if_statement
)block
)function_definition
)module | Validate a replacement document. |
(module
(function_definition
(function_name_batch_delete_intents) function_name_batch_delete_intents
(parameters
(identifier_self) identifier_self
(identifier_parent) identifier_parent
(identifier_intents) identifier_intents
(default_parameter
(identifier_retry) identifier_retry
(attribute
(attribute
(attribute
(attribute
(identifier_google) identifier_google
(identifier_api_core) identifier_api_core
)attribute
(identifier_gapic_v1) identifier_gapic_v1
)attribute
(identifier_method) identifier_method
)attribute
(identifier_DEFAULT) identifier_DEFAULT
)attribute
)default_parameter
(default_parameter
(identifier_timeout) identifier_timeout
(attribute
(attribute
(attribute
(attribute
(identifier_google) identifier_google
(identifier_api_core) identifier_api_core
)attribute
(identifier_gapic_v1) identifier_gapic_v1
)attribute
(identifier_method) identifier_method
)attribute
(identifier_DEFAULT) identifier_DEFAULT
)attribute
)default_parameter
(default_parameter
(identifier_metadata) identifier_metadata
(None) None
)default_parameter
)parameters
(block
(if_statement
(comparison_operator
(string_'batch_delete_intents') string_'batch_delete_intents'
(attribute
(identifier_self) identifier_self
(identifier__inner_api_calls) identifier__inner_api_calls
)attribute
)comparison_operator
(block
(expression_statement
(assignment
(subscript
(attribute
(identifier_self) identifier_self
(identifier__inner_api_calls) identifier__inner_api_calls
)attribute
(string_'batch_delete_intents') string_'batch_delete_intents'
)subscript
(call
(attribute
(attribute
(attribute
(attribute
(identifier_google) identifier_google
(identifier_api_core) identifier_api_core
)attribute
(identifier_gapic_v1) identifier_gapic_v1
)attribute
(identifier_method) identifier_method
)attribute
(identifier_wrap_method) identifier_wrap_method
)attribute
(argument_list
(attribute
(attribute
(identifier_self) identifier_self
(identifier_transport) identifier_transport
)attribute
(identifier_batch_delete_intents) identifier_batch_delete_intents
)attribute
(keyword_argument
(identifier_default_retry) identifier_default_retry
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__method_configs) identifier__method_configs
)attribute
(string_'BatchDeleteIntents') string_'BatchDeleteIntents'
)subscript
(identifier_retry) identifier_retry
)attribute
)keyword_argument
(keyword_argument
(identifier_default_timeout) identifier_default_timeout
(attribute
(subscript
(attribute
(identifier_self) identifier_self
(identifier__method_configs) identifier__method_configs
)attribute
(string_'BatchDeleteIntents') string_'BatchDeleteIntents'
)subscript
(identifier_timeout) identifier_timeout
)attribute
)keyword_argument
(keyword_argument
(identifier_client_info) identifier_client_info
(attribute
(identifier_self) identifier_self
(identifier__client_info) identifier__client_info
)attribute
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_request) identifier_request
(call
(attribute
(identifier_intent_pb2) identifier_intent_pb2
(identifier_BatchDeleteIntentsRequest) identifier_BatchDeleteIntentsRequest
)attribute
(argument_list
(keyword_argument
(identifier_parent) identifier_parent
(identifier_parent) identifier_parent
)keyword_argument
(keyword_argument
(identifier_intents) identifier_intents
(identifier_intents) identifier_intents
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_operation) identifier_operation
(call
(subscript
(attribute
(identifier_self) identifier_self
(identifier__inner_api_calls) identifier__inner_api_calls
)attribute
(string_'batch_delete_intents') string_'batch_delete_intents'
)subscript
(argument_list
(identifier_request) identifier_request
(keyword_argument
(identifier_retry) identifier_retry
(identifier_retry) identifier_retry
)keyword_argument
(keyword_argument
(identifier_timeout) identifier_timeout
(identifier_timeout) identifier_timeout
)keyword_argument
(keyword_argument
(identifier_metadata) identifier_metadata
(identifier_metadata) identifier_metadata
)keyword_argument
)argument_list
)call
)assignment
)expression_statement
(return_statement
(call
(attribute
(attribute
(attribute
(identifier_google) identifier_google
(identifier_api_core) identifier_api_core
)attribute
(identifier_operation) identifier_operation
)attribute
(identifier_from_gapic) identifier_from_gapic
)attribute
(argument_list
(identifier_operation) identifier_operation
(attribute
(attribute
(identifier_self) identifier_self
(identifier_transport) identifier_transport
)attribute
(identifier__operations_client) identifier__operations_client
)attribute
(attribute
(identifier_empty_pb2) identifier_empty_pb2
(identifier_Empty) identifier_Empty
)attribute
(keyword_argument
(identifier_metadata_type) identifier_metadata_type
(attribute
(identifier_struct_pb2) identifier_struct_pb2
(identifier_Struct) identifier_Struct
)attribute
)keyword_argument
)argument_list
)call
)return_statement
)block
)function_definition
)module | Deletes intents in the specified agent.
Operation <response: ``google.protobuf.Empty``>
Example:
>>> import dialogflow_v2
>>>
>>> client = dialogflow_v2.IntentsClient()
>>>
>>> parent = client.project_agent_path('[PROJECT]')
>>>
>>> # TODO: Initialize ``intents``:
>>> intents = []
>>>
>>> response = client.batch_delete_intents(parent, intents)
>>>
>>> def callback(operation_future):
... # Handle result.
... result = operation_future.result()
>>>
>>> response.add_done_callback(callback)
>>>
>>> # Handle metadata.
>>> metadata = response.metadata()
Args:
parent (str): Required. The name of the agent to delete all entities types for. Format:
``projects/<Project ID>/agent``.
intents (list[Union[dict, ~google.cloud.dialogflow_v2.types.Intent]]): Required. The collection of intents to delete. Only intent ``name`` must be
filled in.
If a dict is provided, it must be of the same form as the protobuf
message :class:`~google.cloud.dialogflow_v2.types.Intent`
retry (Optional[google.api_core.retry.Retry]): A retry object used
to retry requests. If ``None`` is specified, requests will not
be retried.
timeout (Optional[float]): The amount of time, in seconds, to wait
for the request to complete. Note that if ``retry`` is
specified, the timeout applies to each individual attempt.
metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata
that is provided to the method.
Returns:
A :class:`~google.cloud.dialogflow_v2.types._OperationFuture` instance.
Raises:
google.api_core.exceptions.GoogleAPICallError: If the request
failed for any reason.
google.api_core.exceptions.RetryError: If the request failed due
to a retryable error and retry attempts failed.
ValueError: If the parameters are invalid. |
(module
(function_definition
(function_name_merge) function_name_merge
(parameters
(identifier_self) identifier_self
(typed_parameter
(identifier_df) identifier_df
(type
(attribute
(identifier_pd) identifier_pd
(identifier_DataFrame) identifier_DataFrame
)attribute
)type
)typed_parameter
(typed_parameter
(identifier_on) identifier_on
(type
(identifier_str) identifier_str
)type
)typed_parameter
(typed_default_parameter
(identifier_how) identifier_how
(type
(identifier_str) identifier_str
)type
(string_"outer") string_"outer"
)typed_default_parameter
(dictionary_splat_pattern
(identifier_kwargs) identifier_kwargs
)dictionary_splat_pattern
)parameters
(block
(try_statement
(block
(expression_statement
(assignment
(identifier_df) identifier_df
(call
(attribute
(identifier_pd) identifier_pd
(identifier_merge) identifier_merge
)attribute
(argument_list
(attribute
(identifier_self) identifier_self
(identifier_df) identifier_df
)attribute
(identifier_df) identifier_df
(keyword_argument
(identifier_on) identifier_on
(identifier_on) identifier_on
)keyword_argument
(keyword_argument
(identifier_how) identifier_how
(identifier_how) identifier_how
)keyword_argument
(dictionary_splat
(identifier_kwargs) identifier_kwargs
)dictionary_splat
)argument_list
)call
)assignment
)expression_statement
(expression_statement
(assignment
(attribute
(identifier_self) identifier_self
(identifier_df) identifier_df
)attribute
(identifier_df) identifier_df
)assignment
)expression_statement
)block
(except_clause
(as_pattern
(identifier_Exception) identifier_Exception
(as_pattern_target
(identifier_e) identifier_e
)as_pattern_target
)as_pattern
(block
(expression_statement
(call
(attribute
(identifier_self) identifier_self
(identifier_err) identifier_err
)attribute
(argument_list
(identifier_e) identifier_e
(attribute
(identifier_self) identifier_self
(identifier_merge) identifier_merge
)attribute
(string_"Can not merge dataframes") string_"Can not merge dataframes"
)argument_list
)call
)expression_statement
)block
)except_clause
)try_statement
)block
)function_definition
)module | Set the main dataframe from the current dataframe and the passed
dataframe
:param df: the pandas dataframe to merge
:type df: pd.DataFrame
:param on: param for ``pd.merge``
:type on: str
:param how: param for ``pd.merge``, defaults to "outer"
:type how: str, optional
:param kwargs: keyword arguments for ``pd.merge`` |
(module
(function_definition
(function_name_get_cached_element_by_path) function_name_get_cached_element_by_path
(parameters
(identifier_data_tree) identifier_data_tree
(identifier_path) identifier_path
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_data_tree) identifier_data_tree
(identifier_ArTree) identifier_ArTree
)argument_list
)call
)not_operator
(block
(expression_statement
(call
(attribute
(identifier_logger) identifier_logger
(identifier_warning) identifier_warning
)attribute
(argument_list
(string_"%s not called with ArTree, return None") string_"%s not called with ArTree, return None"
(attribute
(identifier_get_cached_element_by_path) identifier_get_cached_element_by_path
(identifier___name__) identifier___name__
)attribute
)argument_list
)call
)expression_statement
(return_statement
(None) None
)return_statement
)block
)if_statement
(expression_statement
(assignment
(identifier_ptr) identifier_ptr
(identifier_data_tree) identifier_data_tree
)assignment
)expression_statement
(for_statement
(identifier_name) identifier_name
(call
(attribute
(identifier_path) identifier_path
(identifier_split) identifier_split
)attribute
(argument_list
(string_'/') string_'/'
)argument_list
)call
(block
(if_statement
(comparison_operator
(identifier_ptr) identifier_ptr
(None) None
)comparison_operator
(block
(return_statement
(None) None
)return_statement
)block
)if_statement
(if_statement
(call
(attribute
(identifier_name) identifier_name
(identifier_strip) identifier_strip
)attribute
(argument_list
)argument_list
)call
(block
(expression_statement
(assignment
(identifier_ptr) identifier_ptr
(call
(attribute
(identifier_ptr) identifier_ptr
(identifier_get_child_by_name) identifier_get_child_by_name
)attribute
(argument_list
(identifier_name) identifier_name
)argument_list
)call
)assignment
)expression_statement
)block
)if_statement
)block
)for_statement
(return_statement
(conditional_expression
(attribute
(identifier_ptr) identifier_ptr
(identifier_ref) identifier_ref
)attribute
(identifier_ptr) identifier_ptr
(None) None
)conditional_expression
)return_statement
)block
)function_definition
)module | Get element from ArTree by path. |
(module
(function_definition
(function_name_isin) function_name_isin
(parameters
(identifier_self) identifier_self
(identifier_values) identifier_values
)parameters
(block
(if_statement
(not_operator
(call
(identifier_isinstance) identifier_isinstance
(argument_list
(identifier_values) identifier_values
(identifier_list) identifier_list
)argument_list
)call
)not_operator
(block
(raise_statement
(call
(identifier_TypeError) identifier_TypeError
(argument_list
(call
(attribute
(string_"Input should be a string. {} was provided") string_"Input should be a string. {} was provided"
(identifier_format) identifier_format
)attribute
(argument_list
(call
(identifier_type) identifier_type
(argument_list
(identifier_values) identifier_values
)argument_list
)call
)argument_list
)call
)argument_list
)call
)raise_statement
)block
)if_statement
(if_statement
(not_operator
(parenthesized_expression
(boolean_operator
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(identifier_startswith) identifier_startswith
)attribute
(argument_list
(string_"(") string_"("
)argument_list
)call
(call
(attribute
(attribute
(identifier_self) identifier_self
(identifier_name) identifier_name
)attribute
(identifier_endswith) identifier_endswith
)attribute
(argument_list
(string_")") string_")"
)argument_list
)call
)boolean_operator
)parenthesized_expression
)not_operator
(block
(expression_statement
(assignment
(identifier_first) identifier_first
(True) True
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_condition) identifier_new_condition
(None) None
)assignment
)expression_statement
(for_statement
(identifier_v) identifier_v
(identifier_values) identifier_values
(block
(if_statement
(identifier_first) identifier_first
(block
(expression_statement
(assignment
(identifier_first) identifier_first
(False) False
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_new_condition) identifier_new_condition
(call
(attribute
(identifier_self) identifier_self
(identifier___eq__) identifier___eq__
)attribute
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)assignment
)expression_statement
)block
(else_clause
(block
(expression_statement
(assignment
(identifier_new_condition) identifier_new_condition
(call
(attribute
(identifier_new_condition) identifier_new_condition
(identifier___or__) identifier___or__
)attribute
(argument_list
(call
(attribute
(identifier_self) identifier_self
(identifier___eq__) identifier___eq__
)attribute
(argument_list
(identifier_v) identifier_v
)argument_list
)call
)argument_list
)call
)assignment
)expression_statement
)block
)else_clause
)if_statement
)block
)for_statement
(return_statement
(identifier_new_condition) identifier_new_condition
)return_statement
)block
(else_clause
(block
(raise_statement
(call
(identifier_SyntaxError) identifier_SyntaxError
(argument_list
(string_"You cannot use 'isin' with a complex condition") string_"You cannot use 'isin' with a complex condition"
)argument_list
)call
)raise_statement
)block
)else_clause
)if_statement
)block
)function_definition
)module | Selects the samples having the metadata attribute between the values provided
as input
:param values: a list of elements
:return a new complex condition |
(module
(function_definition
(function_name__check_transition_target) function_name__check_transition_target
(parameters
(identifier_self) identifier_self
(identifier_transition) identifier_transition
)parameters
(block
(expression_statement
(assignment
(identifier_to_state_id) identifier_to_state_id
(attribute
(identifier_transition) identifier_transition
(identifier_to_state) identifier_to_state
)attribute
)assignment
)expression_statement
(expression_statement
(assignment
(identifier_to_outcome_id) identifier_to_outcome_id
(attribute
(identifier_transition) identifier_transition
(identifier_to_outcome) identifier_to_outcome
)attribute
)assignment
)expression_statement
(if_statement
(comparison_operator
(identifier_to_state_id) identifier_to_state_id
(attribute
(identifier_self) identifier_self
(identifier_state_id) identifier_state_id
)attribute
)comparison_operator
(block
(if_statement
(comparison_operator
(identifier_to_outcome_id) identifier_to_outcome_id
(attribute
(identifier_self) identifier_self
(identifier_outcomes) identifier_outcomes
)attribute
)comparison_operator
(block
(return_statement
(expression_list
(False) False
(string_"to_outcome is not existing") string_"to_outcome is not existing"
)expression_list
)return_statement
)block
)if_statement
)block
(else_clause
(block
(if_statement
(comparison_operator
(identifier_to_state_id) identifier_to_state_id
(attribute
(identifier_self) identifier_self
(identifier_states) identifier_states
)attribute
)comparison_operator
(block
(return_statement
(expression_list
(False) False
(string_"to_state is not existing") string_"to_state is not existing"
)expression_list
)return_statement
)block
)if_statement
(if_statement
(comparison_operator
(identifier_to_outcome_id) identifier_to_outcome_id
(None) None
)comparison_operator
(block
(return_statement
(expression_list
(False) False
(string_"to_outcome must be None as transition goes to child state") string_"to_outcome must be None as transition goes to child state"
)expression_list
)return_statement
)block
)if_statement
)block
)else_clause
)if_statement
(return_statement
(expression_list
(True) True
(string_"valid") string_"valid"
)expression_list
)return_statement
)block
)function_definition
)module | Checks the validity of a transition target
Checks whether the transition target is valid.
:param rafcon.core.transition.Transition transition: The transition to be checked
:return bool validity, str message: validity is True, when the transition is valid, False else. message gives
more information especially if the transition is not valid |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.