Skip to content

Commit

Permalink
fix bug in creating training weights directory (#36)
Browse files Browse the repository at this point in the history
* fix bug in creating training weights directory

* Remove Py 3.4 testing

See python-attrs/attrs#807, thank you to @mwaskom for finding this

Co-authored-by: Jasmine Stone <jasminetstone@gmail.com>
  • Loading branch information
gkane26 and syncrostone authored May 27, 2021
1 parent eda25fb commit 8d87400
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,17 @@ jobs:
runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [2.7, 3.4, 3.5, 3.6, 3.7, 3.8]
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
TF: [None, 1.13.1, 1.14, 1.15, 2.0, 2.1, 2.2]
exclude:
- python-version: 2.7
TF: None
- python-version: 3.4
TF: None
- python-version: 3.5
TF: None
- python-version: 3.6
TF: None
- python-version: 2.7
TF: 2.2
- python-version: 3.4
TF: 1.15
- python-version: 3.4
TF: 2.0
- python-version: 3.4
TF: 2.1
- python-version: 3.4
TF: 2.2
- python-version: 3.8
TF: 1.13.1
- python-version: 3.8
Expand Down
2 changes: 1 addition & 1 deletion psychrnn/backend/rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ def train(self, trial_batch_generator, train_params={}):
# --------------------------------------------------
if training_weights_path != None:
if path.dirname(training_weights_path) != "" and not path.exists(path.dirname(training_weights_path)):
makedirs(path.dirname(_weights_path))
makedirs(path.dirname(training_weights_path))

# --------------------------------------------------
# Compute gradients
Expand Down

0 comments on commit 8d87400

Please sign in to comment.