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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
Agent.reset | (self) |
Reset the agent, clearing its observation.
Many subclasses implement additional reset logic.
|
Reset the agent, clearing its observation. | def reset(self):
"""
Reset the agent, clearing its observation.
Many subclasses implement additional reset logic.
"""
self.observation = None | [
"def",
"reset",
"(",
"self",
")",
":",
"self",
".",
"observation",
"=",
"None"
] | [
104,
4
] | [
110,
31
] | python | en | ['en', 'error', 'th'] | False |
Agent.reset_metrics | (self) |
Reset any metrics reported by this agent.
This is called to indicate metrics should start fresh, and is typically called
between loggings or after a `report()`.
|
Reset any metrics reported by this agent. | def reset_metrics(self):
"""
Reset any metrics reported by this agent.
This is called to indicate metrics should start fresh, and is typically called
between loggings or after a `report()`.
"""
pass | [
"def",
"reset_metrics",
"(",
"self",
")",
":",
"pass"
] | [
112,
4
] | [
119,
12
] | python | en | ['en', 'error', 'th'] | False |
Agent.save | (self, path=None) |
Save any parameters needed to recreate this agent from loaded parameters.
Default implementation is no-op, but many subagents implement this logic.
|
Save any parameters needed to recreate this agent from loaded parameters. | def save(self, path=None):
"""
Save any parameters needed to recreate this agent from loaded parameters.
Default implementation is no-op, but many subagents implement this logic.
"""
pass | [
"def",
"save",
"(",
"self",
",",
"path",
"=",
"None",
")",
":",
"pass"
] | [
121,
4
] | [
127,
12
] | python | en | ['en', 'error', 'th'] | False |
Agent.clone | (self) |
Make a shared copy of this agent.
Should be the same as using create_agent_from_shared(.), but slightly easier.
|
Make a shared copy of this agent. | def clone(self):
"""
Make a shared copy of this agent.
Should be the same as using create_agent_from_shared(.), but slightly easier.
"""
return type(self)(self.opt, self.share()) | [
"def",
"clone",
"(",
"self",
")",
":",
"return",
"type",
"(",
"self",
")",
"(",
"self",
".",
"opt",
",",
"self",
".",
"share",
"(",
")",
")"
] | [
129,
4
] | [
135,
49
] | python | en | ['en', 'error', 'th'] | False |
Agent.share | (self) |
Share any parameters needed to create a shared version of this agent.
Default implementation shares the class and the opt, but most agents will want
to also add model weights, teacher data, etc. This especially useful for
avoiding providing pointers to large objects to all agents in a ... |
Share any parameters needed to create a shared version of this agent. | def share(self):
"""
Share any parameters needed to create a shared version of this agent.
Default implementation shares the class and the opt, but most agents will want
to also add model weights, teacher data, etc. This especially useful for
avoiding providing pointers to large... | [
"def",
"share",
"(",
"self",
")",
":",
"shared",
"=",
"{",
"}",
"shared",
"[",
"'class'",
"]",
"=",
"type",
"(",
"self",
")",
"shared",
"[",
"'opt'",
"]",
"=",
"self",
".",
"opt",
"return",
"shared"
] | [
137,
4
] | [
148,
21
] | python | en | ['en', 'error', 'th'] | False |
Agent.shutdown | (self) |
Perform any final cleanup if needed.
|
Perform any final cleanup if needed.
| def shutdown(self):
"""
Perform any final cleanup if needed.
"""
pass | [
"def",
"shutdown",
"(",
"self",
")",
":",
"pass"
] | [
150,
4
] | [
154,
12
] | python | en | ['en', 'error', 'th'] | False |
Agent.upgrade_opt | (cls, opt_from_disk: Opt) |
Upgrade legacy options when loading an opt file from disk.
This is primarily made available to provide a safe space to handle
backwards-compatible behavior. For example, perhaps we introduce a
new option today, which wasn't previously available. We can have the
argument have a ... |
Upgrade legacy options when loading an opt file from disk. | def upgrade_opt(cls, opt_from_disk: Opt):
"""
Upgrade legacy options when loading an opt file from disk.
This is primarily made available to provide a safe space to handle
backwards-compatible behavior. For example, perhaps we introduce a
new option today, which wasn't previousl... | [
"def",
"upgrade_opt",
"(",
"cls",
",",
"opt_from_disk",
":",
"Opt",
")",
":",
"# 2019-07-11: currently a no-op.",
"return",
"opt_from_disk"
] | [
157,
4
] | [
197,
28
] | python | en | ['en', 'error', 'th'] | False |
_create_parlai_format | (dpath: str) |
Copy data into the format read by ParlAIDialogTeacher.
'text' will be from the free Turker, who speaks first, and 'label' will be from the
guided Turker.
|
Copy data into the format read by ParlAIDialogTeacher. | def _create_parlai_format(dpath: str):
"""
Copy data into the format read by ParlAIDialogTeacher.
'text' will be from the free Turker, who speaks first, and 'label' will be from the
guided Turker.
"""
datatypes = ['train', 'valid', 'test']
for datatype in datatypes:
load_path = os... | [
"def",
"_create_parlai_format",
"(",
"dpath",
":",
"str",
")",
":",
"datatypes",
"=",
"[",
"'train'",
",",
"'valid'",
",",
"'test'",
"]",
"for",
"datatype",
"in",
"datatypes",
":",
"load_path",
"=",
"os",
".",
"path",
".",
"join",
"(",
"dpath",
",",
"f... | [
93,
0
] | [
124,
47
] | python | en | ['en', 'error', 'th'] | False |
_get_line | (episode: dict, num_entries: int, entry_idx: int) |
Return the line to print in the reformatted file.
|
Return the line to print in the reformatted file.
| def _get_line(episode: dict, num_entries: int, entry_idx: int) -> str:
"""
Return the line to print in the reformatted file.
"""
episode_done = entry_idx == num_entries - 1
# Compile original context
if entry_idx == 0:
# Add those pieces of context that appear in the datasets that this ... | [
"def",
"_get_line",
"(",
"episode",
":",
"dict",
",",
"num_entries",
":",
"int",
",",
"entry_idx",
":",
"int",
")",
"->",
"str",
":",
"episode_done",
"=",
"entry_idx",
"==",
"num_entries",
"-",
"1",
"# Compile original context",
"if",
"entry_idx",
"==",
"0",... | [
127,
0
] | [
194,
15
] | python | en | ['en', 'error', 'th'] | False |
TestAlice.test_alice_runs | (self) |
Test that the ALICE agent is stable over time.
|
Test that the ALICE agent is stable over time.
| def test_alice_runs(self):
"""
Test that the ALICE agent is stable over time.
"""
valid, test = testing_utils.eval_model(dict(task='convai2', model='alice'))
self.assertEqual(valid['f1'], 0.01397) | [
"def",
"test_alice_runs",
"(",
"self",
")",
":",
"valid",
",",
"test",
"=",
"testing_utils",
".",
"eval_model",
"(",
"dict",
"(",
"task",
"=",
"'convai2'",
",",
"model",
"=",
"'alice'",
")",
")",
"self",
".",
"assertEqual",
"(",
"valid",
"[",
"'f1'",
"... | [
12,
4
] | [
17,
46
] | python | en | ['en', 'error', 'th'] | False |
Modebar.activecolor | (self) |
Sets the color of the active or hovered on icons in the
modebar.
The 'activecolor' 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%)')
-... |
Sets the color of the active or hovered on icons in the
modebar.
The 'activecolor' 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%)')
-... | def activecolor(self):
"""
Sets the color of the active or hovered on icons in the
modebar.
The 'activecolor' 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... | [
"def",
"activecolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"activecolor\"",
"]"
] | [
15,
4
] | [
66,
34
] | python | en | ['en', 'error', 'th'] | False |
Modebar.bgcolor | (self) |
Sets the background color of the modebar.
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,10... |
Sets the background color of the modebar.
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,10... | def bgcolor(self):
"""
Sets the background color of the modebar.
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 h... | [
"def",
"bgcolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"bgcolor\"",
"]"
] | [
75,
4
] | [
125,
30
] | python | en | ['en', 'error', 'th'] | False |
Modebar.color | (self) |
Sets the color of the icons in the modebar.
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,10... |
Sets the color of the icons in the modebar.
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,10... | def color(self):
"""
Sets the color of the icons in the modebar.
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... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
134,
4
] | [
184,
28
] | python | en | ['en', 'error', 'th'] | False |
Modebar.orientation | (self) |
Sets the orientation of the modebar.
The 'orientation' property is an enumeration that may be specified as:
- One of the following enumeration values:
['v', 'h']
Returns
-------
Any
|
Sets the orientation of the modebar.
The 'orientation' property is an enumeration that may be specified as:
- One of the following enumeration values:
['v', 'h'] | def orientation(self):
"""
Sets the orientation of the modebar.
The 'orientation' property is an enumeration that may be specified as:
- One of the following enumeration values:
['v', 'h']
Returns
-------
Any
"""
return self... | [
"def",
"orientation",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"orientation\"",
"]"
] | [
193,
4
] | [
205,
34
] | python | en | ['en', 'error', 'th'] | False |
Modebar.uirevision | (self) |
Controls persistence of user-driven changes related to the
modebar, including `hovermode`, `dragmode`, and `showspikes` at
both the root level and inside subplots. Defaults to
`layout.uirevision`.
The 'uirevision' property accepts values of any type
Returns
... |
Controls persistence of user-driven changes related to the
modebar, including `hovermode`, `dragmode`, and `showspikes` at
both the root level and inside subplots. Defaults to
`layout.uirevision`.
The 'uirevision' property accepts values of any type | def uirevision(self):
"""
Controls persistence of user-driven changes related to the
modebar, including `hovermode`, `dragmode`, and `showspikes` at
both the root level and inside subplots. Defaults to
`layout.uirevision`.
The 'uirevision' property accepts values of ... | [
"def",
"uirevision",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"uirevision\"",
"]"
] | [
214,
4
] | [
227,
33
] | python | en | ['en', 'error', 'th'] | False |
Modebar.__init__ | (
self,
arg=None,
activecolor=None,
bgcolor=None,
color=None,
orientation=None,
uirevision=None,
**kwargs
) |
Construct a new Modebar object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.layout.Modebar`
activecolor
Sets the color of the active or hovered o... |
Construct a new Modebar object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.layout.Modebar`
activecolor
Sets the color of the active or hovered o... | def __init__(
self,
arg=None,
activecolor=None,
bgcolor=None,
color=None,
orientation=None,
uirevision=None,
**kwargs
):
"""
Construct a new Modebar object
Parameters
----------
arg
dict of p... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"activecolor",
"=",
"None",
",",
"bgcolor",
"=",
"None",
",",
"color",
"=",
"None",
",",
"orientation",
"=",
"None",
",",
"uirevision",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"s... | [
254,
4
] | [
348,
34
] | python | en | ['en', 'error', 'th'] | False |
GetCommandOutput | (command) | Runs the shell command and returns its stdout as a list of lines. | Runs the shell command and returns its stdout as a list of lines. | def GetCommandOutput(command):
"""Runs the shell command and returns its stdout as a list of lines."""
f = os.popen(command, 'r')
lines = [line.strip() for line in f.readlines()]
f.close()
return lines | [
"def",
"GetCommandOutput",
"(",
"command",
")",
":",
"f",
"=",
"os",
".",
"popen",
"(",
"command",
",",
"'r'",
")",
"lines",
"=",
"[",
"line",
".",
"strip",
"(",
")",
"for",
"line",
"in",
"f",
".",
"readlines",
"(",
")",
"]",
"f",
".",
"close",
... | [
45,
0
] | [
51,
14
] | python | en | ['en', 'en', 'en'] | True |
GetSvnInfo | () | Returns the project name and the current SVN workspace's root path. | Returns the project name and the current SVN workspace's root path. | def GetSvnInfo():
"""Returns the project name and the current SVN workspace's root path."""
for line in GetCommandOutput('svn info .'):
m = _SVN_INFO_URL_RE.match(line)
if m:
project = m.group(1) # googletest or googlemock
rel_path = m.group(2)
root = os.path.realpath(rel_path.count('/')... | [
"def",
"GetSvnInfo",
"(",
")",
":",
"for",
"line",
"in",
"GetCommandOutput",
"(",
"'svn info .'",
")",
":",
"m",
"=",
"_SVN_INFO_URL_RE",
".",
"match",
"(",
"line",
")",
"if",
"m",
":",
"project",
"=",
"m",
".",
"group",
"(",
"1",
")",
"# googletest or... | [
54,
0
] | [
65,
19
] | python | en | ['en', 'en', 'en'] | True |
GetSvnTrunk | () | Returns the current SVN workspace's trunk root path. | Returns the current SVN workspace's trunk root path. | def GetSvnTrunk():
"""Returns the current SVN workspace's trunk root path."""
_, root = GetSvnInfo()
return root + '/trunk' if root else None | [
"def",
"GetSvnTrunk",
"(",
")",
":",
"_",
",",
"root",
"=",
"GetSvnInfo",
"(",
")",
"return",
"root",
"+",
"'/trunk'",
"if",
"root",
"else",
"None"
] | [
68,
0
] | [
72,
42
] | python | en | ['en', 'en', 'en'] | True |
Stream.maxpoints | (self) |
Sets the maximum number of points to keep on the plots from an
incoming stream. If `maxpoints` is set to 50, only the newest
50 points will be displayed on the plot.
The 'maxpoints' property is a number and may be specified as:
- An int or float in the interval [0, 10000]... |
Sets the maximum number of points to keep on the plots from an
incoming stream. If `maxpoints` is set to 50, only the newest
50 points will be displayed on the plot.
The 'maxpoints' property is a number and may be specified as:
- An int or float in the interval [0, 10000] | def maxpoints(self):
"""
Sets the maximum number of points to keep on the plots from an
incoming stream. If `maxpoints` is set to 50, only the newest
50 points will be displayed on the plot.
The 'maxpoints' property is a number and may be specified as:
- An int or ... | [
"def",
"maxpoints",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"maxpoints\"",
"]"
] | [
15,
4
] | [
28,
32
] | python | en | ['en', 'error', 'th'] | False |
Stream.token | (self) |
The stream id number links a data trace on a plot with a
stream. See https://chart-studio.plotly.com/settings for more
details.
The 'token' property is a string and must be specified as:
- A non-empty string
Returns
-------
str
|
The stream id number links a data trace on a plot with a
stream. See https://chart-studio.plotly.com/settings for more
details.
The 'token' property is a string and must be specified as:
- A non-empty string | def token(self):
"""
The stream id number links a data trace on a plot with a
stream. See https://chart-studio.plotly.com/settings for more
details.
The 'token' property is a string and must be specified as:
- A non-empty string
Returns
-------
... | [
"def",
"token",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"token\"",
"]"
] | [
37,
4
] | [
50,
28
] | python | en | ['en', 'error', 'th'] | False |
Stream.__init__ | (self, arg=None, maxpoints=None, token=None, **kwargs) |
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.funnelarea.Stream`
maxpoints
Sets the maximum number of points to keep... |
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.funnelarea.Stream`
maxpoints
Sets the maximum number of points to keep... | def __init__(self, arg=None, maxpoints=None, token=None, **kwargs):
"""
Construct a new Stream object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.funnelarea.... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"maxpoints",
"=",
"None",
",",
"token",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Stream",
",",
"self",
")",
".",
"__init__",
"(",
"\"stream\"",
")",
"if",
"\"_paren... | [
72,
4
] | [
140,
34
] | python | en | ['en', 'error', 'th'] | False |
CaseInsensitiveModelBackend.authenticate | (self, username=None, password=None, autologin=None) |
Custom authenticate with bypass for auto-logins
Args:
username (str, optional): Name of user to authenticate.
password (str, optional): Password of user
autologin (Account, optional): If given, assume this is
an already authenticated account and bypass... |
Custom authenticate with bypass for auto-logins | def authenticate(self, username=None, password=None, autologin=None):
"""
Custom authenticate with bypass for auto-logins
Args:
username (str, optional): Name of user to authenticate.
password (str, optional): Password of user
autologin (Account, optional): I... | [
"def",
"authenticate",
"(",
"self",
",",
"username",
"=",
"None",
",",
"password",
"=",
"None",
",",
"autologin",
"=",
"None",
")",
":",
"if",
"autologin",
":",
"# Note: Setting .backend on account is critical in order to",
"# be allowed to call django.auth.login(account)... | [
12,
4
] | [
41,
27
] | python | en | ['en', 'error', 'th'] | False |
Aspectratio.x | (self) |
The 'x' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
The 'x' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def x(self):
"""
The 'x' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["x"] | [
"def",
"x",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x\"",
"]"
] | [
15,
4
] | [
24,
24
] | python | en | ['en', 'error', 'th'] | False |
Aspectratio.y | (self) |
The 'y' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
The 'y' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def y(self):
"""
The 'y' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["y"] | [
"def",
"y",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"y\"",
"]"
] | [
33,
4
] | [
42,
24
] | python | en | ['en', 'error', 'th'] | False |
Aspectratio.z | (self) |
The 'z' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
The 'z' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def z(self):
"""
The 'z' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
return self["z"] | [
"def",
"z",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"z\"",
"]"
] | [
51,
4
] | [
60,
24
] | python | en | ['en', 'error', 'th'] | False |
Aspectratio.__init__ | (self, arg=None, x=None, y=None, z=None, **kwargs) |
Construct a new Aspectratio object
Sets this scene's axis aspectratio.
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.layout.scene.Aspectratio`
x
... |
Construct a new Aspectratio object
Sets this scene's axis aspectratio. | def __init__(self, arg=None, x=None, y=None, z=None, **kwargs):
"""
Construct a new Aspectratio object
Sets this scene's axis aspectratio.
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"x",
"=",
"None",
",",
"y",
"=",
"None",
",",
"z",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Aspectratio",
",",
"self",
")",
".",
"__init__",
"(",
"\"aspectratio\"... | [
79,
4
] | [
150,
34
] | python | en | ['en', 'error', 'th'] | False |
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
] | [
63,
28
] | 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\"",
"]"
] | [
72,
4
] | [
94,
29
] | 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]
Returns
-------
int|float
|
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf] | def size(self):
"""
The 'size' property is a number and may be specified as:
- An int or float in the interval [1, inf]
Returns
-------
int|float
"""
return self["size"] | [
"def",
"size",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"size\"",
"]"
] | [
103,
4
] | [
112,
27
] | python | en | ['en', 'error', 'th'] | False |
Font.__init__ | (self, arg=None, color=None, family=None, size=None, **kwargs) |
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
Parameters
----------
arg
dict of properties compatible with this constructor or
an inst... |
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute. | def __init__(self, arg=None, color=None, family=None, size=None, **kwargs):
"""
Construct a new Font object
Sets this color bar's title font. Note that the title's font
used to be set by the now deprecated `titlefont` attribute.
Parameters
----------
arg... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"family",
"=",
"None",
",",
"size",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Font",
",",
"self",
")",
".",
"__init__",
"(",
"\"font\"",... | [
143,
4
] | [
227,
34
] | python | en | ['en', 'error', 'th'] | False |
Marker.color | (self) |
Sets the marker color of unselected points, applied only when a
selection exists.
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%)')
... |
Sets the marker color of unselected points, applied only when a
selection exists.
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%)')
... | def color(self):
"""
Sets the marker color of unselected points, applied only when a
selection exists.
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 stri... | [
"def",
"color",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"color\"",
"]"
] | [
15,
4
] | [
66,
28
] | python | en | ['en', 'error', 'th'] | False |
Marker.opacity | (self) |
Sets the marker opacity of unselected points, applied only when
a selection exists.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
|
Sets the marker opacity of unselected points, applied only when
a selection exists.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1] | def opacity(self):
"""
Sets the marker opacity of unselected points, applied only when
a selection exists.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
"""
... | [
"def",
"opacity",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"opacity\"",
"]"
] | [
75,
4
] | [
87,
30
] | python | en | ['en', 'error', 'th'] | False |
Marker.size | (self) |
Sets the marker size of unselected points, applied only when a
selection exists.
The 'size' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
|
Sets the marker size of unselected points, applied only when a
selection exists.
The 'size' property is a number and may be specified as:
- An int or float in the interval [0, inf] | def size(self):
"""
Sets the marker size of unselected points, applied only when a
selection exists.
The 'size' property is a number and may be specified as:
- An int or float in the interval [0, inf]
Returns
-------
int|float
"""
r... | [
"def",
"size",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"size\"",
"]"
] | [
96,
4
] | [
108,
27
] | python | en | ['en', 'error', 'th'] | False |
Marker.__init__ | (self, arg=None, color=None, opacity=None, size=None, **kwargs) |
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.scatterpolargl
.unselected.Marker`
color
Sets the marker color of unse... |
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.scatterpolargl
.unselected.Marker`
color
Sets the marker color of unse... | def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs):
"""
Construct a new Marker object
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of :class:`plotly.graph_objs.scatterpolargl... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"opacity",
"=",
"None",
",",
"size",
"=",
"None",
",",
"*",
"*",
"kwargs",
")",
":",
"super",
"(",
"Marker",
",",
"self",
")",
".",
"__init__",
"(",
"\"marke... | [
130,
4
] | [
202,
34
] | python | en | ['en', 'error', 'th'] | False |
Insidetextfont.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 |
Insidetextfont.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 |
Insidetextfont.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 |
Insidetextfont.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 |
Insidetextfont.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 |
Insidetextfont.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 |
Insidetextfont.__init__ | (
self,
arg=None,
color=None,
colorsrc=None,
family=None,
familysrc=None,
size=None,
sizesrc=None,
**kwargs
) |
Construct a new Insidetextfont object
Sets the font used for `textinfo` lying inside the sector.
Parameters
----------
arg
dict of properties compatible with this constructor or
an instance of
:class:`plotly.graph_objs.treemap.Inside... |
Construct a new Insidetextfont object
Sets the font used for `textinfo` lying inside the sector. | def __init__(
self,
arg=None,
color=None,
colorsrc=None,
family=None,
familysrc=None,
size=None,
sizesrc=None,
**kwargs
):
"""
Construct a new Insidetextfont object
Sets the font used for `textinfo` lying inside... | [
"def",
"__init__",
"(",
"self",
",",
"arg",
"=",
"None",
",",
"color",
"=",
"None",
",",
"colorsrc",
"=",
"None",
",",
"family",
"=",
"None",
",",
"familysrc",
"=",
"None",
",",
"size",
"=",
"None",
",",
"sizesrc",
"=",
"None",
",",
"*",
"*",
"kw... | [
215,
4
] | [
329,
34
] | python | en | ['en', 'error', 'th'] | False |
set_env_yamls | () |
This defines the global variables describing where the conda env yaml files are
|
This defines the global variables describing where the conda env yaml files are
| def set_env_yamls():
"""
This defines the global variables describing where the conda env yaml files are
"""
return {'CONDA_SHARED_ENV': 'envs/shared.yaml',
'CONDA_CREATE_INDEX_ENV': 'envs/createIndices.yaml',
'CONDA_RNASEQ_ENV': 'envs/rna_seq.yaml',
'CONDA_RMATS_ENV'... | [
"def",
"set_env_yamls",
"(",
")",
":",
"return",
"{",
"'CONDA_SHARED_ENV'",
":",
"'envs/shared.yaml'",
",",
"'CONDA_CREATE_INDEX_ENV'",
":",
"'envs/createIndices.yaml'",
",",
"'CONDA_RNASEQ_ENV'",
":",
"'envs/rna_seq.yaml'",
",",
"'CONDA_RMATS_ENV'",
":",
"'envs/rMats.yaml'... | [
17,
0
] | [
39,
49
] | python | en | ['en', 'error', 'th'] | False |
namesOKinR | (sampleNames) |
Return nothing, but print warning to the screen
if any of the sample names will get munged by R.
|
Return nothing, but print warning to the screen
if any of the sample names will get munged by R.
| def namesOKinR(sampleNames):
"""
Return nothing, but print warning to the screen
if any of the sample names will get munged by R.
"""
reservedWords = set(["NULL", "NA", "TRUE", "FALSE", "Inf", "NaN", "NA_integer_", "NA_real_",
"NA_character_", "NA_complex_", "function", "whi... | [
"def",
"namesOKinR",
"(",
"sampleNames",
")",
":",
"reservedWords",
"=",
"set",
"(",
"[",
"\"NULL\"",
",",
"\"NA\"",
",",
"\"TRUE\"",
",",
"\"FALSE\"",
",",
"\"Inf\"",
",",
"\"NaN\"",
",",
"\"NA_integer_\"",
",",
"\"NA_real_\"",
",",
"\"NA_character_\"",
",",
... | [
60,
0
] | [
77,
185
] | python | en | ['en', 'error', 'th'] | False |
get_sample_names | (infiles, ext, reads) |
Get sample names without file extensions
|
Get sample names without file extensions
| def get_sample_names(infiles, ext, reads):
"""
Get sample names without file extensions
"""
s = set()
lext = len(ext)
l0 = len(reads[0])
l1 = len(reads[1])
for x in infiles:
x = os.path.basename(x)[:-lext]
if x.endswith(reads[0]):
x = x[:-l0]
s.add... | [
"def",
"get_sample_names",
"(",
"infiles",
",",
"ext",
",",
"reads",
")",
":",
"s",
"=",
"set",
"(",
")",
"lext",
"=",
"len",
"(",
"ext",
")",
"l0",
"=",
"len",
"(",
"reads",
"[",
"0",
"]",
")",
"l1",
"=",
"len",
"(",
"reads",
"[",
"1",
"]",
... | [
132,
0
] | [
157,
26
] | python | en | ['en', 'error', 'th'] | False |
get_sample_names_bam | (infiles, bamExt) |
Get sample names without file extensions
|
Get sample names without file extensions
| def get_sample_names_bam(infiles, bamExt):
"""
Get sample names without file extensions
"""
s = []
for x in infiles:
x = os.path.basename(x).replace(bamExt, "")
s.append(x)
return sorted(list(set(s))) | [
"def",
"get_sample_names_bam",
"(",
"infiles",
",",
"bamExt",
")",
":",
"s",
"=",
"[",
"]",
"for",
"x",
"in",
"infiles",
":",
"x",
"=",
"os",
".",
"path",
".",
"basename",
"(",
"x",
")",
".",
"replace",
"(",
"bamExt",
",",
"\"\"",
")",
"s",
".",
... | [
160,
0
] | [
168,
31
] | python | en | ['en', 'error', 'th'] | False |
is_paired | (infiles, ext, reads) |
Check for paired-end input files
|
Check for paired-end input files
| def is_paired(infiles, ext, reads):
"""
Check for paired-end input files
"""
pairedEnd = False
infiles_dic = {}
for infile in infiles:
fname = os.path.basename(infile).replace(ext, "")
m = re.match("^(.+)(" + reads[0] + "|" + reads[1] + ")$", fname)
if m:
bnam... | [
"def",
"is_paired",
"(",
"infiles",
",",
"ext",
",",
"reads",
")",
":",
"pairedEnd",
"=",
"False",
"infiles_dic",
"=",
"{",
"}",
"for",
"infile",
"in",
"infiles",
":",
"fname",
"=",
"os",
".",
"path",
".",
"basename",
"(",
"infile",
")",
".",
"replac... | [
171,
0
] | [
193,
20
] | python | en | ['en', 'error', 'th'] | False |
check_replicates | (sample_info_file) |
return True if each condition has at least 2 replicates
this check is eg. necessary for sleuth
|
return True if each condition has at least 2 replicates
this check is eg. necessary for sleuth
| def check_replicates(sample_info_file):
"""
return True if each condition has at least 2 replicates
this check is eg. necessary for sleuth
"""
f = open(sample_info_file)
conditionCol = None
nCols = None
d = dict()
for idx, line in enumerate(f):
cols = line.strip().split("\t")... | [
"def",
"check_replicates",
"(",
"sample_info_file",
")",
":",
"f",
"=",
"open",
"(",
"sample_info_file",
")",
"conditionCol",
"=",
"None",
"nCols",
"=",
"None",
"d",
"=",
"dict",
"(",
")",
"for",
"idx",
",",
"line",
"in",
"enumerate",
"(",
"f",
")",
":... | [
196,
0
] | [
230,
15
] | python | en | ['en', 'error', 'th'] | False |
sampleSheetGroups | (sampleSheet) |
Parse a sampleSheet and return a dictionary with keys the group and values the sample names
|
Parse a sampleSheet and return a dictionary with keys the group and values the sample names
| def sampleSheetGroups(sampleSheet):
"""
Parse a sampleSheet and return a dictionary with keys the group and values the sample names
"""
f = open(sampleSheet)
conditionCol = None
nameCol = None
nCols = None
d = dict()
for idx, line in enumerate(f):
cols = line.strip().split("\... | [
"def",
"sampleSheetGroups",
"(",
"sampleSheet",
")",
":",
"f",
"=",
"open",
"(",
"sampleSheet",
")",
"conditionCol",
"=",
"None",
"nameCol",
"=",
"None",
"nCols",
"=",
"None",
"d",
"=",
"dict",
"(",
")",
"for",
"idx",
",",
"line",
"in",
"enumerate",
"(... | [
353,
0
] | [
383,
12
] | python | en | ['en', 'error', 'th'] | False |
cleanLogs | (d, cluster_config) |
Remove all empty log files, both in cluster_logs/ and */logs/
|
Remove all empty log files, both in cluster_logs/ and */logs/
| def cleanLogs(d, cluster_config):
"""
Remove all empty log files, both in cluster_logs/ and */logs/
"""
if "snakePipes_cluster_logDir" in cluster_config:
path = os.path.join(d, cluster_config["snakePipes_cluster_logDir"], "*")
if re.search("^/", cluster_config["snakePipes_cluster_logDir"... | [
"def",
"cleanLogs",
"(",
"d",
",",
"cluster_config",
")",
":",
"if",
"\"snakePipes_cluster_logDir\"",
"in",
"cluster_config",
":",
"path",
"=",
"os",
".",
"path",
".",
"join",
"(",
"d",
",",
"cluster_config",
"[",
"\"snakePipes_cluster_logDir\"",
"]",
",",
"\"... | [
434,
0
] | [
449,
24
] | python | en | ['en', 'error', 'th'] | False |
check_sample_info_header | (sampleSheet_file) |
return True in case sample info file contains column names 'name' and 'condition'
|
return True in case sample info file contains column names 'name' and 'condition'
| def check_sample_info_header(sampleSheet_file):
"""
return True in case sample info file contains column names 'name' and 'condition'
"""
if not os.path.isfile(sampleSheet_file):
sys.exit("ERROR: Cannot find sample info file! (--sampleSheet {})\n".format(sampleSheet_file))
sampleSheet_file =... | [
"def",
"check_sample_info_header",
"(",
"sampleSheet_file",
")",
":",
"if",
"not",
"os",
".",
"path",
".",
"isfile",
"(",
"sampleSheet_file",
")",
":",
"sys",
".",
"exit",
"(",
"\"ERROR: Cannot find sample info file! (--sampleSheet {})\\n\"",
".",
"format",
"(",
"sa... | [
452,
0
] | [
464,
27
] | python | en | ['en', 'error', 'th'] | False |
setDefaults | (fileName) |
Set a number of variables used in the wrappers and the defaults
|
Set a number of variables used in the wrappers and the defaults
| def setDefaults(fileName):
"""
Set a number of variables used in the wrappers and the defaults
"""
# Script-neutral paths
baseDir = os.path.dirname(__file__)
workflowDir = os.path.join(baseDir, "workflows", fileName)
# defaults
defaults = load_configfile(os.path.join(workflowDir, "defau... | [
"def",
"setDefaults",
"(",
"fileName",
")",
":",
"# Script-neutral paths",
"baseDir",
"=",
"os",
".",
"path",
".",
"dirname",
"(",
"__file__",
")",
"workflowDir",
"=",
"os",
".",
"path",
".",
"join",
"(",
"baseDir",
",",
"\"workflows\"",
",",
"fileName",
"... | [
467,
0
] | [
479,
41
] | python | en | ['en', 'error', 'th'] | False |
handleUserArgs | (args, defaults, args_func) |
If a user supplies a custom YAML file then that must then replace the defaults.
However command line options need to take precedence, so update defaults and
simply reparse the command line options (with args_func().parse_args())
|
If a user supplies a custom YAML file then that must then replace the defaults.
However command line options need to take precedence, so update defaults and
simply reparse the command line options (with args_func().parse_args())
| def handleUserArgs(args, defaults, args_func):
"""
If a user supplies a custom YAML file then that must then replace the defaults.
However command line options need to take precedence, so update defaults and
simply reparse the command line options (with args_func().parse_args())
"""
if args.conf... | [
"def",
"handleUserArgs",
"(",
"args",
",",
"defaults",
",",
"args_func",
")",
":",
"if",
"args",
".",
"configFile",
":",
"if",
"not",
"os",
".",
"path",
".",
"exists",
"(",
"args",
".",
"configFile",
")",
":",
"sys",
".",
"exit",
"(",
"\"\\nError! Prov... | [
482,
0
] | [
496,
25
] | python | en | ['en', 'error', 'th'] | False |
sendEmail | (args, returnCode) |
Try to send an email to the user. Errors must be non-fatal.
|
Try to send an email to the user. Errors must be non-fatal.
| def sendEmail(args, returnCode):
"""
Try to send an email to the user. Errors must be non-fatal.
"""
try:
msg = EmailMessage()
msg['Subject'] = "Snakepipes completed"
msg['From'] = args.emailSender
msg['To'] = args.emailAddress
if returnCode == 0:
msg.... | [
"def",
"sendEmail",
"(",
"args",
",",
"returnCode",
")",
":",
"try",
":",
"msg",
"=",
"EmailMessage",
"(",
")",
"msg",
"[",
"'Subject'",
"]",
"=",
"\"Snakepipes completed\"",
"msg",
"[",
"'From'",
"]",
"=",
"args",
".",
"emailSender",
"msg",
"[",
"'To'",... | [
499,
0
] | [
523,
12
] | python | en | ['en', 'error', 'th'] | False |
checkCommonArguments | (args, baseDir, outDir=False, createIndices=False, preprocessing=False) |
Check the wrapper arguments
The createIndices workflow disables some of this
|
Check the wrapper arguments | def checkCommonArguments(args, baseDir, outDir=False, createIndices=False, preprocessing=False):
"""
Check the wrapper arguments
The createIndices workflow disables some of this
"""
# Some workflows use a working dir, others and outdir
if outDir:
args.outdir = os.path.abspath(args.outdi... | [
"def",
"checkCommonArguments",
"(",
"args",
",",
"baseDir",
",",
"outDir",
"=",
"False",
",",
"createIndices",
"=",
"False",
",",
"preprocessing",
"=",
"False",
")",
":",
"# Some workflows use a working dir, others and outdir",
"if",
"outDir",
":",
"args",
".",
"o... | [
526,
0
] | [
573,
121
] | python | en | ['en', 'error', 'th'] | False |
commonYAMLandLogs | (baseDir, workflowDir, defaults, args, callingScript) |
Merge dictionaries, write YAML files, construct the snakemake command
and create the DAG
|
Merge dictionaries, write YAML files, construct the snakemake command
and create the DAG
| def commonYAMLandLogs(baseDir, workflowDir, defaults, args, callingScript):
"""
Merge dictionaries, write YAML files, construct the snakemake command
and create the DAG
"""
workflowName = os.path.basename(callingScript)
snakemake_path = os.path.dirname(os.path.abspath(callingScript))
os.mak... | [
"def",
"commonYAMLandLogs",
"(",
"baseDir",
",",
"workflowDir",
",",
"defaults",
",",
"args",
",",
"callingScript",
")",
":",
"workflowName",
"=",
"os",
".",
"path",
".",
"basename",
"(",
"callingScript",
")",
"snakemake_path",
"=",
"os",
".",
"path",
".",
... | [
576,
0
] | [
650,
34
] | python | en | ['en', 'error', 'th'] | False |
logAndExport | (args, workflowName) |
Set up logging
|
Set up logging
| def logAndExport(args, workflowName):
"""
Set up logging
"""
# Write snakemake_cmd to log file
fnames = glob.glob(os.path.join(args.outdir, '{}_run-[0-9]*.log'.format(workflowName)))
if len(fnames) == 0:
n = 1 # no matching files, this is the first run
else:
fnames.sort(key=... | [
"def",
"logAndExport",
"(",
"args",
",",
"workflowName",
")",
":",
"# Write snakemake_cmd to log file",
"fnames",
"=",
"glob",
".",
"glob",
"(",
"os",
".",
"path",
".",
"join",
"(",
"args",
".",
"outdir",
",",
"'{}_run-[0-9]*.log'",
".",
"format",
"(",
"work... | [
667,
0
] | [
681,
23
] | python | en | ['en', 'error', 'th'] | False |
runAndCleanup | (args, cmd, logfile_name) |
Actually run snakemake. Kill its child processes on error.
Also clean up when finished.
|
Actually run snakemake. Kill its child processes on error.
Also clean up when finished.
| def runAndCleanup(args, cmd, logfile_name):
"""
Actually run snakemake. Kill its child processes on error.
Also clean up when finished.
"""
if args.verbose:
print("\n{}\n".format(cmd))
# write log file
f = open(os.path.join(args.outdir, logfile_name), "w")
f.write(" ".join(sys.a... | [
"def",
"runAndCleanup",
"(",
"args",
",",
"cmd",
",",
"logfile_name",
")",
":",
"if",
"args",
".",
"verbose",
":",
"print",
"(",
"\"\\n{}\\n\"",
".",
"format",
"(",
"cmd",
")",
")",
"# write log file",
"f",
"=",
"open",
"(",
"os",
".",
"path",
".",
"... | [
684,
0
] | [
729,
26
] | python | en | ['en', 'error', 'th'] | False |
predict_chip_dict | (wdir, input_pattern_str, bamExt, fromBAM=None) |
Predict a chip_dict from set of bam files
ChIP input/control samples are identified from input_pattern (default: 'input')
for each sample then the best input sample (by fuzzywuzzy score) is selected
chip_dict is written as yaml to workflow workingdir
predicts whether a sample is broad or narrow bas... |
Predict a chip_dict from set of bam files
ChIP input/control samples are identified from input_pattern (default: 'input')
for each sample then the best input sample (by fuzzywuzzy score) is selected
chip_dict is written as yaml to workflow workingdir
predicts whether a sample is broad or narrow bas... | def predict_chip_dict(wdir, input_pattern_str, bamExt, fromBAM=None):
"""
Predict a chip_dict from set of bam files
ChIP input/control samples are identified from input_pattern (default: 'input')
for each sample then the best input sample (by fuzzywuzzy score) is selected
chip_dict is written as yam... | [
"def",
"predict_chip_dict",
"(",
"wdir",
",",
"input_pattern_str",
",",
"bamExt",
",",
"fromBAM",
"=",
"None",
")",
":",
"pat",
"=",
"\"|\"",
".",
"join",
"(",
"re",
".",
"split",
"(",
"',| |\\\\||;'",
",",
"input_pattern_str",
")",
")",
"input_pat",
"=",
... | [
732,
0
] | [
804,
100
] | python | en | ['en', 'error', 'th'] | False |
Contour.autocolorscale | (self) |
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`colorscale`. In case `colorscale` is unspecified or
`autocolorscale` is true, the default palette will be chosen
according to whether numbers in the `color` array are a... |
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`colorscale`. In case `colorscale` is unspecified or
`autocolorscale` is true, the default palette will be chosen
according to whether numbers in the `color` array are a... | def autocolorscale(self):
"""
Determines whether the colorscale is a default palette
(`autocolorscale: true`) or the palette determined by
`colorscale`. In case `colorscale` is unspecified or
`autocolorscale` is true, the default palette will be chosen
according to wheth... | [
"def",
"autocolorscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"autocolorscale\"",
"]"
] | [
75,
4
] | [
91,
37
] | python | en | ['en', 'error', 'th'] | False |
Contour.autocontour | (self) |
Determines whether or not the contour level attributes are
picked by an algorithm. If True, the number of contour levels
can be set in `ncontours`. If False, set the contour level
attributes in `contours`.
The 'autocontour' property must be specified as a bool
(eith... |
Determines whether or not the contour level attributes are
picked by an algorithm. If True, the number of contour levels
can be set in `ncontours`. If False, set the contour level
attributes in `contours`.
The 'autocontour' property must be specified as a bool
(eith... | def autocontour(self):
"""
Determines whether or not the contour level attributes are
picked by an algorithm. If True, the number of contour levels
can be set in `ncontours`. If False, set the contour level
attributes in `contours`.
The 'autocontour' property must be... | [
"def",
"autocontour",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"autocontour\"",
"]"
] | [
100,
4
] | [
114,
34
] | python | en | ['en', 'error', 'th'] | False |
Contour.coloraxis | (self) |
Sets a reference to a shared color axis. References to these
shared color axes are "coloraxis", "coloraxis2", "coloraxis3",
etc. Settings for these shared color axes are set in the
layout, under `layout.coloraxis`, `layout.coloraxis2`, etc.
Note that multiple color scales can be... |
Sets a reference to a shared color axis. References to these
shared color axes are "coloraxis", "coloraxis2", "coloraxis3",
etc. Settings for these shared color axes are set in the
layout, under `layout.coloraxis`, `layout.coloraxis2`, etc.
Note that multiple color scales can be... | def coloraxis(self):
"""
Sets a reference to a shared color axis. References to these
shared color axes are "coloraxis", "coloraxis2", "coloraxis3",
etc. Settings for these shared color axes are set in the
layout, under `layout.coloraxis`, `layout.coloraxis2`, etc.
Note t... | [
"def",
"coloraxis",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"coloraxis\"",
"]"
] | [
123,
4
] | [
141,
32
] | python | en | ['en', 'error', 'th'] | False |
Contour.colorbar | (self) |
The 'colorbar' property is an instance of ColorBar
that may be specified as:
- An instance of :class:`plotly.graph_objs.contour.ColorBar`
- A dict of string/value properties that will be passed
to the ColorBar constructor
Supported dict properties:
... |
The 'colorbar' property is an instance of ColorBar
that may be specified as:
- An instance of :class:`plotly.graph_objs.contour.ColorBar`
- A dict of string/value properties that will be passed
to the ColorBar constructor
Supported dict properties:
... | def colorbar(self):
"""
The 'colorbar' property is an instance of ColorBar
that may be specified as:
- An instance of :class:`plotly.graph_objs.contour.ColorBar`
- A dict of string/value properties that will be passed
to the ColorBar constructor
S... | [
"def",
"colorbar",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorbar\"",
"]"
] | [
150,
4
] | [
376,
31
] | python | en | ['en', 'error', 'th'] | False |
Contour.colorscale | (self) |
Sets the colorscale. The colorscale must be an array containing
arrays mapping a normalized value to an rgb, rgba, hex, hsl,
hsv, or named color string. At minimum, a mapping for the
lowest (0) and highest (1) values are required. For example,
`[[0, 'rgb(0,0,255)'], [1, 'rgb(255... |
Sets the colorscale. The colorscale must be an array containing
arrays mapping a normalized value to an rgb, rgba, hex, hsl,
hsv, or named color string. At minimum, a mapping for the
lowest (0) and highest (1) values are required. For example,
`[[0, 'rgb(0,0,255)'], [1, 'rgb(255... | def colorscale(self):
"""
Sets the colorscale. The colorscale must be an array containing
arrays mapping a normalized value to an rgb, rgba, hex, hsl,
hsv, or named color string. At minimum, a mapping for the
lowest (0) and highest (1) values are required. For example,
`[... | [
"def",
"colorscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"colorscale\"",
"]"
] | [
385,
4
] | [
428,
33
] | python | en | ['en', 'error', 'th'] | False |
Contour.connectgaps | (self) |
Determines whether or not gaps (i.e. {nan} or missing values)
in the `z` data are filled in. It is defaulted to true if `z`
is a one dimensional array otherwise it is defaulted to false.
The 'connectgaps' property must be specified as a bool
(either True, or False)
... |
Determines whether or not gaps (i.e. {nan} or missing values)
in the `z` data are filled in. It is defaulted to true if `z`
is a one dimensional array otherwise it is defaulted to false.
The 'connectgaps' property must be specified as a bool
(either True, or False) | def connectgaps(self):
"""
Determines whether or not gaps (i.e. {nan} or missing values)
in the `z` data are filled in. It is defaulted to true if `z`
is a one dimensional array otherwise it is defaulted to false.
The 'connectgaps' property must be specified as a bool
... | [
"def",
"connectgaps",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"connectgaps\"",
"]"
] | [
437,
4
] | [
450,
34
] | python | en | ['en', 'error', 'th'] | False |
Contour.contours | (self) |
The 'contours' property is an instance of Contours
that may be specified as:
- An instance of :class:`plotly.graph_objs.contour.Contours`
- A dict of string/value properties that will be passed
to the Contours constructor
Supported dict properties:
... |
The 'contours' property is an instance of Contours
that may be specified as:
- An instance of :class:`plotly.graph_objs.contour.Contours`
- A dict of string/value properties that will be passed
to the Contours constructor
Supported dict properties:
... | def contours(self):
"""
The 'contours' property is an instance of Contours
that may be specified as:
- An instance of :class:`plotly.graph_objs.contour.Contours`
- A dict of string/value properties that will be passed
to the Contours constructor
S... | [
"def",
"contours",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"contours\"",
"]"
] | [
459,
4
] | [
537,
31
] | python | en | ['en', 'error', 'th'] | False |
Contour.customdata | (self) |
Assigns extra data each datum. This may be useful when
listening to hover, click and selection events. Note that,
"scatter" traces also appends customdata items in the markers
DOM elements
The 'customdata' property is an array that may be specified as a tuple,
list,... |
Assigns extra data each datum. This may be useful when
listening to hover, click and selection events. Note that,
"scatter" traces also appends customdata items in the markers
DOM elements
The 'customdata' property is an array that may be specified as a tuple,
list,... | def customdata(self):
"""
Assigns extra data each datum. This may be useful when
listening to hover, click and selection events. Note that,
"scatter" traces also appends customdata items in the markers
DOM elements
The 'customdata' property is an array that may be sp... | [
"def",
"customdata",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"customdata\"",
"]"
] | [
546,
4
] | [
560,
33
] | python | en | ['en', 'error', 'th'] | False |
Contour.customdatasrc | (self) |
Sets the source reference on Chart Studio Cloud for customdata
.
The 'customdatasrc' 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 customdata
.
The 'customdatasrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def customdatasrc(self):
"""
Sets the source reference on Chart Studio Cloud for customdata
.
The 'customdatasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["cust... | [
"def",
"customdatasrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"customdatasrc\"",
"]"
] | [
569,
4
] | [
581,
36
] | python | en | ['en', 'error', 'th'] | False |
Contour.dx | (self) |
Sets the x coordinate step. See `x0` for more info.
The 'dx' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets the x coordinate step. See `x0` for more info.
The 'dx' property is a number and may be specified as:
- An int or float | def dx(self):
"""
Sets the x coordinate step. See `x0` for more info.
The 'dx' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["dx"] | [
"def",
"dx",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"dx\"",
"]"
] | [
590,
4
] | [
601,
25
] | python | en | ['en', 'error', 'th'] | False |
Contour.dy | (self) |
Sets the y coordinate step. See `y0` for more info.
The 'dy' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
|
Sets the y coordinate step. See `y0` for more info.
The 'dy' property is a number and may be specified as:
- An int or float | def dy(self):
"""
Sets the y coordinate step. See `y0` for more info.
The 'dy' property is a number and may be specified as:
- An int or float
Returns
-------
int|float
"""
return self["dy"] | [
"def",
"dy",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"dy\"",
"]"
] | [
610,
4
] | [
621,
25
] | python | en | ['en', 'error', 'th'] | False |
Contour.fillcolor | (self) |
Sets the fill color if `contours.type` is "constraint".
Defaults to a half-transparent variant of the line color,
marker color, or marker line color, whichever is available.
The 'fillcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
... |
Sets the fill color if `contours.type` is "constraint".
Defaults to a half-transparent variant of the line color,
marker color, or marker line color, whichever is available.
The 'fillcolor' property is a color and may be specified as:
- A hex string (e.g. '#ff0000')
... | def fillcolor(self):
"""
Sets the fill color if `contours.type` is "constraint".
Defaults to a half-transparent variant of the line color,
marker color, or marker line color, whichever is available.
The 'fillcolor' property is a color and may be specified as:
- A h... | [
"def",
"fillcolor",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"fillcolor\"",
"]"
] | [
630,
4
] | [
684,
32
] | python | en | ['en', 'error', 'th'] | False |
Contour.hoverinfo | (self) |
Determines which trace information appear on hover. If `none`
or `skip` are set, no information is displayed upon hovering.
But, if `none` is set, click and hover events are still fired.
The 'hoverinfo' property is a flaglist and may be specified
as a string containing:
... |
Determines which trace information appear on hover. If `none`
or `skip` are set, no information is displayed upon hovering.
But, if `none` is set, click and hover events are still fired.
The 'hoverinfo' property is a flaglist and may be specified
as a string containing:
... | def hoverinfo(self):
"""
Determines which trace information appear on hover. If `none`
or `skip` are set, no information is displayed upon hovering.
But, if `none` is set, click and hover events are still fired.
The 'hoverinfo' property is a flaglist and may be specified
... | [
"def",
"hoverinfo",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverinfo\"",
"]"
] | [
693,
4
] | [
710,
32
] | python | en | ['en', 'error', 'th'] | False |
Contour.hoverinfosrc | (self) |
Sets the source reference on Chart Studio Cloud for hoverinfo
.
The 'hoverinfosrc' 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 hoverinfo
.
The 'hoverinfosrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def hoverinfosrc(self):
"""
Sets the source reference on Chart Studio Cloud for hoverinfo
.
The 'hoverinfosrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["hoverin... | [
"def",
"hoverinfosrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverinfosrc\"",
"]"
] | [
719,
4
] | [
731,
35
] | python | en | ['en', 'error', 'th'] | False |
Contour.hoverlabel | (self) |
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.contour.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
Supported dict propertie... |
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.contour.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
Supported dict propertie... | def hoverlabel(self):
"""
The 'hoverlabel' property is an instance of Hoverlabel
that may be specified as:
- An instance of :class:`plotly.graph_objs.contour.Hoverlabel`
- A dict of string/value properties that will be passed
to the Hoverlabel constructor
... | [
"def",
"hoverlabel",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverlabel\"",
"]"
] | [
740,
4
] | [
790,
33
] | python | en | ['en', 'error', 'th'] | False |
Contour.hoverongaps | (self) |
Determines whether or not gaps (i.e. {nan} or missing values)
in the `z` data have hover labels associated with them.
The 'hoverongaps' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not gaps (i.e. {nan} or missing values)
in the `z` data have hover labels associated with them.
The 'hoverongaps' property must be specified as a bool
(either True, or False) | def hoverongaps(self):
"""
Determines whether or not gaps (i.e. {nan} or missing values)
in the `z` data have hover labels associated with them.
The 'hoverongaps' property must be specified as a bool
(either True, or False)
Returns
-------
bool
... | [
"def",
"hoverongaps",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hoverongaps\"",
"]"
] | [
799,
4
] | [
811,
34
] | python | en | ['en', 'error', 'th'] | False |
Contour.hovertemplate | (self) |
Template string used for rendering the information that appear
on hover box. Note that this will override `hoverinfo`.
Variables are inserted using %{variable}, for example "y:
%{y}". Numbers are formatted using d3-format's syntax
%{variable:d3-format}, for example "Price: %{y:$... |
Template string used for rendering the information that appear
on hover box. Note that this will override `hoverinfo`.
Variables are inserted using %{variable}, for example "y:
%{y}". Numbers are formatted using d3-format's syntax
%{variable:d3-format}, for example "Price: %{y:$... | def hovertemplate(self):
"""
Template string used for rendering the information that appear
on hover box. Note that this will override `hoverinfo`.
Variables are inserted using %{variable}, for example "y:
%{y}". Numbers are formatted using d3-format's syntax
%{variable:d... | [
"def",
"hovertemplate",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertemplate\"",
"]"
] | [
820,
4
] | [
852,
36
] | python | en | ['en', 'error', 'th'] | False |
Contour.hovertemplatesrc | (self) |
Sets the source reference on Chart Studio Cloud for
hovertemplate .
The 'hovertemplatesrc' 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
hovertemplate .
The 'hovertemplatesrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def hovertemplatesrc(self):
"""
Sets the source reference on Chart Studio Cloud for
hovertemplate .
The 'hovertemplatesrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return se... | [
"def",
"hovertemplatesrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertemplatesrc\"",
"]"
] | [
861,
4
] | [
873,
39
] | python | en | ['en', 'error', 'th'] | False |
Contour.hovertext | (self) |
Same as `text`.
The 'hovertext' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Same as `text`.
The 'hovertext' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def hovertext(self):
"""
Same as `text`.
The 'hovertext' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["hovertext"] | [
"def",
"hovertext",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertext\"",
"]"
] | [
882,
4
] | [
893,
32
] | python | en | ['en', 'error', 'th'] | False |
Contour.hovertextsrc | (self) |
Sets the source reference on Chart Studio Cloud for hovertext
.
The 'hovertextsrc' 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 hovertext
.
The 'hovertextsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def hovertextsrc(self):
"""
Sets the source reference on Chart Studio Cloud for hovertext
.
The 'hovertextsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["hoverte... | [
"def",
"hovertextsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"hovertextsrc\"",
"]"
] | [
902,
4
] | [
914,
35
] | python | en | ['en', 'error', 'th'] | False |
Contour.ids | (self) |
Assigns id labels to each datum. These ids for object constancy
of data points during animation. Should be an array of strings,
not numbers or any other type.
The 'ids' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Retur... |
Assigns id labels to each datum. These ids for object constancy
of data points during animation. Should be an array of strings,
not numbers or any other type.
The 'ids' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def ids(self):
"""
Assigns id labels to each datum. These ids for object constancy
of data points during animation. Should be an array of strings,
not numbers or any other type.
The 'ids' property is an array that may be specified as a tuple,
list, numpy array, or pa... | [
"def",
"ids",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ids\"",
"]"
] | [
923,
4
] | [
936,
26
] | python | en | ['en', 'error', 'th'] | False |
Contour.idssrc | (self) |
Sets the source reference on Chart Studio Cloud for ids .
The 'idssrc' 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 ids .
The 'idssrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def idssrc(self):
"""
Sets the source reference on Chart Studio Cloud for ids .
The 'idssrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["idssrc"] | [
"def",
"idssrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"idssrc\"",
"]"
] | [
945,
4
] | [
956,
29
] | python | en | ['en', 'error', 'th'] | False |
Contour.legendgroup | (self) |
Sets the legend group for this trace. Traces part of the same
legend group hide/show at the same time when toggling legend
items.
The 'legendgroup' property is a string and must be specified as:
- A string
- A number that will be converted to a string
R... |
Sets the legend group for this trace. Traces part of the same
legend group hide/show at the same time when toggling legend
items.
The 'legendgroup' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def legendgroup(self):
"""
Sets the legend group for this trace. Traces part of the same
legend group hide/show at the same time when toggling legend
items.
The 'legendgroup' property is a string and must be specified as:
- A string
- A number that will b... | [
"def",
"legendgroup",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"legendgroup\"",
"]"
] | [
965,
4
] | [
979,
34
] | python | en | ['en', 'error', 'th'] | False |
Contour.line | (self) |
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.contour.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict properties:
... |
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.contour.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict properties:
... | def line(self):
"""
The 'line' property is an instance of Line
that may be specified as:
- An instance of :class:`plotly.graph_objs.contour.Line`
- A dict of string/value properties that will be passed
to the Line constructor
Supported dict proper... | [
"def",
"line",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"line\"",
"]"
] | [
988,
4
] | [
1020,
27
] | python | en | ['en', 'error', 'th'] | False |
Contour.meta | (self) |
Assigns extra meta information associated with this trace that
can be used in various text attributes. Attributes such as
trace `name`, graph, axis and colorbar `title.text`, annotation
`text` `rangeselector`, `updatemenues` and `sliders` `label`
text all support `meta`. To acce... |
Assigns extra meta information associated with this trace that
can be used in various text attributes. Attributes such as
trace `name`, graph, axis and colorbar `title.text`, annotation
`text` `rangeselector`, `updatemenues` and `sliders` `label`
text all support `meta`. To acce... | def meta(self):
"""
Assigns extra meta information associated with this trace that
can be used in various text attributes. Attributes such as
trace `name`, graph, axis and colorbar `title.text`, annotation
`text` `rangeselector`, `updatemenues` and `sliders` `label`
text ... | [
"def",
"meta",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"meta\"",
"]"
] | [
1029,
4
] | [
1048,
27
] | python | en | ['en', 'error', 'th'] | False |
Contour.metasrc | (self) |
Sets the source reference on Chart Studio Cloud for meta .
The 'metasrc' 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 meta .
The 'metasrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def metasrc(self):
"""
Sets the source reference on Chart Studio Cloud for meta .
The 'metasrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["metasrc"] | [
"def",
"metasrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"metasrc\"",
"]"
] | [
1057,
4
] | [
1068,
30
] | python | en | ['en', 'error', 'th'] | False |
Contour.name | (self) |
Sets the trace name. The trace name appear as the legend item
and on hover.
The 'name' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
|
Sets the trace name. The trace name appear as the legend item
and on hover.
The 'name' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def name(self):
"""
Sets the trace name. The trace name appear as the legend item
and on hover.
The 'name' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
str
... | [
"def",
"name",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"name\"",
"]"
] | [
1077,
4
] | [
1090,
27
] | python | en | ['en', 'error', 'th'] | False |
Contour.ncontours | (self) |
Sets the maximum number of contour levels. The actual number of
contours will be chosen automatically to be less than or equal
to the value of `ncontours`. Has an effect only if
`autocontour` is True or if `contours.size` is missing.
The 'ncontours' property is a integer an... |
Sets the maximum number of contour levels. The actual number of
contours will be chosen automatically to be less than or equal
to the value of `ncontours`. Has an effect only if
`autocontour` is True or if `contours.size` is missing.
The 'ncontours' property is a integer an... | def ncontours(self):
"""
Sets the maximum number of contour levels. The actual number of
contours will be chosen automatically to be less than or equal
to the value of `ncontours`. Has an effect only if
`autocontour` is True or if `contours.size` is missing.
The 'nco... | [
"def",
"ncontours",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"ncontours\"",
"]"
] | [
1099,
4
] | [
1114,
32
] | python | en | ['en', 'error', 'th'] | False |
Contour.opacity | (self) |
Sets the opacity of the trace.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
|
Sets the opacity of the trace.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1] | def opacity(self):
"""
Sets the opacity of the trace.
The 'opacity' property is a number and may be specified as:
- An int or float in the interval [0, 1]
Returns
-------
int|float
"""
return self["opacity"] | [
"def",
"opacity",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"opacity\"",
"]"
] | [
1123,
4
] | [
1134,
30
] | python | en | ['en', 'error', 'th'] | False |
Contour.reversescale | (self) |
Reverses the color mapping if true. If true, `zmin` will
correspond to the last color in the array and `zmax` will
correspond to the first color.
The 'reversescale' property must be specified as a bool
(either True, or False)
Returns
-------
bool
... |
Reverses the color mapping if true. If true, `zmin` will
correspond to the last color in the array and `zmax` will
correspond to the first color.
The 'reversescale' property must be specified as a bool
(either True, or False) | def reversescale(self):
"""
Reverses the color mapping if true. If true, `zmin` will
correspond to the last color in the array and `zmax` will
correspond to the first color.
The 'reversescale' property must be specified as a bool
(either True, or False)
Retu... | [
"def",
"reversescale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"reversescale\"",
"]"
] | [
1143,
4
] | [
1156,
35
] | python | en | ['en', 'error', 'th'] | False |
Contour.showlegend | (self) |
Determines whether or not an item corresponding to this trace
is shown in the legend.
The 'showlegend' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not an item corresponding to this trace
is shown in the legend.
The 'showlegend' property must be specified as a bool
(either True, or False) | def showlegend(self):
"""
Determines whether or not an item corresponding to this trace
is shown in the legend.
The 'showlegend' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showle... | [
"def",
"showlegend",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showlegend\"",
"]"
] | [
1165,
4
] | [
1177,
33
] | python | en | ['en', 'error', 'th'] | False |
Contour.showscale | (self) |
Determines whether or not a colorbar is displayed for this
trace.
The 'showscale' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Determines whether or not a colorbar is displayed for this
trace.
The 'showscale' property must be specified as a bool
(either True, or False) | def showscale(self):
"""
Determines whether or not a colorbar is displayed for this
trace.
The 'showscale' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["showscale"] | [
"def",
"showscale",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"showscale\"",
"]"
] | [
1186,
4
] | [
1198,
32
] | python | en | ['en', 'error', 'th'] | False |
Contour.stream | (self) |
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.contour.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Supported dict properties:
... |
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.contour.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Supported dict properties:
... | def stream(self):
"""
The 'stream' property is an instance of Stream
that may be specified as:
- An instance of :class:`plotly.graph_objs.contour.Stream`
- A dict of string/value properties that will be passed
to the Stream constructor
Supported d... | [
"def",
"stream",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"stream\"",
"]"
] | [
1207,
4
] | [
1231,
29
] | python | en | ['en', 'error', 'th'] | False |
Contour.text | (self) |
Sets the text elements associated with each z value.
The 'text' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the text elements associated with each z value.
The 'text' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def text(self):
"""
Sets the text elements associated with each z value.
The 'text' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["text"] | [
"def",
"text",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"text\"",
"]"
] | [
1240,
4
] | [
1251,
27
] | python | en | ['en', 'error', 'th'] | False |
Contour.textsrc | (self) |
Sets the source reference on Chart Studio Cloud for text .
The 'textsrc' 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 text .
The 'textsrc' property must be specified as a string or
as a plotly.grid_objs.Column object | def textsrc(self):
"""
Sets the source reference on Chart Studio Cloud for text .
The 'textsrc' property must be specified as a string or
as a plotly.grid_objs.Column object
Returns
-------
str
"""
return self["textsrc"] | [
"def",
"textsrc",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"textsrc\"",
"]"
] | [
1260,
4
] | [
1271,
30
] | python | en | ['en', 'error', 'th'] | False |
Contour.transpose | (self) |
Transposes the z data.
The 'transpose' property must be specified as a bool
(either True, or False)
Returns
-------
bool
|
Transposes the z data.
The 'transpose' property must be specified as a bool
(either True, or False) | def transpose(self):
"""
Transposes the z data.
The 'transpose' property must be specified as a bool
(either True, or False)
Returns
-------
bool
"""
return self["transpose"] | [
"def",
"transpose",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"transpose\"",
"]"
] | [
1280,
4
] | [
1291,
32
] | python | en | ['en', 'error', 'th'] | False |
Contour.uid | (self) |
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Returns
-------
... |
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string | def uid(self):
"""
Assign an id to this trace, Use this to provide object
constancy between traces during animations and transitions.
The 'uid' property is a string and must be specified as:
- A string
- A number that will be converted to a string
Return... | [
"def",
"uid",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"uid\"",
"]"
] | [
1300,
4
] | [
1313,
26
] | python | en | ['en', 'error', 'th'] | False |
Contour.uirevision | (self) |
Controls persistence of some user-driven changes to the trace:
`constraintrange` in `parcoords` traces, as well as some
`editable: true` modifications such as `name` and
`colorbar.title`. Defaults to `layout.uirevision`. Note that
other user-driven trace attribute changes are co... |
Controls persistence of some user-driven changes to the trace:
`constraintrange` in `parcoords` traces, as well as some
`editable: true` modifications such as `name` and
`colorbar.title`. Defaults to `layout.uirevision`. Note that
other user-driven trace attribute changes are co... | def uirevision(self):
"""
Controls persistence of some user-driven changes to the trace:
`constraintrange` in `parcoords` traces, as well as some
`editable: true` modifications such as `name` and
`colorbar.title`. Defaults to `layout.uirevision`. Note that
other user-driv... | [
"def",
"uirevision",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"uirevision\"",
"]"
] | [
1322,
4
] | [
1346,
33
] | python | en | ['en', 'error', 'th'] | False |
Contour.visible | (self) |
Determines whether or not this trace is visible. If
"legendonly", the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
The 'visible' property is an enumeration that may be specified as:
- One of the following enumeration va... |
Determines whether or not this trace is visible. If
"legendonly", the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
The 'visible' property is an enumeration that may be specified as:
- One of the following enumeration va... | def visible(self):
"""
Determines whether or not this trace is visible. If
"legendonly", the trace is not drawn, but can appear as a
legend item (provided that the legend itself is visible).
The 'visible' property is an enumeration that may be specified as:
- One o... | [
"def",
"visible",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"visible\"",
"]"
] | [
1355,
4
] | [
1369,
30
] | python | en | ['en', 'error', 'th'] | False |
Contour.x | (self) |
Sets the x coordinates.
The 'x' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
|
Sets the x coordinates.
The 'x' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series | def x(self):
"""
Sets the x coordinates.
The 'x' property is an array that may be specified as a tuple,
list, numpy array, or pandas Series
Returns
-------
numpy.ndarray
"""
return self["x"] | [
"def",
"x",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x\"",
"]"
] | [
1378,
4
] | [
1389,
24
] | python | en | ['en', 'error', 'th'] | False |
Contour.x0 | (self) |
Alternate to `x`. Builds a linear space of x coordinates. Use
with `dx` where `x0` is the starting coordinate and `dx` the
step.
The 'x0' property accepts values of any type
Returns
-------
Any
|
Alternate to `x`. Builds a linear space of x coordinates. Use
with `dx` where `x0` is the starting coordinate and `dx` the
step.
The 'x0' property accepts values of any type | def x0(self):
"""
Alternate to `x`. Builds a linear space of x coordinates. Use
with `dx` where `x0` is the starting coordinate and `dx` the
step.
The 'x0' property accepts values of any type
Returns
-------
Any
"""
return self["x0"] | [
"def",
"x0",
"(",
"self",
")",
":",
"return",
"self",
"[",
"\"x0\"",
"]"
] | [
1398,
4
] | [
1410,
25
] | python | en | ['en', 'error', 'th'] | False |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.