text stringlengths 0 828 |
|---|
self.groups = new_groups |
sm_vector = [ |
i for (a, i) in sorted( |
self.access_strings_map.items(), |
key=lambda x: len(x[1]))] |
if not sfa: |
smi_vector = ['{}{}'.format(a, b) |
for b in self.alphabet for a in sm_vector] |
else: |
smi_vector = self._init_smi(graph, self.access_strings_map) |
em_vector = [distinguish_string for (_, _, distinguish_string) in self.bookeeping] |
return sm_vector, smi_vector, em_vector" |
1559,"def initialize(self, givengraph, sfa=False): |
"""""" |
Args: |
givengraph (DFA): The DFA states |
sfa (bool): A boolean for chosing SFA |
Return: |
list, list, list: sm_vector, smi_vector, em_vector initialization vectors |
"""""" |
sm_vector, smi_vector, em_vector = self._init_using_k_equivalence( |
givengraph, sfa) |
return sm_vector, smi_vector, em_vector" |
1560,"def push(self,message,message_type): |
"""""" |
Send a reply message of the given type |
Args: |
- message: the message to publish |
- message_type: the type of message being sent |
"""""" |
super(Producer,self).send(message,message_type)" |
1561,"def label_weight(base, label_name=None, children=[], parents=[], |
dependencies=[]): |
"""""" |
Function that returns a Formatoption class for modifying the fontweight |
This function returns a :class:`~psyplot.plotter.Formatoption` instance |
that modifies the weight of the given `base` formatoption |
Parameters |
---------- |
base: Formatoption |
The base formatoption instance that is used in the |
:class:`psyplot.Plotter` subclass to create the label. The instance |
must have a ``texts`` attribute which stores all the |
:class:`matplotlib.text.Text` instances. |
label_name: str |
The name of the label to use in the documentation. If None, |
it will be ``key``, where ``key`` is the |
:attr:`psyplot.plotter.Formatoption.key`` attribute of `base` |
children: list of str |
The childrens of the resulting formatoption class (besides the `base` |
formatoption which is included anyway) |
parents: list of str |
The parents of the resulting formatoption class (besides the `base` |
the properties formatoption from `base` (see :func:`label_props`)) |
dependencies: list of str |
The dependencies of the formatoption |
Returns |
------- |
Formatoption |
The formatoption instance that modifies the fontweight of `base` |
See Also |
-------- |
label_size, label_props, Figtitle, Title"""""" |
label_name = label_name or base.key |
cl_children = children |
cl_parents = parents |
cl_dependencies = dependencies |
class LabelWeight(Formatoption): |
__doc__ = """""" |
Set the fontweight of the %s |
Possible types |
-------------- |
%%(fontweights)s |
See Also |
-------- |
%s, %s, %s"""""" % (label_name, base.key, base.key + 'size', |
base.key + 'props') |
children = [base.key] + \ |
cl_children |
parent = [base.key + 'props'] + cl_parents |
dependencies = cl_dependencies |
group = 'labels' |
name = 'Font weight of ' + (base.name or base.key) |
def update(self, value): |
for text in getattr(self, base.key).texts: |
text.set_weight(value) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.