Search is not available for this dataset
identifier
stringlengths
1
155
parameters
stringlengths
2
6.09k
docstring
stringlengths
11
63.4k
docstring_summary
stringlengths
0
63.4k
function
stringlengths
29
99.8k
function_tokens
list
start_point
list
end_point
list
language
stringclasses
1 value
docstring_language
stringlengths
2
7
docstring_language_predictions
stringlengths
18
23
is_langid_reliable
stringclasses
2 values
identify_object
(inp)
Helper function. Identifies if an object is an account or an object; return its database model Args: inp (any): Entity to be idtified. Returns: identified (tuple): This is a tuple with (`inp`, identifier) where `identifier` is one of "account", "object", "channel", ...
Helper function. Identifies if an object is an account or an object; return its database model
def identify_object(inp): """ Helper function. Identifies if an object is an account or an object; return its database model Args: inp (any): Entity to be idtified. Returns: identified (tuple): This is a tuple with (`inp`, identifier) where `identifier` is one of "accou...
[ "def", "identify_object", "(", "inp", ")", ":", "if", "hasattr", "(", "inp", ",", "\"__dbclass__\"", ")", ":", "clsname", "=", "inp", ".", "__dbclass__", ".", "__name__", "if", "clsname", "==", "\"AccountDB\"", ":", "return", "inp", ",", "\"account\"", "el...
[ 57, 0 ]
[ 84, 24 ]
python
en
['en', 'error', 'th']
False
to_object
(inp, objtype='account')
Locates the object related to the given accountname or channel key. If input was already the correct object, return it. Args: inp (any): The input object/string objtype (str): Either 'account' or 'channel'. Returns: obj (object): The correct object related to `inp`.
Locates the object related to the given accountname or channel key. If input was already the correct object, return it.
def to_object(inp, objtype='account'): """ Locates the object related to the given accountname or channel key. If input was already the correct object, return it. Args: inp (any): The input object/string objtype (str): Either 'account' or 'channel'. Returns: obj (object): T...
[ "def", "to_object", "(", "inp", ",", "objtype", "=", "'account'", ")", ":", "obj", ",", "typ", "=", "identify_object", "(", "inp", ")", "if", "typ", "==", "objtype", ":", "return", "obj", "if", "objtype", "==", "'account'", ":", "if", "typ", "==", "'...
[ 87, 0 ]
[ 129, 15 ]
python
en
['en', 'error', 'th']
False
MsgManager.identify_object
(self, inp)
Wrapper to identify_object if accessing via the manager directly. Args: inp (any): Entity to be idtified. Returns: identified (tuple): This is a tuple with (`inp`, identifier) where `identifier` is one of "account", "object", "channel", ...
Wrapper to identify_object if accessing via the manager directly.
def identify_object(self, inp): """ Wrapper to identify_object if accessing via the manager directly. Args: inp (any): Entity to be idtified. Returns: identified (tuple): This is a tuple with (`inp`, identifier) where `identifier` is one of "acco...
[ "def", "identify_object", "(", "self", ",", "inp", ")", ":", "return", "identify_object", "(", "inp", ")" ]
[ 151, 4 ]
[ 164, 35 ]
python
en
['en', 'error', 'th']
False
MsgManager.get_message_by_id
(self, idnum)
Retrieve message by its id. Args: idnum (int or str): The dbref to retrieve. Returns: message (Msg): The message.
Retrieve message by its id.
def get_message_by_id(self, idnum): """ Retrieve message by its id. Args: idnum (int or str): The dbref to retrieve. Returns: message (Msg): The message. """ try: return self.get(id=self.dbref(idnum, reqhash=False)) except Ex...
[ "def", "get_message_by_id", "(", "self", ",", "idnum", ")", ":", "try", ":", "return", "self", ".", "get", "(", "id", "=", "self", ".", "dbref", "(", "idnum", ",", "reqhash", "=", "False", ")", ")", "except", "Exception", ":", "return", "None" ]
[ 166, 4 ]
[ 180, 23 ]
python
en
['en', 'error', 'th']
False
MsgManager.get_messages_by_sender
(self, sender, exclude_channel_messages=False)
Get all messages sent by one entity - this could be either a account or an object Args: sender (Account or Object): The sender of the message. exclude_channel_messages (bool, optional): Only return messages not aimed at a channel (that is, private tells ...
Get all messages sent by one entity - this could be either a account or an object
def get_messages_by_sender(self, sender, exclude_channel_messages=False): """ Get all messages sent by one entity - this could be either a account or an object Args: sender (Account or Object): The sender of the message. exclude_channel_messages (bool, optional):...
[ "def", "get_messages_by_sender", "(", "self", ",", "sender", ",", "exclude_channel_messages", "=", "False", ")", ":", "obj", ",", "typ", "=", "identify_object", "(", "sender", ")", "if", "exclude_channel_messages", ":", "# explicitly exclude channel recipients", "if",...
[ 182, 4 ]
[ 217, 31 ]
python
en
['en', 'error', 'th']
False
MsgManager.get_messages_by_receiver
(self, recipient)
Get all messages sent to one given recipient. Args: recipient (Object, Account or Channel): The recipient of the messages to search for. Returns: messages (list): Matching messages. Raises: CommError: If the `recipient` is not of a valid type. ...
Get all messages sent to one given recipient.
def get_messages_by_receiver(self, recipient): """ Get all messages sent to one given recipient. Args: recipient (Object, Account or Channel): The recipient of the messages to search for. Returns: messages (list): Matching messages. Raises: ...
[ "def", "get_messages_by_receiver", "(", "self", ",", "recipient", ")", ":", "obj", ",", "typ", "=", "identify_object", "(", "recipient", ")", "if", "typ", "==", "'account'", ":", "return", "list", "(", "self", ".", "filter", "(", "db_receivers_accounts", "="...
[ 219, 4 ]
[ 241, 27 ]
python
en
['en', 'error', 'th']
False
MsgManager.get_messages_by_channel
(self, channel)
Get all persistent messages sent to one channel. Args: channel (Channel): The channel to find messages for. Returns: messages (list): Persistent Msg objects saved for this channel.
Get all persistent messages sent to one channel.
def get_messages_by_channel(self, channel): """ Get all persistent messages sent to one channel. Args: channel (Channel): The channel to find messages for. Returns: messages (list): Persistent Msg objects saved for this channel. """ return self....
[ "def", "get_messages_by_channel", "(", "self", ",", "channel", ")", ":", "return", "self", ".", "filter", "(", "db_receivers_channels", "=", "channel", ")", ".", "exclude", "(", "db_hide_from_channels", "=", "channel", ")" ]
[ 243, 4 ]
[ 254, 96 ]
python
en
['en', 'error', 'th']
False
MsgManager.search_message
(self, sender=None, receiver=None, freetext=None, dbref=None)
Search the message database for particular messages. At least one of the arguments must be given to do a search. Args: sender (Object or Account, optional): Get messages sent by a particular account or object receiver (Object, Account or Channel, optional): Get messages...
Search the message database for particular messages. At least one of the arguments must be given to do a search.
def search_message(self, sender=None, receiver=None, freetext=None, dbref=None): """ Search the message database for particular messages. At least one of the arguments must be given to do a search. Args: sender (Object or Account, optional): Get messages sent by a particular...
[ "def", "search_message", "(", "self", ",", "sender", "=", "None", ",", "receiver", "=", "None", ",", "freetext", "=", "None", ",", "dbref", "=", "None", ")", ":", "# unique msg id", "if", "dbref", ":", "msg", "=", "self", ".", "objects", ".", "filter",...
[ 256, 4 ]
[ 311, 89 ]
python
en
['en', 'error', 'th']
False
ChannelDBManager.get_all_channels
(self)
Get all channels. Returns: channels (list): All channels in game.
Get all channels.
def get_all_channels(self): """ Get all channels. Returns: channels (list): All channels in game. """ return self.all()
[ "def", "get_all_channels", "(", "self", ")", ":", "return", "self", ".", "all", "(", ")" ]
[ 335, 4 ]
[ 343, 25 ]
python
en
['en', 'error', 'th']
False
ChannelDBManager.get_channel
(self, channelkey)
Return the channel object if given its key. Also searches its aliases. Args: channelkey (str): Channel key to search for. Returns: channel (Channel or None): A channel match.
Return the channel object if given its key. Also searches its aliases.
def get_channel(self, channelkey): """ Return the channel object if given its key. Also searches its aliases. Args: channelkey (str): Channel key to search for. Returns: channel (Channel or None): A channel match. """ dbref = self.dbref(...
[ "def", "get_channel", "(", "self", ",", "channelkey", ")", ":", "dbref", "=", "self", ".", "dbref", "(", "channelkey", ")", "if", "dbref", ":", "try", ":", "return", "self", ".", "get", "(", "id", "=", "dbref", ")", "except", "self", ".", "model", ...
[ 345, 4 ]
[ 366, 46 ]
python
en
['en', 'error', 'th']
False
ChannelDBManager.get_subscriptions
(self, subscriber)
Return all channels a given entity is subscribed to. Args: subscriber (Object or Account): The one subscribing. Returns: subscriptions (list): Channel subscribed to.
Return all channels a given entity is subscribed to.
def get_subscriptions(self, subscriber): """ Return all channels a given entity is subscribed to. Args: subscriber (Object or Account): The one subscribing. Returns: subscriptions (list): Channel subscribed to. """ clsname = subscriber.__dbclass...
[ "def", "get_subscriptions", "(", "self", ",", "subscriber", ")", ":", "clsname", "=", "subscriber", ".", "__dbclass__", ".", "__name__", "if", "clsname", "==", "\"AccountDB\"", ":", "return", "subscriber", ".", "account_subscription_set", ".", "all", "(", ")", ...
[ 368, 4 ]
[ 384, 17 ]
python
en
['en', 'error', 'th']
False
ChannelDBManager.search_channel
(self, ostring, exact=True)
Search the channel database for a particular channel. Args: ostring (str): The key or database id of the channel. exact (bool, optional): Require an exact (but not case sensitive) match.
Search the channel database for a particular channel.
def search_channel(self, ostring, exact=True): """ Search the channel database for a particular channel. Args: ostring (str): The key or database id of the channel. exact (bool, optional): Require an exact (but not case sensitive) match. """ ...
[ "def", "search_channel", "(", "self", ",", "ostring", ",", "exact", "=", "True", ")", ":", "dbref", "=", "self", ".", "dbref", "(", "ostring", ")", "if", "dbref", ":", "try", ":", "return", "self", ".", "get", "(", "id", "=", "dbref", ")", "except"...
[ 386, 4 ]
[ 410, 23 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.dtickrange
(self)
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple of 2 elements where: (0) The...
def dtickrange(self): """ range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it is possible to omit "min" or "max" value by passing "null" The 'dtickrange' property is an info array that may be specified as: * a list or tuple...
[ "def", "dtickrange", "(", "self", ")", ":", "return", "self", "[", "\"dtickrange\"", "]" ]
[ 15, 4 ]
[ 31, 33 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.enabled
(self)
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False)
def enabled(self): """ Determines whether or not this stop is used. If `false`, this stop is ignored even within its `dtickrange`. The 'enabled' property must be specified as a bool (either True, or False) Returns ------- bool """ ret...
[ "def", "enabled", "(", "self", ")", ":", "return", "self", "[", "\"enabled\"", "]" ]
[ 40, 4 ]
[ 52, 30 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.name
(self)
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` alongside your modifications ...
def name(self): """ When used in a template, named items are created in the output figure in addition to any items the figure already has in this array. You can modify these items in the output figure by making your own item with `templateitemname` matching this `name` al...
[ "def", "name", "(", "self", ")", ":", "return", "self", "[", "\"name\"", "]" ]
[ 61, 4 ]
[ 79, 27 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.templateitemname
(self)
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, alongside your modifications (includ...
def templateitemname(self): """ Used to refer to a named item in this array in the template. Named items from the template will be created even without a matching item in the input figure, but you can modify one by making an item with `templateitemname` matching its `name`, ...
[ "def", "templateitemname", "(", "self", ")", ":", "return", "self", "[", "\"templateitemname\"", "]" ]
[ 88, 4 ]
[ 107, 39 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.value
(self)
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string
def value(self): """ string - dtickformat for described zoom level, the same as "tickformat" The 'value' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str "...
[ "def", "value", "(", "self", ")", ":", "return", "self", "[", "\"value\"", "]" ]
[ 116, 4 ]
[ 129, 28 ]
python
en
['en', 'error', 'th']
False
Tickformatstop.__init__
( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs )
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.carpet.aaxis.Tickformatstop` dtickrange range [*min*, *max*], ...
Construct a new Tickformatstop object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.carpet.aaxis.Tickformatstop` dtickrange range [*min*, *max*], ...
def __init__( self, arg=None, dtickrange=None, enabled=None, name=None, templateitemname=None, value=None, **kwargs ): """ Construct a new Tickformatstop object Parameters ---------- arg dict...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "dtickrange", "=", "None", ",", "enabled", "=", "None", ",", "name", "=", "None", ",", "templateitemname", "=", "None", ",", "value", "=", "None", ",", "*", "*", "kwargs", ")", ":", "sup...
[ 172, 4 ]
[ 282, 34 ]
python
en
['en', 'error', 'th']
False
setup_args
()
Set up args.
Set up args.
def setup_args(): """ Set up args. """ parser = ParlaiParser(False, False) parser.add_parlai_data_path() parser.add_websockets_args() return parser.parse_args()
[ "def", "setup_args", "(", ")", ":", "parser", "=", "ParlaiParser", "(", "False", ",", "False", ")", "parser", ".", "add_parlai_data_path", "(", ")", "parser", ".", "add_websockets_args", "(", ")", "return", "parser", ".", "parse_args", "(", ")" ]
[ 16, 0 ]
[ 23, 30 ]
python
en
['en', 'error', 'th']
False
run
(opt)
Run MessengerManager.
Run MessengerManager.
def run(opt): """ Run MessengerManager. """ opt['service'] = SERVICE_NAME manager = WebsocketManager(opt) try: manager.start_task() except BaseException: raise finally: manager.shutdown()
[ "def", "run", "(", "opt", ")", ":", "opt", "[", "'service'", "]", "=", "SERVICE_NAME", "manager", "=", "WebsocketManager", "(", "opt", ")", "try", ":", "manager", ".", "start_task", "(", ")", "except", "BaseException", ":", "raise", "finally", ":", "mana...
[ 26, 0 ]
[ 37, 26 ]
python
en
['en', 'error', 'th']
False
single_gpu_test
(model, data_loader, show=False, out_dir=None)
Test model with single gpu. This method tests model with single gpu and gives the 'show' option. By setting ``show=True``, it saves the visualization results under ``out_dir``. Args: model (nn.Module): Model to be tested. data_loader (nn.Dataloader): Pytorch data loader. show (...
Test model with single gpu.
def single_gpu_test(model, data_loader, show=False, out_dir=None): """Test model with single gpu. This method tests model with single gpu and gives the 'show' option. By setting ``show=True``, it saves the visualization results under ``out_dir``. Args: model (nn.Module): Model to be tested...
[ "def", "single_gpu_test", "(", "model", ",", "data_loader", ",", "show", "=", "False", ",", "out_dir", "=", "None", ")", ":", "model", ".", "eval", "(", ")", "results", "=", "[", "]", "dataset", "=", "data_loader", ".", "dataset", "prog_bar", "=", "mmc...
[ 4, 0 ]
[ 38, 18 ]
python
en
['en', 'yo', 'en']
True
RandomStringGeneratorScript.at_script_creation
(self)
Hook called when the script is created.
Hook called when the script is created.
def at_script_creation(self): """Hook called when the script is created.""" self.key = "generator_script" self.desc = "Global generator script" self.persistent = True # Permanent data to be stored self.db.generated = {}
[ "def", "at_script_creation", "(", "self", ")", ":", "self", ".", "key", "=", "\"generator_script\"", "self", ".", "desc", "=", "\"Global generator script\"", "self", ".", "persistent", "=", "True", "# Permanent data to be stored", "self", ".", "db", ".", "generate...
[ 90, 4 ]
[ 97, 30 ]
python
en
['en', 'en', 'en']
True
RandomStringGenerator.__init__
(self, name, regex)
Create a new generator. Args: name (str): name of the generator to create. regex (str): regular expression describing the generator. Notes: `name` should be an explicit name. If you use more than one generator in your game, be sure to give them...
Create a new generator.
def __init__(self, name, regex): """ Create a new generator. Args: name (str): name of the generator to create. regex (str): regular expression describing the generator. Notes: `name` should be an explicit name. If you use more than one ...
[ "def", "__init__", "(", "self", ",", "name", ",", "regex", ")", ":", "self", ".", "name", "=", "name", "self", ".", "elements", "=", "[", "]", "self", ".", "total", "=", "1", "# Analyze the regex if any", "if", "regex", ":", "self", ".", "_find_element...
[ 124, 4 ]
[ 155, 38 ]
python
en
['en', 'error', 'th']
False
RandomStringGenerator._get_script
(self)
Get or create the script.
Get or create the script.
def _get_script(self): """Get or create the script.""" if type(self).script: return type(self).script try: script = ScriptDB.objects.get(db_key="generator_script") except ScriptDB.DoesNotExist: script = create_script("contrib.random_string_generator.R...
[ "def", "_get_script", "(", "self", ")", ":", "if", "type", "(", "self", ")", ".", "script", ":", "return", "type", "(", "self", ")", ".", "script", "try", ":", "script", "=", "ScriptDB", ".", "objects", ".", "get", "(", "db_key", "=", "\"generator_sc...
[ 160, 4 ]
[ 171, 21 ]
python
en
['en', 'co', 'en']
True
RandomStringGenerator._find_elements
(self, regex)
Find the elements described in the regular expression. This will analyze the provided regular expression and try to find elements. Args: regex (str): the regular expression.
Find the elements described in the regular expression. This will analyze the provided regular expression and try to find elements.
def _find_elements(self, regex): """ Find the elements described in the regular expression. This will analyze the provided regular expression and try to find elements. Args: regex (str): the regular expression. """ self.total = 1 self.elements = [] ...
[ "def", "_find_elements", "(", "self", ",", "regex", ")", ":", "self", ".", "total", "=", "1", "self", ".", "elements", "=", "[", "]", "tree", "=", "re", ".", "sre_parse", ".", "parse", "(", "regex", ")", ".", "data", "# `tree` contains a list of elements...
[ 173, 4 ]
[ 211, 59 ]
python
en
['en', 'error', 'th']
False
RandomStringGenerator._find_literal
(self, element)
Find the literal corresponding to a piece of regular expression.
Find the literal corresponding to a piece of regular expression.
def _find_literal(self, element): """Find the literal corresponding to a piece of regular expression.""" chars = [] if element[0] == "literal": chars.append(chr(element[1])) elif element[0] == "in": negate = False if element[1][0][0] == "negate": ...
[ "def", "_find_literal", "(", "self", ",", "element", ")", ":", "chars", "=", "[", "]", "if", "element", "[", "0", "]", "==", "\"literal\"", ":", "chars", ".", "append", "(", "chr", "(", "element", "[", "1", "]", ")", ")", "elif", "element", "[", ...
[ 213, 4 ]
[ 248, 20 ]
python
en
['en', 'en', 'en']
True
RandomStringGenerator.all
(self)
Return all generated strings for this generator. Returns: strings (list of strr): the list of strings that are already used. The strings that were generated first come first in the list.
Return all generated strings for this generator.
def all(self): """ Return all generated strings for this generator. Returns: strings (list of strr): the list of strings that are already used. The strings that were generated first come first in the list. """ script = self._get_script() generat...
[ "def", "all", "(", "self", ")", ":", "script", "=", "self", ".", "_get_script", "(", ")", "generated", "=", "list", "(", "script", ".", "db", ".", "generated", ".", "get", "(", "self", ".", "name", ",", "[", "]", ")", ")", "return", "generated" ]
[ 250, 4 ]
[ 261, 24 ]
python
en
['en', 'error', 'th']
False
RandomStringGenerator.get
(self, store=True, unique=True)
Generate a pseudo-random string according to the regular expression. Args: store (bool, optional): store the generated string in the script. unique (bool, optional): keep on trying if the string is already used. Returns: The newly-generated string. ...
Generate a pseudo-random string according to the regular expression.
def get(self, store=True, unique=True): """ Generate a pseudo-random string according to the regular expression. Args: store (bool, optional): store the generated string in the script. unique (bool, optional): keep on trying if the string is already used. Return...
[ "def", "get", "(", "self", ",", "store", "=", "True", ",", "unique", "=", "True", ")", ":", "script", "=", "self", ".", "_get_script", "(", ")", "generated", "=", "script", ".", "db", ".", "generated", ".", "get", "(", "self", ".", "name", ")", "...
[ 263, 4 ]
[ 311, 21 ]
python
en
['en', 'error', 'th']
False
RandomStringGenerator.remove
(self, element)
Remove a generated string from the list of stored strings. Args: element (str): the string to remove from the list of generated strings. Raises: ValueError: the specified value hasn't been generated and is not present. Note: The specified string ha...
Remove a generated string from the list of stored strings.
def remove(self, element): """ Remove a generated string from the list of stored strings. Args: element (str): the string to remove from the list of generated strings. Raises: ValueError: the specified value hasn't been generated and is not present. Not...
[ "def", "remove", "(", "self", ",", "element", ")", ":", "script", "=", "self", ".", "_get_script", "(", ")", "generated", "=", "script", ".", "db", ".", "generated", ".", "get", "(", "self", ".", "name", ",", "[", "]", ")", "if", "element", "not", ...
[ 313, 4 ]
[ 336, 33 ]
python
en
['en', 'error', 'th']
False
RandomStringGenerator.clear
(self)
Clear the generator of all generated strings.
Clear the generator of all generated strings.
def clear(self): """ Clear the generator of all generated strings. """ script = self._get_script() generated = script.db.generated.get(self.name, []) generated[:] = []
[ "def", "clear", "(", "self", ")", ":", "script", "=", "self", ".", "_get_script", "(", ")", "generated", "=", "script", ".", "db", ".", "generated", ".", "get", "(", "self", ".", "name", ",", "[", "]", ")", "generated", "[", ":", "]", "=", "[", ...
[ 338, 4 ]
[ 345, 25 ]
python
en
['en', 'error', 'th']
False
Lighting.ambient
(self)
Ambient light increases overall color visibility but can wash out the image. The 'ambient' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Ambient light increases overall color visibility but can wash out the image. The 'ambient' property is a number and may be specified as: - An int or float in the interval [0, 1]
def ambient(self): """ Ambient light increases overall color visibility but can wash out the image. The 'ambient' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float """ r...
[ "def", "ambient", "(", "self", ")", ":", "return", "self", "[", "\"ambient\"", "]" ]
[ 23, 4 ]
[ 35, 30 ]
python
en
['en', 'error', 'th']
False
Lighting.diffuse
(self)
Represents the extent that incident rays are reflected in a range of angles. The 'diffuse' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Represents the extent that incident rays are reflected in a range of angles. The 'diffuse' property is a number and may be specified as: - An int or float in the interval [0, 1]
def diffuse(self): """ Represents the extent that incident rays are reflected in a range of angles. The 'diffuse' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float """ r...
[ "def", "diffuse", "(", "self", ")", ":", "return", "self", "[", "\"diffuse\"", "]" ]
[ 44, 4 ]
[ 56, 30 ]
python
en
['en', 'error', 'th']
False
Lighting.facenormalsepsilon
(self)
Epsilon for face normals calculation avoids math issues arising from degenerate geometry. The 'facenormalsepsilon' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Epsilon for face normals calculation avoids math issues arising from degenerate geometry. The 'facenormalsepsilon' property is a number and may be specified as: - An int or float in the interval [0, 1]
def facenormalsepsilon(self): """ Epsilon for face normals calculation avoids math issues arising from degenerate geometry. The 'facenormalsepsilon' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- ...
[ "def", "facenormalsepsilon", "(", "self", ")", ":", "return", "self", "[", "\"facenormalsepsilon\"", "]" ]
[ 65, 4 ]
[ 77, 41 ]
python
en
['en', 'error', 'th']
False
Lighting.fresnel
(self)
Represents the reflectance as a dependency of the viewing angle; e.g. paper is reflective when viewing it from the edge of the paper (almost 90 degrees), causing shine. The 'fresnel' property is a number and may be specified as: - An int or float in the interval [0, 5] ...
Represents the reflectance as a dependency of the viewing angle; e.g. paper is reflective when viewing it from the edge of the paper (almost 90 degrees), causing shine. The 'fresnel' property is a number and may be specified as: - An int or float in the interval [0, 5]
def fresnel(self): """ Represents the reflectance as a dependency of the viewing angle; e.g. paper is reflective when viewing it from the edge of the paper (almost 90 degrees), causing shine. The 'fresnel' property is a number and may be specified as: - An int or f...
[ "def", "fresnel", "(", "self", ")", ":", "return", "self", "[", "\"fresnel\"", "]" ]
[ 86, 4 ]
[ 99, 30 ]
python
en
['en', 'error', 'th']
False
Lighting.roughness
(self)
Alters specular reflection; the rougher the surface, the wider and less contrasty the shine. The 'roughness' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Alters specular reflection; the rougher the surface, the wider and less contrasty the shine. The 'roughness' property is a number and may be specified as: - An int or float in the interval [0, 1]
def roughness(self): """ Alters specular reflection; the rougher the surface, the wider and less contrasty the shine. The 'roughness' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float ...
[ "def", "roughness", "(", "self", ")", ":", "return", "self", "[", "\"roughness\"", "]" ]
[ 108, 4 ]
[ 120, 32 ]
python
en
['en', 'error', 'th']
False
Lighting.specular
(self)
Represents the level that incident rays are reflected in a single direction, causing shine. The 'specular' property is a number and may be specified as: - An int or float in the interval [0, 2] Returns ------- int|float
Represents the level that incident rays are reflected in a single direction, causing shine. The 'specular' property is a number and may be specified as: - An int or float in the interval [0, 2]
def specular(self): """ Represents the level that incident rays are reflected in a single direction, causing shine. The 'specular' property is a number and may be specified as: - An int or float in the interval [0, 2] Returns ------- int|float ...
[ "def", "specular", "(", "self", ")", ":", "return", "self", "[", "\"specular\"", "]" ]
[ 129, 4 ]
[ 141, 31 ]
python
en
['en', 'error', 'th']
False
Lighting.vertexnormalsepsilon
(self)
Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry. The 'vertexnormalsepsilon' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------- int|float
Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry. The 'vertexnormalsepsilon' property is a number and may be specified as: - An int or float in the interval [0, 1]
def vertexnormalsepsilon(self): """ Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry. The 'vertexnormalsepsilon' property is a number and may be specified as: - An int or float in the interval [0, 1] Returns ------...
[ "def", "vertexnormalsepsilon", "(", "self", ")", ":", "return", "self", "[", "\"vertexnormalsepsilon\"", "]" ]
[ 150, 4 ]
[ 162, 43 ]
python
en
['en', 'error', 'th']
False
Lighting.__init__
( self, arg=None, ambient=None, diffuse=None, facenormalsepsilon=None, fresnel=None, roughness=None, specular=None, vertexnormalsepsilon=None, **kwargs )
Construct a new Lighting object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.streamtube.Lighting` ambient Ambient light increases overall color v...
Construct a new Lighting object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.streamtube.Lighting` ambient Ambient light increases overall color v...
def __init__( self, arg=None, ambient=None, diffuse=None, facenormalsepsilon=None, fresnel=None, roughness=None, specular=None, vertexnormalsepsilon=None, **kwargs ): """ Construct a new Lighting object ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "ambient", "=", "None", ",", "diffuse", "=", "None", ",", "facenormalsepsilon", "=", "None", ",", "fresnel", "=", "None", ",", "roughness", "=", "None", ",", "specular", "=", "None", ",", ...
[ 198, 4 ]
[ 311, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.bgcolor
(self)
Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def bgcolor(self): """ Sets the color of padded area. The 'bgcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva str...
[ "def", "bgcolor", "(", "self", ")", ":", "return", "self", "[", "\"bgcolor\"", "]" ]
[ 59, 4 ]
[ 109, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.bordercolor
(self)
Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def bordercolor(self): """ Sets the axis line color. The 'bordercolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva ...
[ "def", "bordercolor", "(", "self", ")", ":", "return", "self", "[", "\"bordercolor\"", "]" ]
[ 118, 4 ]
[ 168, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.borderwidth
(self)
Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def borderwidth(self): """ Sets the width (in px) or the border enclosing this color bar. The 'borderwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["...
[ "def", "borderwidth", "(", "self", ")", ":", "return", "self", "[", "\"borderwidth\"", "]" ]
[ 177, 4 ]
[ 188, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.dtick
(self)
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example, to set a tick mark at 1, 1...
def dtick(self): """ Sets the step in-between ticks on this axis. Use with `tick0`. Must be a positive number, or special strings available to "log" and "date" axes. If the axis `type` is "log", then ticks are set every 10^(n*dtick) where n is the tick number. For example...
[ "def", "dtick", "(", "self", ")", ":", "return", "self", "[", "\"dtick\"", "]" ]
[ 197, 4 ]
[ 226, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.exponentformat
(self)
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. The 'exponentformat' prop...
def exponentformat(self): """ Determines a formatting rule for the tick exponents. For example, consider the number 1,000,000,000. If "none", it appears as 1,000,000,000. If "e", 1e+9. If "E", 1E+9. If "power", 1x10^9 (with 9 in a super script). If "SI", 1G. If "B", 1B. ...
[ "def", "exponentformat", "(", "self", ")", ":", "return", "self", "[", "\"exponentformat\"", "]" ]
[ 235, 4 ]
[ 251, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.len
(self)
Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interval [0, inf] Return...
Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interval [0, inf]
def len(self): """ Sets the length of the color bar This measure excludes the padding of both ends. That is, the color bar length is this length minus the padding on both ends. The 'len' property is a number and may be specified as: - An int or float in the interva...
[ "def", "len", "(", "self", ")", ":", "return", "self", "[", "\"len\"", "]" ]
[ 260, 4 ]
[ 273, 26 ]
python
en
['en', 'error', 'th']
False
ColorBar.lenmode
(self)
Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - One of the following enumerati...
Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - One of the following enumerati...
def lenmode(self): """ Determines whether this color bar's length (i.e. the measure in the color variation direction) is set in units of plot "fraction" or in *pixels. Use `len` to set the value. The 'lenmode' property is an enumeration that may be specified as: - ...
[ "def", "lenmode", "(", "self", ")", ":", "return", "self", "[", "\"lenmode\"", "]" ]
[ 282, 4 ]
[ 296, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.nticks
(self)
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer and may be specified as: ...
def nticks(self): """ Specifies the maximum number of ticks for the particular axis. The actual number of ticks will be chosen automatically to be less than or equal to `nticks`. Has an effect only if `tickmode` is set to "auto". The 'nticks' property is a integer an...
[ "def", "nticks", "(", "self", ")", ":", "return", "self", "[", "\"nticks\"", "]" ]
[ 305, 4 ]
[ 320, 29 ]
python
en
['en', 'error', 'th']
False
ColorBar.outlinecolor
(self)
Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def outlinecolor(self): """ Sets the axis line color. The 'outlinecolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsv...
[ "def", "outlinecolor", "(", "self", ")", ":", "return", "self", "[", "\"outlinecolor\"", "]" ]
[ 329, 4 ]
[ 379, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.outlinewidth
(self)
Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def outlinewidth(self): """ Sets the width (in px) of the axis line. The 'outlinewidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["outlinewidth"]
[ "def", "outlinewidth", "(", "self", ")", ":", "return", "self", "[", "\"outlinewidth\"", "]" ]
[ 388, 4 ]
[ 399, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.separatethousands
(self)
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool
If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False)
def separatethousands(self): """ If "true", even 4-digit integers are separated The 'separatethousands' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["separatethousands"]
[ "def", "separatethousands", "(", "self", ")", ":", "return", "self", "[", "\"separatethousands\"", "]" ]
[ 408, 4 ]
[ 419, 40 ]
python
en
['en', 'error', 'th']
False
ColorBar.showexponent
(self)
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is an enumeration that may be specifie...
def showexponent(self): """ If "all", all exponents are shown besides their significands. If "first", only the exponent of the first tick is shown. If "last", only the exponent of the last tick is shown. If "none", no exponents appear. The 'showexponent' property is ...
[ "def", "showexponent", "(", "self", ")", ":", "return", "self", "[", "\"showexponent\"", "]" ]
[ 428, 4 ]
[ 443, 35 ]
python
en
['en', 'error', 'th']
False
ColorBar.showticklabels
(self)
Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool
Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False)
def showticklabels(self): """ Determines whether or not the tick labels are drawn. The 'showticklabels' property must be specified as a bool (either True, or False) Returns ------- bool """ return self["showticklabels"]
[ "def", "showticklabels", "(", "self", ")", ":", "return", "self", "[", "\"showticklabels\"", "]" ]
[ 452, 4 ]
[ 463, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.showtickprefix
(self)
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' property is an enumeration that may be spec...
def showtickprefix(self): """ If "all", all tick labels are displayed with a prefix. If "first", only the first tick is displayed with a prefix. If "last", only the last tick is displayed with a suffix. If "none", tick prefixes are hidden. The 'showtickprefix' proper...
[ "def", "showtickprefix", "(", "self", ")", ":", "return", "self", "[", "\"showtickprefix\"", "]" ]
[ 472, 4 ]
[ 487, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.showticksuffix
(self)
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- Any
Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none']
def showticksuffix(self): """ Same as `showtickprefix` but for tick suffixes. The 'showticksuffix' property is an enumeration that may be specified as: - One of the following enumeration values: ['all', 'first', 'last', 'none'] Returns ------- ...
[ "def", "showticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"showticksuffix\"", "]" ]
[ 496, 4 ]
[ 508, 37 ]
python
en
['en', 'error', 'th']
False
ColorBar.thickness
(self)
Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf]
def thickness(self): """ Sets the thickness of the color bar This measure excludes the size of the padding, ticks and labels. The 'thickness' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- i...
[ "def", "thickness", "(", "self", ")", ":", "return", "self", "[", "\"thickness\"", "]" ]
[ 517, 4 ]
[ 529, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.thicknessmode
(self)
Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be specified as: - One of the foll...
Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be specified as: - One of the foll...
def thicknessmode(self): """ Determines whether this color bar's thickness (i.e. the measure in the constant color direction) is set in units of plot "fraction" or in "pixels". Use `thickness` to set the value. The 'thicknessmode' property is an enumeration that may be speci...
[ "def", "thicknessmode", "(", "self", ")", ":", "return", "self", "[", "\"thicknessmode\"", "]" ]
[ 538, 4 ]
[ 552, 36 ]
python
en
['en', 'error', 'th']
False
ColorBar.tick0
(self)
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for more info). If the axis `ty...
def tick0(self): """ Sets the placement of the first tick on this axis. Use with `dtick`. If the axis `type` is "log", then you must take the log of your starting tick (e.g. to set the starting tick to 100, set the `tick0` to 2) except when `dtick`=*L<f>* (see `dtick` for...
[ "def", "tick0", "(", "self", ")", ":", "return", "self", "[", "\"tick0\"", "]" ]
[ 561, 4 ]
[ 579, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickangle
(self)
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Numeric values outside this ...
def tickangle(self): """ Sets the angle of the tick labels with respect to the horizontal. For example, a `tickangle` of -90 draws the tick labels vertically. The 'tickangle' property is a angle (in degrees) that may be specified as a number between -180 and 180. Num...
[ "def", "tickangle", "(", "self", ")", ":", "return", "self", "[", "\"tickangle\"", "]" ]
[ 588, 4 ]
[ 603, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickcolor
(self)
Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') ...
def tickcolor(self): """ Sets the tick color. The 'tickcolor' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e...
[ "def", "tickcolor", "(", "self", ")", ":", "return", "self", "[", "\"tickcolor\"", "]" ]
[ 612, 4 ]
[ 662, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickfont
(self)
Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.sunburst.marker.colorbar.Tickfont` - A dict of string/value properties that will be passed to the Tic...
Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.sunburst.marker.colorbar.Tickfont` - A dict of string/value properties that will be passed to the Tic...
def tickfont(self): """ Sets the color bar's tick label font The 'tickfont' property is an instance of Tickfont that may be specified as: - An instance of :class:`plotly.graph_objs.sunburst.marker.colorbar.Tickfont` - A dict of string/value properties that will b...
[ "def", "tickfont", "(", "self", ")", ":", "return", "self", "[", "\"tickfont\"", "]" ]
[ 671, 4 ]
[ 708, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformat
(self)
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github.com/d3/d3-3.x-api- refer...
def tickformat(self): """ Sets the tick label formatting rule using d3 formatting mini- languages which are very similar to those in Python. For numbers, see: https://github.com/d3/d3-3.x-api- reference/blob/master/Formatting.md#d3_format And for dates see: https://github...
[ "def", "tickformat", "(", "self", ")", ":", "return", "self", "[", "\"tickformat\"", "]" ]
[ 717, 4 ]
[ 737, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformatstops
(self)
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.sunburst.marker.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to the...
The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.sunburst.marker.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties that will be passed to the...
def tickformatstops(self): """ The 'tickformatstops' property is a tuple of instances of Tickformatstop that may be specified as: - A list or tuple of instances of plotly.graph_objs.sunburst.marker.colorbar.Tickformatstop - A list or tuple of dicts of string/value properties ...
[ "def", "tickformatstops", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstops\"", "]" ]
[ 746, 4 ]
[ 794, 38 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickformatstopdefaults
(self)
When used in a template (as layout.template.data.sunburst.marke r.colorbar.tickformatstopdefaults), sets the default property values to use for elements of sunburst.marker.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop ...
When used in a template (as layout.template.data.sunburst.marke r.colorbar.tickformatstopdefaults), sets the default property values to use for elements of sunburst.marker.colorbar.tickformatstops The 'tickformatstopdefaults' property is an instance of Tickformatstop ...
def tickformatstopdefaults(self): """ When used in a template (as layout.template.data.sunburst.marke r.colorbar.tickformatstopdefaults), sets the default property values to use for elements of sunburst.marker.colorbar.tickformatstops The 'tickformatstopdefaults' pro...
[ "def", "tickformatstopdefaults", "(", "self", ")", ":", "return", "self", "[", "\"tickformatstopdefaults\"", "]" ]
[ 803, 4 ]
[ 822, 45 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticklen
(self)
Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf]
def ticklen(self): """ Sets the tick length (in px). The 'ticklen' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["ticklen"]
[ "def", "ticklen", "(", "self", ")", ":", "return", "self", "[", "\"ticklen\"", "]" ]
[ 831, 4 ]
[ 842, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickmode
(self)
Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick` are provided). If "array", the...
Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick` are provided). If "array", the...
def tickmode(self): """ Sets the tick mode for this axis. If "auto", the number of ticks is set via `nticks`. If "linear", the placement of the ticks is determined by a starting position `tick0` and a tick step `dtick` ("linear" is the default value if `tick0` and `dtick`...
[ "def", "tickmode", "(", "self", ")", ":", "return", "self", "[", "\"tickmode\"", "]" ]
[ 851, 4 ]
[ 869, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickprefix
(self)
Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string
def tickprefix(self): """ Sets a tick label prefix. The 'tickprefix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["tickprefix"]
[ "def", "tickprefix", "(", "self", ")", ":", "return", "self", "[", "\"tickprefix\"", "]" ]
[ 878, 4 ]
[ 890, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticks
(self)
Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the following enumeration values: ...
Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the following enumeration values: ...
def ticks(self): """ Determines whether ticks are drawn or not. If "", this axis' ticks are not drawn. If "outside" ("inside"), this axis' are drawn outside (inside) the axis lines. The 'ticks' property is an enumeration that may be specified as: - One of the follo...
[ "def", "ticks", "(", "self", ")", ":", "return", "self", "[", "\"ticks\"", "]" ]
[ 899, 4 ]
[ 913, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticksuffix
(self)
Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str
Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string
def ticksuffix(self): """ Sets a tick label suffix. The 'ticksuffix' property is a string and must be specified as: - A string - A number that will be converted to a string Returns ------- str """ return self["ticksuffix"]
[ "def", "ticksuffix", "(", "self", ")", ":", "return", "self", "[", "\"ticksuffix\"", "]" ]
[ 922, 4 ]
[ 934, 33 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticktext
(self)
Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns -------...
Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def ticktext(self): """ Sets the text displayed at the ticks position via `tickvals`. Only has an effect if `tickmode` is set to "array". Used with `tickvals`. The 'ticktext' property is an array that may be specified as a tuple, list, numpy array, or pandas Series ...
[ "def", "ticktext", "(", "self", ")", ":", "return", "self", "[", "\"ticktext\"", "]" ]
[ 943, 4 ]
[ 956, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.ticktextsrc
(self)
Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def ticktextsrc(self): """ Sets the source reference on Chart Studio Cloud for ticktext . The 'ticktextsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["ticktextsrc"]
[ "def", "ticktextsrc", "(", "self", ")", ":", "return", "self", "[", "\"ticktextsrc\"", "]" ]
[ 965, 4 ]
[ 976, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickvals
(self)
Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ------- numpy.nda...
Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series
def tickvals(self): """ Sets the values at which ticks on this axis appear. Only has an effect if `tickmode` is set to "array". Used with `ticktext`. The 'tickvals' property is an array that may be specified as a tuple, list, numpy array, or pandas Series Returns ...
[ "def", "tickvals", "(", "self", ")", ":", "return", "self", "[", "\"tickvals\"", "]" ]
[ 985, 4 ]
[ 997, 31 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickvalssrc
(self)
Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object
def tickvalssrc(self): """ Sets the source reference on Chart Studio Cloud for tickvals . The 'tickvalssrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["tickvalssrc"]
[ "def", "tickvalssrc", "(", "self", ")", ":", "return", "self", "[", "\"tickvalssrc\"", "]" ]
[ 1006, 4 ]
[ 1017, 34 ]
python
en
['en', 'error', 'th']
False
ColorBar.tickwidth
(self)
Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf]
def tickwidth(self): """ Sets the tick width (in px). The 'tickwidth' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["tickwidth"]
[ "def", "tickwidth", "(", "self", ")", ":", "return", "self", "[", "\"tickwidth\"", "]" ]
[ 1026, 4 ]
[ 1037, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.title
(self)
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.sunburst.marker.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properties: ...
The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.sunburst.marker.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor Supported dict properties: ...
def title(self): """ The 'title' property is an instance of Title that may be specified as: - An instance of :class:`plotly.graph_objs.sunburst.marker.colorbar.Title` - A dict of string/value properties that will be passed to the Title constructor ...
[ "def", "title", "(", "self", ")", ":", "return", "self", "[", "\"title\"", "]" ]
[ 1046, 4 ]
[ 1076, 28 ]
python
en
['en', 'error', 'th']
False
ColorBar.titlefont
(self)
Deprecated: Please use sunburst.marker.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: ...
Deprecated: Please use sunburst.marker.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font that may be specified as: ...
def titlefont(self): """ Deprecated: Please use sunburst.marker.colorbar.title.font instead. Sets this color bar's title font. Note that the title's font used to be set by the now deprecated `titlefont` attribute. The 'font' property is an instance of Font th...
[ "def", "titlefont", "(", "self", ")", ":", "return", "self", "[", "\"titlefont\"", "]" ]
[ 1085, 4 ]
[ 1125, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.titleside
(self)
Deprecated: Please use sunburst.marker.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration t...
Deprecated: Please use sunburst.marker.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'side' property is an enumeration t...
def titleside(self): """ Deprecated: Please use sunburst.marker.colorbar.title.side instead. Determines the location of color bar's title with respect to the color bar. Note that the title's location used to be set by the now deprecated `titleside` attribute. The 'si...
[ "def", "titleside", "(", "self", ")", ":", "return", "self", "[", "\"titleside\"", "]" ]
[ 1134, 4 ]
[ 1149, 32 ]
python
en
['en', 'error', 'th']
False
ColorBar.x
(self)
Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float
Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3]
def x(self): """ Sets the x position of the color bar (in plot fraction). The 'x' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float """ return self["x"]
[ "def", "x", "(", "self", ")", ":", "return", "self", "[", "\"x\"", "]" ]
[ 1158, 4 ]
[ 1169, 24 ]
python
en
['en', 'error', 'th']
False
ColorBar.xanchor
(self)
Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['left',...
Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['left',...
def xanchor(self): """ Sets this color bar's horizontal position anchor. This anchor binds the `x` position to the "left", "center" or "right" of the color bar. The 'xanchor' property is an enumeration that may be specified as: - One of the following enumeration va...
[ "def", "xanchor", "(", "self", ")", ":", "return", "self", "[", "\"xanchor\"", "]" ]
[ 1178, 4 ]
[ 1192, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.xpad
(self)
Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf]
def xpad(self): """ Sets the amount of padding (in px) along the x direction. The 'xpad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["xpad"]
[ "def", "xpad", "(", "self", ")", ":", "return", "self", "[", "\"xpad\"", "]" ]
[ 1201, 4 ]
[ 1212, 27 ]
python
en
['en', 'error', 'th']
False
ColorBar.y
(self)
Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float
Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3]
def y(self): """ Sets the y position of the color bar (in plot fraction). The 'y' property is a number and may be specified as: - An int or float in the interval [-2, 3] Returns ------- int|float """ return self["y"]
[ "def", "y", "(", "self", ")", ":", "return", "self", "[", "\"y\"", "]" ]
[ 1221, 4 ]
[ 1232, 24 ]
python
en
['en', 'error', 'th']
False
ColorBar.yanchor
(self)
Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'mi...
Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration values: ['top', 'mi...
def yanchor(self): """ Sets this color bar's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the color bar. The 'yanchor' property is an enumeration that may be specified as: - One of the following enumeration value...
[ "def", "yanchor", "(", "self", ")", ":", "return", "self", "[", "\"yanchor\"", "]" ]
[ 1241, 4 ]
[ 1255, 30 ]
python
en
['en', 'error', 'th']
False
ColorBar.ypad
(self)
Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float
Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf]
def ypad(self): """ Sets the amount of padding (in px) along the y direction. The 'ypad' property is a number and may be specified as: - An int or float in the interval [0, inf] Returns ------- int|float """ return self["ypad"]
[ "def", "ypad", "(", "self", ")", ":", "return", "self", "[", "\"ypad\"", "]" ]
[ 1264, 4 ]
[ 1275, 27 ]
python
en
['en', 'error', 'th']
False
ColorBar.__init__
( self, arg=None, bgcolor=None, bordercolor=None, borderwidth=None, dtick=None, exponentformat=None, len=None, lenmode=None, nticks=None, outlinecolor=None, outlinewidth=None, separatethousands=None, showexpo...
Construct a new ColorBar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.sunburst.marker.ColorBar` bgcolor Sets the color of padded area. ...
Construct a new ColorBar object Parameters ---------- arg dict of properties compatible with this constructor or an instance of :class:`plotly.graph_objs.sunburst.marker.ColorBar` bgcolor Sets the color of padded area. ...
def __init__( self, arg=None, bgcolor=None, bordercolor=None, borderwidth=None, dtick=None, exponentformat=None, len=None, lenmode=None, nticks=None, outlinecolor=None, outlinewidth=None, separatethousands=None, ...
[ "def", "__init__", "(", "self", ",", "arg", "=", "None", ",", "bgcolor", "=", "None", ",", "bordercolor", "=", "None", ",", "borderwidth", "=", "None", ",", "dtick", "=", "None", ",", "exponentformat", "=", "None", ",", "len", "=", "None", ",", "lenm...
[ 1482, 4 ]
[ 1941, 34 ]
python
en
['en', 'error', 'th']
False
RouteUpdateRequestHandler.handle
(self, context: RequestContext, responder: BaseResponder)
Message handler implementation.
Message handler implementation.
async def handle(self, context: RequestContext, responder: BaseResponder): """Message handler implementation.""" self._logger.debug( "%s called with context %s", self.__class__.__name__, context ) assert isinstance(context.message, RouteUpdateRequest) if not context....
[ "async", "def", "handle", "(", "self", ",", "context", ":", "RequestContext", ",", "responder", ":", "BaseResponder", ")", ":", "self", ".", "_logger", ".", "debug", "(", "\"%s called with context %s\"", ",", "self", ".", "__class__", ".", "__name__", ",", "...
[ 17, 4 ]
[ 32, 44 ]
python
da
['da', 'da', 'en']
True
init_detector
(config, checkpoint=None, device='cuda:0')
Initialize a detector from config file. Args: config (str or :obj:`mmcv.Config`): Config file path or the config object. checkpoint (str, optional): Checkpoint path. If left as None, the model will not load any weights. device (str): Device to use. Returns: ...
Initialize a detector from config file.
def init_detector(config, checkpoint=None, device='cuda:0'): """Initialize a detector from config file. Args: config (str or :obj:`mmcv.Config`): Config file path or the config object. checkpoint (str, optional): Checkpoint path. If left as None, the model will not load ...
[ "def", "init_detector", "(", "config", ",", "checkpoint", "=", "None", ",", "device", "=", "'cuda:0'", ")", ":", "if", "isinstance", "(", "config", ",", "str", ")", ":", "config", "=", "mmcv", ".", "Config", ".", "fromfile", "(", "config", ")", "elif",...
[ 13, 0 ]
[ 43, 16 ]
python
en
['en', 'en', 'en']
True
inference_detector
(model, pcd)
Inference point cloud with the detector. Args: model (nn.Module): The loaded detector. pcd (str): Point cloud files. Returns: tuple: Predicted results and data from pipeline.
Inference point cloud with the detector.
def inference_detector(model, pcd): """Inference point cloud with the detector. Args: model (nn.Module): The loaded detector. pcd (str): Point cloud files. Returns: tuple: Predicted results and data from pipeline. """ cfg = model.cfg device = next(model.parameters()).de...
[ "def", "inference_detector", "(", "model", ",", "pcd", ")", ":", "cfg", "=", "model", ".", "cfg", "device", "=", "next", "(", "model", ".", "parameters", "(", ")", ")", ".", "device", "# model device", "# build the data pipeline", "test_pipeline", "=", "deep...
[ 46, 0 ]
[ 85, 23 ]
python
en
['en', 'en', 'en']
True
show_result_meshlab
(data, result, out_dir)
Show result by meshlab. Args: data (dict): Contain data from pipeline. result (dict): Predicted result from model. out_dir (str): Directory to save visualized result.
Show result by meshlab.
def show_result_meshlab(data, result, out_dir): """Show result by meshlab. Args: data (dict): Contain data from pipeline. result (dict): Predicted result from model. out_dir (str): Directory to save visualized result. """ points = data['points'][0][0].cpu().numpy() pts_filen...
[ "def", "show_result_meshlab", "(", "data", ",", "result", ",", "out_dir", ")", ":", "points", "=", "data", "[", "'points'", "]", "[", "0", "]", "[", "0", "]", ".", "cpu", "(", ")", ".", "numpy", "(", ")", "pts_filename", "=", "data", "[", "'img_met...
[ 88, 0 ]
[ 113, 62 ]
python
en
['en', 'en', 'en']
True
RouteQueryResult.__init__
(self, *, recipient_key: str = None, **kwargs)
Initialize a RouteQueryResult instance. Args: recipient_key: The recipient verkey of the route
Initialize a RouteQueryResult instance.
def __init__(self, *, recipient_key: str = None, **kwargs): """ Initialize a RouteQueryResult instance. Args: recipient_key: The recipient verkey of the route """ super(RouteQueryResult, self).__init__(**kwargs) self.recipient_key = recipient_key
[ "def", "__init__", "(", "self", ",", "*", ",", "recipient_key", ":", "str", "=", "None", ",", "*", "*", "kwargs", ")", ":", "super", "(", "RouteQueryResult", ",", "self", ")", ".", "__init__", "(", "*", "*", "kwargs", ")", "self", ".", "recipient_key...
[ 15, 4 ]
[ 24, 42 ]
python
en
['en', 'error', 'th']
False
TestCredentialProposal.test_init
(self)
Test initializer.
Test initializer.
def test_init(self): """Test initializer.""" credential_proposal = CredentialProposal( comment="Hello World", credential_proposal=CRED_PREVIEW, schema_id="GMm4vMw8LLrLJjp81kRRLp:2:ahoy:1560364003.0", cred_def_id="GMm4vMw8LLrLJjp81kRRLp:3:CL:12:tag", ...
[ "def", "test_init", "(", "self", ")", ":", "credential_proposal", "=", "CredentialProposal", "(", "comment", "=", "\"Hello World\"", ",", "credential_proposal", "=", "CRED_PREVIEW", ",", "schema_id", "=", "\"GMm4vMw8LLrLJjp81kRRLp:2:ahoy:1560364003.0\"", ",", "cred_def_id...
[ 19, 4 ]
[ 27, 70 ]
python
de
['de', 'pl', 'en']
False
TestCredentialProposal.test_deserialize
(self)
Test deserialize.
Test deserialize.
def test_deserialize(self): """Test deserialize.""" obj = { "comment": "Hello World", "credential_proposal": { "@type": CREDENTIAL_PREVIEW, "attributes": [ {"name": "name", "value": "Alexander Delarge"}, {"na...
[ "def", "test_deserialize", "(", "self", ")", ":", "obj", "=", "{", "\"comment\"", ":", "\"Hello World\"", ",", "\"credential_proposal\"", ":", "{", "\"@type\"", ":", "CREDENTIAL_PREVIEW", ",", "\"attributes\"", ":", "[", "{", "\"name\"", ":", "\"name\"", ",", ...
[ 40, 4 ]
[ 56, 56 ]
python
ca
['ca', 'da', 'fr']
False
TestCredentialProposal.test_serialize
(self)
Test serialization.
Test serialization.
def test_serialize(self): """Test serialization.""" cred_proposal = CredentialProposal( comment="Hello World", credential_proposal=CRED_PREVIEW, schema_id="GMm4vMw8LLrLJjp81kRRLp:2:ahoy:1560364003.0", cred_def_id="GMm4vMw8LLrLJjp81kRRLp:3:CL:12:tag", ...
[ "def", "test_serialize", "(", "self", ")", ":", "cred_proposal", "=", "CredentialProposal", "(", "comment", "=", "\"Hello World\"", ",", "credential_proposal", "=", "CRED_PREVIEW", ",", "schema_id", "=", "\"GMm4vMw8LLrLJjp81kRRLp:2:ahoy:1560364003.0\"", ",", "cred_def_id"...
[ 58, 4 ]
[ 84, 9 ]
python
en
['en', 'fy', 'en']
False
TestCredentialProposalSchema.test_make_model
(self)
Test making model.
Test making model.
def test_make_model(self): """Test making model.""" for credential_proposal in self.credential_proposals: data = credential_proposal.serialize() model_instance = CredentialProposal.deserialize(data) assert isinstance(model_instance, CredentialProposal)
[ "def", "test_make_model", "(", "self", ")", ":", "for", "credential_proposal", "in", "self", ".", "credential_proposals", ":", "data", "=", "credential_proposal", ".", "serialize", "(", ")", "model_instance", "=", "CredentialProposal", ".", "deserialize", "(", "da...
[ 118, 4 ]
[ 123, 65 ]
python
en
['en', 'no', 'en']
True
get_config
(parse=True, **optional_kwargs)
Get configurations as attributes of class 1. Parse configurations with argparse. 2. Create Config class initilized with parsed kwargs. 3. Return Config class.
Get configurations as attributes of class 1. Parse configurations with argparse. 2. Create Config class initilized with parsed kwargs. 3. Return Config class.
def get_config(parse=True, **optional_kwargs): """ Get configurations as attributes of class 1. Parse configurations with argparse. 2. Create Config class initilized with parsed kwargs. 3. Return Config class. """ parser = argparse.ArgumentParser() # Task / Model / Data parser.add_a...
[ "def", "get_config", "(", "parse", "=", "True", ",", "*", "*", "optional_kwargs", ")", ":", "parser", "=", "argparse", ".", "ArgumentParser", "(", ")", "# Task / Model / Data", "parser", ".", "add_argument", "(", "'--task'", ",", "type", "=", "str", ",", "...
[ 51, 0 ]
[ 150, 27 ]
python
en
['en', 'error', 'th']
False
Config.__init__
(self, **kwargs)
Configuration Class: set kwargs as class attributes with setattr
Configuration Class: set kwargs as class attributes with setattr
def __init__(self, **kwargs): """Configuration Class: set kwargs as class attributes with setattr""" for k, v in kwargs.items(): setattr(self, k, v)
[ "def", "__init__", "(", "self", ",", "*", "*", "kwargs", ")", ":", "for", "k", ",", "v", "in", "kwargs", ".", "items", "(", ")", ":", "setattr", "(", "self", ",", "k", ",", "v", ")" ]
[ 20, 4 ]
[ 23, 31 ]
python
en
['en', 'en', 'sw']
True
Config.__repr__
(self)
Pretty-print configurations in alphabetical order
Pretty-print configurations in alphabetical order
def __repr__(self): """Pretty-print configurations in alphabetical order""" config_str = 'Configurations\n' config_str += self.config_str return config_str
[ "def", "__repr__", "(", "self", ")", ":", "config_str", "=", "'Configurations\\n'", "config_str", "+=", "self", ".", "config_str", "return", "config_str" ]
[ 29, 4 ]
[ 33, 25 ]
python
en
['en', 'en', 'en']
True
Font.color
(self)
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A named CSS color: ...
def color(self): """ The 'color' property is a color and may be specified as: - A hex string (e.g. '#ff0000') - An rgb/rgba string (e.g. 'rgb(255,0,0)') - An hsl/hsla string (e.g. 'hsl(0,100%,50%)') - An hsv/hsva string (e.g. 'hsv(0,100%,100%)') - A name...
[ "def", "color", "(", "self", ")", ":", "return", "self", "[", "\"color\"", "]" ]
[ 15, 4 ]
[ 64, 28 ]
python
en
['en', 'error', 'th']
False
Font.colorsrc
(self)
Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object
def colorsrc(self): """ Sets the source reference on Chart Studio Cloud for color . The 'colorsrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["colorsrc"]
[ "def", "colorsrc", "(", "self", ")", ":", "return", "self", "[", "\"colorsrc\"", "]" ]
[ 73, 4 ]
[ 84, 31 ]
python
en
['en', 'error', 'th']
False
Font.family
(self)
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts ...
def family(self): """ HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the prefer...
[ "def", "family", "(", "self", ")", ":", "return", "self", "[", "\"family\"", "]" ]
[ 93, 4 ]
[ 116, 29 ]
python
en
['en', 'error', 'th']
False
Font.familysrc
(self)
Sets the source reference on Chart Studio Cloud for family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object
def familysrc(self): """ Sets the source reference on Chart Studio Cloud for family . The 'familysrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["familysrc"]
[ "def", "familysrc", "(", "self", ")", ":", "return", "self", "[", "\"familysrc\"", "]" ]
[ 125, 4 ]
[ 136, 32 ]
python
en
['en', 'error', 'th']
False
Font.size
(self)
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray
The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above
def size(self): """ The 'size' property is a number and may be specified as: - An int or float in the interval [1, inf] - A tuple, list, or one-dimensional numpy array of the above Returns ------- int|float|numpy.ndarray """ return self["size"...
[ "def", "size", "(", "self", ")", ":", "return", "self", "[", "\"size\"", "]" ]
[ 145, 4 ]
[ 155, 27 ]
python
en
['en', 'error', 'th']
False
Font.sizesrc
(self)
Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str
Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object
def sizesrc(self): """ Sets the source reference on Chart Studio Cloud for size . The 'sizesrc' property must be specified as a string or as a plotly.grid_objs.Column object Returns ------- str """ return self["sizesrc"]
[ "def", "sizesrc", "(", "self", ")", ":", "return", "self", "[", "\"sizesrc\"", "]" ]
[ 164, 4 ]
[ 175, 30 ]
python
en
['en', 'error', 'th']
False