Skip to content

Commit

Permalink
Merge pull request #37 from pesser/origin/hackday
Browse files Browse the repository at this point in the history
Correct formatting and tests for hackday
  • Loading branch information
theRealSuperMario authored Apr 25, 2019
2 parents 0220906 + 8751b80 commit 298ac70
Show file tree
Hide file tree
Showing 24 changed files with 450 additions and 608 deletions.
7 changes: 5 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

# Playing around stuff
**play**
**logs**
**log**
logs/
log/

# Pictures
**.png
Expand All @@ -27,3 +27,6 @@ docs/build/*
docs/_*

.nfs*

# Generated output
examples/data
34 changes: 25 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: python
python:
# - 2.7
- 3.6
notifications:
email: false
Expand All @@ -18,18 +17,35 @@ before_install:
- conda update -q conda
- conda info -a

install:
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION tensorflow=1.13.1
- source activate test-environment
- conda install pytorch-cpu torchvision-cpu -c pytorch
- pip install tensorboardX
- python setup.py install
install: true


# Run test
jobs:
include:
- stage: example_tests
- stage: formatting
name: "formatting test"
install:
- pip install black
script:
- black --check .
- stage: tf_example_tests
name: "Tensorflow examples test"
install:
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION tensorflow=1.13.1
- source activate test-environment
- python setup.py install
script:
- cd examples
- python -m pytest -k tf
- stage: torch_example_tests
name: "Pytorch examples test"
install:
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION
- source activate test-environment
- conda install pytorch-cpu torchvision-cpu -c pytorch
- pip install tensorboardX
- python setup.py install
script:
- cd examples
- python -m pytest
- python -m pytest -k torch
Empty file added edflow/applications/__init__.py
Empty file.
File renamed without changes.
2 changes: 1 addition & 1 deletion edflow/edflow
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import yaml # noqa
from edflow.main import train, test # noqa
from edflow.custom_logging import init_project, use_project, get_logger # noqa
from edflow.custom_logging import set_global_stdout_level # noqa
from edflow.hooks.evaluation_hooks import get_latest_checkpoint # noqa
from edflow.hooks.checkpoint_hooks.common import get_latest_checkpoint # noqa


def update_config(config, options):
Expand Down
39 changes: 0 additions & 39 deletions edflow/evaluate.py

This file was deleted.

3 changes: 0 additions & 3 deletions edflow/hooks/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +0,0 @@
from edflow.hooks.train_hooks import *
from edflow.hooks.evaluation_hooks import *
from edflow.hooks.hook import Hook, match_frequency
Empty file.
Loading

0 comments on commit 298ac70

Please sign in to comment.