Skip to content

Commit

Permalink
• emcomposition.py
Browse files Browse the repository at this point in the history
  - refactored to use local args until super()
  • Loading branch information
jdcpni committed Jul 19, 2023
1 parent d5806e7 commit 68d3ca1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion psyneulink/library/compositions/emcomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ def _parse_fields(self,
field_weights = np.atleast_1d(field_weights)
# Fill out and normalize all field_weights
if len(field_weights) == 1:
parsed_field_weights = np.repeat(field_weights/np.sum(field_weights), len(self.entry_template))
parsed_field_weights = np.repeat(field_weights / np.sum(field_weights), len(self.entry_template))
else:
parsed_field_weights = np.array(field_weights) / np.sum(field_weights)
# # Rescale field_weights to be proportional to the number of fields <- FIX CORRECT?
Expand Down
2 changes: 0 additions & 2 deletions tests/composition/test_emcomposition.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,6 @@ def test_simple_retrieval_without_storage_or_decay(self,





# *****************************************************************************************************************
# ************************************* FROM AutodiffComposition ************************************************
# *****************************************************************************************************************
Expand Down

0 comments on commit 68d3ca1

Please sign in to comment.