Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/comp/inputs #2260

Merged
merged 377 commits into from
Dec 26, 2021
Merged

Feat/comp/inputs #2260

merged 377 commits into from
Dec 26, 2021

Conversation

jdcpni
Copy link
Collaborator

@jdcpni jdcpni commented Dec 25, 2021

• keywords.py:
COMPOSITION: COMPOSITION -> Composition

• show_graph.py:

  • RANDOMIZATION_CONTROL_PROJECTION: dashed line
  • docstring mods

• test_composition.py:
- test_failure_to_find_node_to_shadow(self):
- test_unused_projections_warning

jdcpni and others added 30 commits November 22, 2021 23:54
  retore append of control_signals in _instantiate_control_projections()
  restore append of control_signals in _instantiate_control_projections()

• test_composition.py:
  add test_partially_overlapping_local_and_control_mech_control_specs_in_unnested_and_nested_comp
…unnested_and_nested_comp():

  - added clear_registry() to allow names to be reused in both runs of test
  docstring:  added projections entry to list of attributes
  - add_controller:  added call to _add_node_aux_components() for controller
  _add_node_aux_components(): added deletion of item from aux_components if instantiated
  - comment out _add_node_aux_components() (causing new failures)
  - move _instantiate_control_projections to be with _instantiate_control_projections,
       after self.add_node(self.controller.objective_mechanism (to be more orderly)
…rtially_overlapping...

  (with addition of _add_aux_components in add_controller commented out)
…y one test:

    - test_agent_rep_assignement_as_controller_and_replacement
  - add_controller:  few more minor mods;
  still passes all tests
  - __init__: resrict specification to only one of control, modulatory_signals, or control_signals (synonyms)
  - _get_original_senders():  added support for nested composition
    needs to be checked for more than one level
    needs to be refactored to be recursive
  - _update_state_input_ports_for_controller:  fix invalid_state_features to allow input_CIM of nested comp in agent_rep
 - _get_original_senders: made recursive
jdcpni and others added 22 commits December 21, 2021 19:33
• composition.py:  found bug with specification of shadows and probes between "parallel" compositions.
  - updates to contribtors
  - add links to CGO paper
  _update_shadow_projections: report error for failure to find correct_sender
  - add _check_for_unused_projections(): warns if any projections are specified for Nodes that are not used in the comp
…Link into feat/comp/inputs

� Conflicts:
�	README.rst
�	psyneulink/core/compositions/composition.py
    - test_failure_to_find_node_to_shadow(self):
    - test_unused_projections_warning
    - test_failure_to_find_node_to_shadow(self):
    - test_unused_projections_warning
    COMPOSITION: COMPOSITION -> Composition
• test_composition.py:
    - test_failure_to_find_node_to_shadow(self):
    - test_unused_projections_warning
    COMPOSITION: COMPOSITION -> Composition
  - RANDOMIZATION_CONTROL_PROJECTION: dashed line
  - docstring mods
@github-actions
Copy link

This PR causes the following changes to the html docs (ubuntu-latest-3.7-x64):

diff -r docs-base/Composition.html docs-head/Composition.html
1182,1188c1182,1189
< <p>The input specified for each <code class="xref any docutils literal notranslate"><span class="pre">Node</span></code> must be compatible with the number of <a class="reference internal" href="InputPort.html"><span class="doc">InputPorts</span></a>
< that receive external input for that Node. These are listed in its <code class="docutils literal notranslate"><span class="pre">external_input_ports</span></code> attribute (<a class="reference internal" href="Mechanism.html#psyneulink.core.components.mechanisms.mechanism.Mechanism_Base.external_input_ports" title="psyneulink.core.components.mechanisms.mechanism.Mechanism_Base.external_input_ports"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">here</span></code></a> if it is Mechanism, or <a class="reference internal" href="#id15" title="psyneulink.core.compositions.composition.Composition.external_input_ports"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">here</span></code></a> if it is a
< Composition).  More specifically, the shape of the input value must be compatible with the shape of the Node’s
< <a class="reference internal" href="#id16" title="psyneulink.core.compositions.composition.Composition.external_input_values"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">external_input_values</span></code></a> attribute (<a class="reference internal" href="Mechanism.html#psyneulink.core.components.mechanisms.mechanism.Mechanism_Base.external_input_values" title="psyneulink.core.components.mechanisms.mechanism.Mechanism_Base.external_input_values"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">here</span></code></a> if it is Mechanism,
< or <a class="reference internal" href="#id16" title="psyneulink.core.compositions.composition.Composition.external_input_values"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">here</span></code></a> if it is a Composition). While these are always 2d arrays, the number
< and size of the items (corresponding to each InputPort) may vary; in some case shorthand notations are allowed,
< as illustrated in the <a class="reference internal" href="#composition-examples-input-dictionary"><span class="std std-ref">examples</span></a> below.</p>
---
> <p>The key for each entry of the dict can be a direct reference to the <a class="reference internal" href="#composition-nodes"><span class="std std-ref">Node</span></a>, or the name assigned
> to one (i.e., its <a class="reference internal" href="Component.html#psyneulink.core.components.component.Component.name" title="psyneulink.core.components.component.Component.name"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">name</span></code></a> attribute).  The value must an input that is compatible with the number of
> <a class="reference internal" href="InputPort.html"><span class="doc">InputPorts</span></a> that receive external input for that Node. These are listed in its <code class="docutils literal notranslate"><span class="pre">external_input_ports</span></code>
> (<a class="reference internal" href="Mechanism.html#psyneulink.core.components.mechanisms.mechanism.Mechanism_Base.external_input_ports" title="psyneulink.core.components.mechanisms.mechanism.Mechanism_Base.external_input_ports"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">here</span></code></a> if it is Mechanism, or <a class="reference internal" href="#id15" title="psyneulink.core.compositions.composition.Composition.external_input_ports"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">here</span></code></a> if it
> is a Composition).  More specifically, the shape of the input value must be compatible with the shape of the Node’s
> <a class="reference internal" href="#id16" title="psyneulink.core.compositions.composition.Composition.external_input_values"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">external_input_values</span></code></a> attribute (<a class="reference internal" href="Mechanism.html#psyneulink.core.components.mechanisms.mechanism.Mechanism_Base.external_input_values" title="psyneulink.core.components.mechanisms.mechanism.Mechanism_Base.external_input_values"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">here</span></code></a> if it is Mechanism, or <a class="reference internal" href="#id16" title="psyneulink.core.compositions.composition.Composition.external_input_values"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">here</span></code></a> if it is a Composition). While these are always 2d arrays, the number and size
> of the items (corresponding to each InputPort) may vary; in some case shorthand notations are allowed, as illustrated
> in the <a class="reference internal" href="#composition-examples-input-dictionary"><span class="std std-ref">examples</span></a> below.</p>
1680c1681
< <p>The <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph</span></a> method generates a display of the graph structure of <a class="reference internal" href="#composition-nodes"><span class="std std-ref">Nodes</span></a> and <a class="reference internal" href="Projection.html"><span class="doc">Projections</span></a> in the Composition based on the Composition’s <a class="reference internal" href="#psyneulink.core.compositions.composition.Composition.graph" title="psyneulink.core.compositions.composition.Composition.graph"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">graph</span></code></a> (see <a class="reference internal" href="Visualization.html"><span class="doc">Visualization</span></a> for additional details).</p>
---
> <p>The <code class="xref any docutils literal notranslate"><span class="pre">show_graph</span></code> method generates a display of the graph structure of <a class="reference internal" href="#composition-nodes"><span class="std std-ref">Nodes</span></a> and <a class="reference internal" href="Projection.html"><span class="doc">Projections</span></a> in the Composition based on the Composition’s <a class="reference internal" href="#psyneulink.core.compositions.composition.Composition.graph" title="psyneulink.core.compositions.composition.Composition.graph"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">graph</span></code></a> (see <a class="reference internal" href="Visualization.html"><span class="doc">Visualization</span></a> for additional details).</p>
2488c2489
< <li><p><strong>show_graph_attributes</strong> (<em>dict : None</em>) – specifies features of how the Composition is displayed when its <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph</span></a>
---
> <li><p><strong>show_graph_attributes</strong> (<em>dict : None</em>) – specifies features of how the Composition is displayed when its <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph</span></code></a>
4364,4371c4365,4371
< <li><p><strong>animate</strong> (<em>dict</em><em> or </em><em>bool : default False</em>) – <p>specifies use of the <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph`show_graph</span></a> method
< to generate a gif movie showing the sequence of Components executed in a run
< (see <a class="reference internal" href="BasicsAndPrimer.html#basicsandprimer-stroop-example-animation-figure"><span class="std std-ref">example</span></a>). A dict can be specified containing
< options to pass to the <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph</span></a> method; each key must be a legal
< argument for the <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph</span></a> method, and its value a
< specification for that argument.  The entries listed below can also be included in the dict to specify
< parameters of the animation.  If the <strong>animate</strong> argument is specified simply as <code class="xref any docutils literal notranslate"><span class="pre">True</span></code>, defaults are
< used for all arguments of <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph</span></a> and the options below:</p>
---
> <li><p><strong>animate</strong> (<em>dict</em><em> or </em><em>bool : default False</em>) – <p>specifies use of the <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph`show_graph</span></code></a> method to generate
> a gif movie showing the sequence of Components executed in a run (see <a class="reference internal" href="BasicsAndPrimer.html#basicsandprimer-stroop-example-animation-figure"><span class="std std-ref">example</span></a>). A dict can be specified containing
> options to pass to the <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph</span></code></a> method; each key must be a legal
> argument for the <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph</span></code></a> method, and its value a specification for that
> argument.  The entries listed below can also be included in the dict to specify parameters of the
> animation.  If the <strong>animate</strong> argument is specified simply as <code class="xref any docutils literal notranslate"><span class="pre">True</span></code>, defaults are used for all
> arguments of <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph</span></code></a> and the options below:</p>
4374c4374
< to treat as active in each call to <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph</span></code></a>. <em>COMPONENT</em> generates an
---
> to treat as active in each call to <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph()</span></code></a>. <em>COMPONENT</em> generates an
diff -r docs-base/CompositionInterfaceMechanism.html docs-head/CompositionInterfaceMechanism.html
245c245
< Composition’s <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph</span></a> method (see figure below).</p>
---
> Composition’s <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph</span></code></a> method (see figure below).</p>
diff -r docs-base/ControlMechanism.html docs-head/ControlMechanism.html
272c272
< Components can be displayed using the Composition’s <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph</span></a> method with its
---
> Components can be displayed using the Composition’s <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph</span></code></a> method with its
diff -r docs-base/LearningMechanism.html docs-head/LearningMechanism.html
241c241
< displayed using the Composition’s <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph`show_graph</span></a> method with its
---
> displayed using the Composition’s <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph`show_graph</span></code></a> method with its
487,488c487,488
< described below. All of the learning Components of a Composition can be displayed using its <code class="xref any docutils literal notranslate"><span class="pre">show_graph</span></code> method with
< the <strong>show_learning</strong> argument assigned <code class="xref any docutils literal notranslate"><span class="pre">True</span></code> or <em>ALL</em>.</p>
---
> described below. All of the learning Components of a Composition can be displayed using its <code class="xref any docutils literal notranslate"><span class="pre">show_graph</span>
> <span class="pre">&lt;ShowGraph.show_graph</span></code> method with the <strong>show_learning</strong> argument assigned <code class="xref any docutils literal notranslate"><span class="pre">True</span></code> or <em>ALL</em>.</p>
diff -r docs-base/Mechanism.html docs-head/Mechanism.html
832c832
< of the Composition’s <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph`show_graph</span></a> method with the keyword <strong>LABELS</strong>.</p>
---
> of the Composition’s <code class="xref any docutils literal notranslate"><span class="pre">show_graph`show_graph</span></code> method with the keyword <strong>LABELS</strong>.</p>
diff -r docs-base/Visualization.html docs-head/Visualization.html
240,243c240,297
< <p><em>Display attributes</em> – state_features (such as the colors and shapes) in which different types of nodes are displayed
< can be modified by assigning a dictionary of attribute:values pairs to the <strong>show_graph_configuration</strong> argument of the
< Composition’s constructor.  These are listed as the arguments for the ShowGraph object (used to display the graph)
< in the <a class="reference internal" href="#showgraph-class-reference"><span class="std std-ref">class reference</span></a> below.</p>
---
> <p><em>Display attributes</em> – the colors, shapes and arrow styles used in the display can be modified using the
> <strong>show_graph_attributes</strong> argument of a Composition’s constructor, as described below.</p>
> </section>
> <section id="display-attributes">
> <span id="showgraph-attributes"></span><h2><em>Display Attributes</em><a class="headerlink" href="#display-attributes" title="Permalink to this headline">¶</a></h2>
> <p>The default attributes used to display different types of <a class="reference internal" href="Component.html"><span class="doc">Components</span></a> and their <a class="reference internal" href="Composition.html#psyneulink.core.compositions.composition.NodeRole" title="psyneulink.core.compositions.composition.NodeRole"><code class="xref any py py-class docutils literal notranslate"><span class="
...

See CI logs for the full diff.

@github-actions
Copy link

This PR causes the following changes to the html docs (ubuntu-latest-3.7-x64):

diff -r docs-base/Composition.html docs-head/Composition.html
1182,1188c1182,1189
< <p>The input specified for each <code class="xref any docutils literal notranslate"><span class="pre">Node</span></code> must be compatible with the number of <a class="reference internal" href="InputPort.html"><span class="doc">InputPorts</span></a>
< that receive external input for that Node. These are listed in its <code class="docutils literal notranslate"><span class="pre">external_input_ports</span></code> attribute (<a class="reference internal" href="Mechanism.html#psyneulink.core.components.mechanisms.mechanism.Mechanism_Base.external_input_ports" title="psyneulink.core.components.mechanisms.mechanism.Mechanism_Base.external_input_ports"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">here</span></code></a> if it is Mechanism, or <a class="reference internal" href="#id15" title="psyneulink.core.compositions.composition.Composition.external_input_ports"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">here</span></code></a> if it is a
< Composition).  More specifically, the shape of the input value must be compatible with the shape of the Node’s
< <a class="reference internal" href="#id16" title="psyneulink.core.compositions.composition.Composition.external_input_values"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">external_input_values</span></code></a> attribute (<a class="reference internal" href="Mechanism.html#psyneulink.core.components.mechanisms.mechanism.Mechanism_Base.external_input_values" title="psyneulink.core.components.mechanisms.mechanism.Mechanism_Base.external_input_values"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">here</span></code></a> if it is Mechanism,
< or <a class="reference internal" href="#id16" title="psyneulink.core.compositions.composition.Composition.external_input_values"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">here</span></code></a> if it is a Composition). While these are always 2d arrays, the number
< and size of the items (corresponding to each InputPort) may vary; in some case shorthand notations are allowed,
< as illustrated in the <a class="reference internal" href="#composition-examples-input-dictionary"><span class="std std-ref">examples</span></a> below.</p>
---
> <p>The key for each entry of the dict can be a direct reference to the <a class="reference internal" href="#composition-nodes"><span class="std std-ref">Node</span></a>, or the name assigned
> to one (i.e., its <a class="reference internal" href="Component.html#psyneulink.core.components.component.Component.name" title="psyneulink.core.components.component.Component.name"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">name</span></code></a> attribute).  The value must an input that is compatible with the number of
> <a class="reference internal" href="InputPort.html"><span class="doc">InputPorts</span></a> that receive external input for that Node. These are listed in its <code class="docutils literal notranslate"><span class="pre">external_input_ports</span></code>
> (<a class="reference internal" href="Mechanism.html#psyneulink.core.components.mechanisms.mechanism.Mechanism_Base.external_input_ports" title="psyneulink.core.components.mechanisms.mechanism.Mechanism_Base.external_input_ports"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">here</span></code></a> if it is Mechanism, or <a class="reference internal" href="#id15" title="psyneulink.core.compositions.composition.Composition.external_input_ports"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">here</span></code></a> if it
> is a Composition).  More specifically, the shape of the input value must be compatible with the shape of the Node’s
> <a class="reference internal" href="#id16" title="psyneulink.core.compositions.composition.Composition.external_input_values"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">external_input_values</span></code></a> attribute (<a class="reference internal" href="Mechanism.html#psyneulink.core.components.mechanisms.mechanism.Mechanism_Base.external_input_values" title="psyneulink.core.components.mechanisms.mechanism.Mechanism_Base.external_input_values"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">here</span></code></a> if it is Mechanism, or <a class="reference internal" href="#id16" title="psyneulink.core.compositions.composition.Composition.external_input_values"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">here</span></code></a> if it is a Composition). While these are always 2d arrays, the number and size
> of the items (corresponding to each InputPort) may vary; in some case shorthand notations are allowed, as illustrated
> in the <a class="reference internal" href="#composition-examples-input-dictionary"><span class="std std-ref">examples</span></a> below.</p>
1680c1681
< <p>The <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph</span></a> method generates a display of the graph structure of <a class="reference internal" href="#composition-nodes"><span class="std std-ref">Nodes</span></a> and <a class="reference internal" href="Projection.html"><span class="doc">Projections</span></a> in the Composition based on the Composition’s <a class="reference internal" href="#psyneulink.core.compositions.composition.Composition.graph" title="psyneulink.core.compositions.composition.Composition.graph"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">graph</span></code></a> (see <a class="reference internal" href="Visualization.html"><span class="doc">Visualization</span></a> for additional details).</p>
---
> <p>The <code class="xref any docutils literal notranslate"><span class="pre">show_graph</span></code> method generates a display of the graph structure of <a class="reference internal" href="#composition-nodes"><span class="std std-ref">Nodes</span></a> and <a class="reference internal" href="Projection.html"><span class="doc">Projections</span></a> in the Composition based on the Composition’s <a class="reference internal" href="#psyneulink.core.compositions.composition.Composition.graph" title="psyneulink.core.compositions.composition.Composition.graph"><code class="xref any py py-attr docutils literal notranslate"><span class="pre">graph</span></code></a> (see <a class="reference internal" href="Visualization.html"><span class="doc">Visualization</span></a> for additional details).</p>
2488c2489
< <li><p><strong>show_graph_attributes</strong> (<em>dict : None</em>) – specifies features of how the Composition is displayed when its <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph</span></a>
---
> <li><p><strong>show_graph_attributes</strong> (<em>dict : None</em>) – specifies features of how the Composition is displayed when its <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph</span></code></a>
4364,4371c4365,4371
< <li><p><strong>animate</strong> (<em>dict</em><em> or </em><em>bool : default False</em>) – <p>specifies use of the <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph`show_graph</span></a> method
< to generate a gif movie showing the sequence of Components executed in a run
< (see <a class="reference internal" href="BasicsAndPrimer.html#basicsandprimer-stroop-example-animation-figure"><span class="std std-ref">example</span></a>). A dict can be specified containing
< options to pass to the <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph</span></a> method; each key must be a legal
< argument for the <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph</span></a> method, and its value a
< specification for that argument.  The entries listed below can also be included in the dict to specify
< parameters of the animation.  If the <strong>animate</strong> argument is specified simply as <code class="xref any docutils literal notranslate"><span class="pre">True</span></code>, defaults are
< used for all arguments of <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph</span></a> and the options below:</p>
---
> <li><p><strong>animate</strong> (<em>dict</em><em> or </em><em>bool : default False</em>) – <p>specifies use of the <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph`show_graph</span></code></a> method to generate
> a gif movie showing the sequence of Components executed in a run (see <a class="reference internal" href="BasicsAndPrimer.html#basicsandprimer-stroop-example-animation-figure"><span class="std std-ref">example</span></a>). A dict can be specified containing
> options to pass to the <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph</span></code></a> method; each key must be a legal
> argument for the <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph</span></code></a> method, and its value a specification for that
> argument.  The entries listed below can also be included in the dict to specify parameters of the
> animation.  If the <strong>animate</strong> argument is specified simply as <code class="xref any docutils literal notranslate"><span class="pre">True</span></code>, defaults are used for all
> arguments of <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph</span></code></a> and the options below:</p>
4374c4374
< to treat as active in each call to <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph</span></code></a>. <em>COMPONENT</em> generates an
---
> to treat as active in each call to <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph()</span></code></a>. <em>COMPONENT</em> generates an
diff -r docs-base/CompositionInterfaceMechanism.html docs-head/CompositionInterfaceMechanism.html
245c245
< Composition’s <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph</span></a> method (see figure below).</p>
---
> Composition’s <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph</span></code></a> method (see figure below).</p>
diff -r docs-base/ControlMechanism.html docs-head/ControlMechanism.html
272c272
< Components can be displayed using the Composition’s <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph</span></a> method with its
---
> Components can be displayed using the Composition’s <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph</span></code></a> method with its
diff -r docs-base/LearningMechanism.html docs-head/LearningMechanism.html
241c241
< displayed using the Composition’s <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph`show_graph</span></a> method with its
---
> displayed using the Composition’s <a class="reference internal" href="Visualization.html#psyneulink.core.compositions.showgraph.ShowGraph.show_graph" title="psyneulink.core.compositions.showgraph.ShowGraph.show_graph"><code class="xref any py py-meth docutils literal notranslate"><span class="pre">show_graph`show_graph</span></code></a> method with its
487,488c487,488
< described below. All of the learning Components of a Composition can be displayed using its <code class="xref any docutils literal notranslate"><span class="pre">show_graph</span></code> method with
< the <strong>show_learning</strong> argument assigned <code class="xref any docutils literal notranslate"><span class="pre">True</span></code> or <em>ALL</em>.</p>
---
> described below. All of the learning Components of a Composition can be displayed using its <code class="xref any docutils literal notranslate"><span class="pre">show_graph</span>
> <span class="pre">&lt;ShowGraph.show_graph</span></code> method with the <strong>show_learning</strong> argument assigned <code class="xref any docutils literal notranslate"><span class="pre">True</span></code> or <em>ALL</em>.</p>
diff -r docs-base/Mechanism.html docs-head/Mechanism.html
832c832
< of the Composition’s <a class="reference internal" href="Visualization.html#showgraph-show-graph-method"><span class="std std-ref">show_graph`show_graph</span></a> method with the keyword <strong>LABELS</strong>.</p>
---
> of the Composition’s <code class="xref any docutils literal notranslate"><span class="pre">show_graph`show_graph</span></code> method with the keyword <strong>LABELS</strong>.</p>
diff -r docs-base/Visualization.html docs-head/Visualization.html
240,243c240,297
< <p><em>Display attributes</em> – state_features (such as the colors and shapes) in which different types of nodes are displayed
< can be modified by assigning a dictionary of attribute:values pairs to the <strong>show_graph_configuration</strong> argument of the
< Composition’s constructor.  These are listed as the arguments for the ShowGraph object (used to display the graph)
< in the <a class="reference internal" href="#showgraph-class-reference"><span class="std std-ref">class reference</span></a> below.</p>
---
> <p><em>Display attributes</em> – the colors, shapes and arrow styles used in the display can be modified using the
> <strong>show_graph_attributes</strong> argument of a Composition’s constructor, as described below.</p>
> </section>
> <section id="display-attributes">
> <span id="showgraph-attributes"></span><h2><em>Display Attributes</em><a class="headerlink" href="#display-attributes" title="Permalink to this headline">¶</a></h2>
> <p>The default attributes used to display different types of <a class="reference internal" href="Component.html"><span class="doc">Components</span></a> and their <a class="reference internal" href="Composition.html#psyneulink.core.compositions.composition.NodeRole" title="psyneulink.core.compositions.composition.NodeRole"><code class="xref any py py-class docutils literal notranslate"><span class="
...

See CI logs for the full diff.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.009%) to 84.281% when pulling 88b0a3f on feat/comp/inputs into 436f5d9 on devel.

@jdcpni jdcpni merged commit b383b90 into devel Dec 26, 2021
@jdcpni jdcpni deleted the feat/comp/inputs branch December 26, 2021 04:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants