Skip to content

Commit 5c8168f

Browse files
authored
Merge pull request #3176 from PrincetonUniversity/devel
Devel
2 parents 1ea4407 + 97b9de9 commit 5c8168f

File tree

65 files changed

+2957
-1004
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+2957
-1004
lines changed

.github/actions/install-pnl/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ runs:
5757
sed -i /modeci_mdf/d requirements.txt
5858
# pywinpty is a transitive dependency and v1.0+ removed support for x86 wheels
5959
echo "pywinpty<1" >> env_constraints.txt
60-
# jupyter_sever pulls jupyter_server_terminals which depends on in pywinpty >= 2.0.3
60+
# jupyter_server >= 2 pulls jupyter_server_terminals which depends on in pywinpty >= 2.0.3
6161
echo "jupyter_server<2" >> env_constraints.txt
6262
# scipy >=1.9.2 doesn't provide win32 wheel and GA doesn't have working fortran on windows
6363
echo "scipy<1.9.2" >> env_constraints.txt
@@ -67,6 +67,12 @@ runs:
6767
echo "contourpy<1.1.0" >> env_constraints.txt
6868
# pillow >= 10.0.0 doesn't provide win32 wheel
6969
echo "pillow < 10.0.0" >> env_constraints.txt
70+
# pandas >= 2.1.0 doesn't provide win32 wheel
71+
echo "pandas < 2.1.0" >> env_constraints.txt
72+
# llvmlite >= 0.42.0 doesn't provide win32 wheel
73+
echo "llvmlite < 0.42.0" >> env_constraints.txt
74+
# matplotlib >=3.8.0 doesn't provide win32 wheel
75+
echo "matplotlib < 3.8.0" >> env_constraints.txt
7076
fi
7177
7278
- name: Install updated package

.github/workflows/pnl-ci-docs.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@ jobs:
2121
strategy:
2222
fail-fast: false
2323
matrix:
24-
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
24+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
2525
os: [ubuntu-latest, macos-latest, windows-latest]
2626
pnl-version: ${{ (github.event_name == 'push') && fromJSON('["head"]') || fromJSON('["head", "base"]') }}
2727
exclude:
2828
- os: macos-latest
2929
pnl-version: 'base'
3030
- os: windows-latest
3131
pnl-version: 'base'
32-
- python-version: '3.7'
33-
pnl-version: 'base'
3432
- python-version: '3.8'
3533
pnl-version: 'base'
3634
- python-version: '3.9'
@@ -40,14 +38,6 @@ jobs:
4038
- python-version: '3.12'
4139
pnl-version: 'base'
4240

43-
# Python 3.7 x64 on macos-14 (arm64) images is broken [0]
44-
# and arm64 version is not available [1].
45-
# Restrict python 3.7 macos runs to macos-13
46-
# [0] https://github.com/actions/setup-python/issues/855
47-
# [1] https://github.com/actions/setup-python/issues/856
48-
- python-version: '3.7'
49-
os: macos-latest
50-
5141
outputs:
5242
on_master: ${{ steps.on_master.outputs.on-branch }}
5343

@@ -80,9 +70,7 @@ jobs:
8070
- name: Set up Python ${{ matrix.python-version }}
8171
uses: actions/setup-python@v5
8272
with:
83-
# Block python3.7.17 on macos. see:
84-
# https://github.com/actions/setup-python/issues/682
85-
python-version: ${{ (matrix.os == 'macos-latest' && matrix.python-version == '3.7') && '3.7.16' || matrix.python-version }}
73+
python-version: ${{ matrix.python-version }}
8674

8775
- name: Get pip cache location
8876
shell: bash

.github/workflows/pnl-ci.yml

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
strategy:
3434
fail-fast: false
3535
matrix:
36-
python-version: ['3.7', '3.11', '3.12']
36+
python-version: ['3.8', '3.11', '3.12']
3737
python-architecture: ['x64']
3838
extra-args: ['']
3939
os: [ubuntu, macos, windows]
@@ -51,7 +51,7 @@ jobs:
5151
extra-args: '--forked -m "not llvm"'
5252

5353
# add 32-bit build on windows
54-
- python-version: '3.8'
54+
- python-version: '3.9'
5555
python-architecture: 'x86'
5656
os: windows
5757

@@ -70,22 +70,18 @@ jobs:
7070
# https://github.com/ionelmc/pytest-benchmark/issues/243
7171
extra-args: '-m benchmark --benchmark-enable --benchmark-only --benchmark-min-rounds=2 --benchmark-max-time=0.001 --benchmark-warmup=off -n0 --dist=no'
7272

73-
# add python 3.7 with deps restricted to min supported version
74-
- python-version: '3.7'
75-
python-architecture: 'x64'
76-
os: ubuntu
77-
version-restrict: 'min'
78-
79-
# add python 3.8 build on macos since 3.7 is broken
80-
# https://github.com/actions/virtual-environments/issues/4230
81-
# use default python-architecture
73+
# add python 3.8 with deps restricted to min supported version
74+
# use default python architecture
75+
# https://github.com/actions/setup-python/issues/960
8276
- python-version: '3.8'
8377
os: macos
78+
version-restrict: 'min'
8479

8580
exclude:
86-
# 3.7 is broken on macos-11,
87-
# https://github.com/actions/virtual-environments/issues/4230
88-
- python-version: '3.7'
81+
# 3.8/x64 python is broken on aarch64 macos runners
82+
# https://github.com/actions/setup-python/issues/960
83+
- python-version: '3.8'
84+
python-architecture: 'x64'
8985
os: macos
9086

9187
steps:
@@ -112,7 +108,8 @@ jobs:
112108
if: ${{ matrix.version-restrict == 'min' }}
113109
shell: bash
114110
run: |
115-
sed -i '/^[^#]/s/>=/==/' *requirements.txt
111+
# macos/bsd sed requires backup suffix argument to -i
112+
sed -i=.bak -e '/^[^#]/s/>=/==/' *requirements.txt
116113
git config user.name "github actions"
117114
git config user.email "none"
118115
git commit -a -m "Restrict version of direct dependencies to min"

.github/workflows/test-release.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,9 @@ jobs:
6969
strategy:
7070
fail-fast: false
7171
matrix:
72-
python-version: [3.7, 3.8, 3.9, '3.10', 3.11, 3.12]
72+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
7373
os: [ubuntu-latest, macos-latest, windows-latest]
7474
dist: [wheel, sdist]
75-
exclude:
76-
# 3.7 is broken on macos-11,
77-
# https://github.com/actions/virtual-environments/issues/4230
78-
- python-version: '3.7'
79-
os: macos-latest
8075

8176
runs-on: ${{ matrix.os }}
8277
needs: [create-python-dist]

Scripts/Models (Under Development)/EGO/Using EMComposition/Coffee Shop World/DeclanParams.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ def calc_prob(em_preds, test_ys):
7272
normalize_field_weights = True, # whether to normalize the field weights during memory retrieval
7373
normalize_memories = False, # whether to normalize the memory during memory retrieval
7474
# normalize_memories = True, # whether to normalize the memory during memory retrieval
75+
normalize_memories = False, # whether to normalize the memory vectors
7576
# softmax_temperature = None, # temperature of the softmax used during memory retrieval (smaller means more argmax-like
7677
softmax_temperature = .1, # temperature of the softmax used during memory retrieval (smaller means more argmax-like
7778
# softmax_temperature = ADAPTIVE, # temperature of the softmax used during memory retrieval (smaller means more argmax-like

doc_requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
psyneulink-sphinx-theme<1.2.4.1
1+
psyneulink-sphinx-theme<1.2.6.0
22
sphinx<4.2.1
33
sphinx_autodoc_typehints<1.16.0

docs/source/AutodiffComposition.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ AutodiffComposition
66
*Related*
77

88
* `Composition_Learning`
9+
* `Composition_Bias_Nodes`
910

1011
.. automodule:: psyneulink.library.compositions.autodiffcomposition
1112
:members:

docs/source/Core.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ Core
6969

7070
- `TransferFunctions`
7171

72+
- `TimerFunctions`
73+
7274
- `TransformFunctions`
7375

7476
- `StatefulFunctions`

docs/source/IntegratorMechanisms.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ IntegratorMechanisms
1212

1313
DDM
1414
EpisodicMemoryMechanism
15+
TimerMechanism

docs/source/NonStatefulFunctions.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ Functions that do *not* depend on a previous value.
1515
OptimizationFunctions
1616
SelectionFunctions
1717
TransferFunctions
18+
TimerFunctions
1819
TransformFunctions

0 commit comments

Comments
 (0)