Commit 779da910 authored by jlaura's avatar jlaura
Browse files

Merge pull request #120 from kree/notebookci

Notebook continuous integration
parents 3c7b1891 d7fbac2a
Loading
Loading
Loading
Loading
+7 −5
Original line number Original line Diff line number Diff line
@@ -34,10 +34,12 @@ install:
  # Install the non-conda packages if required, requirements.txt duplicates are ignored
  # Install the non-conda packages if required, requirements.txt duplicates are ignored
  - conda install -c https://conda.anaconda.org/jlaura opencv3=3.0.0
  - conda install -c https://conda.anaconda.org/jlaura opencv3=3.0.0
  - conda config --add channels conda-forge
  - conda config --add channels conda-forge
  - conda install runipy
  - conda install -c https://conda.anaconda.org/conda-forge gdal h5py
  - conda install -c https://conda.anaconda.org/conda-forge gdal h5py
  - pip install -r requirements.txt
  - pip install -r requirements.txt
  - pip install coverage
  - pip install coverage
  - pip install coveralls
  - pip install coveralls
  - python runipynbs.py


script:
script:
  - nosetests --with-coverage --cover-package=autocnet
  - nosetests --with-coverage --cover-package=autocnet
@@ -48,16 +50,16 @@ after_success:
notifications:
notifications:
  webhooks:
  webhooks:
    urls:
    urls:
      - https://webhooks.gitter.im/e/6cbe4b65fff6764ed80f
 #     - https://webhooks.gitter.im/e/6cbe4b65fff6764ed80f
    on_success: always  
    on_success: always  
    on_failure: always  
    on_failure: always  
    on_start: never     
    on_start: never     
  email:
  email:
      recipients:
      recipients:
          - kberry@usgs.gov
#          - kberry@usgs.gov
          - dmlytle@usgs.gov
#          - dmlytle@usgs.gov
          - jwbacker@usgs.gov
#          - jwbacker@usgs.gov
          - krodriguez@usgs.gov
#          - krodriguez@usgs.gov
      on_success: always
      on_success: always
      on_failure: always
      on_failure: always
      
      
+0 −44
Original line number Original line Diff line number Diff line
%% Cell type:code id: tags:

``` python
import autocnet.fileio.ControlNetFileV0002_pb2 as spec
```

%% Cell type:code id: tags:

``` python
print dir(spec)
```

%% Output

    ['ControlNetFileHeaderV0002', 'ControlPointFileEntryV0002', 'DESCRIPTOR', '_CONTROLNETFILEHEADERV0002', '_CONTROLPOINTFILEENTRYV0002', '_CONTROLPOINTFILEENTRYV0002_APRIORISOURCE', '_CONTROLPOINTFILEENTRYV0002_MEASURE', '_CONTROLPOINTFILEENTRYV0002_MEASURE_MEASURELOGDATA', '_CONTROLPOINTFILEENTRYV0002_MEASURE_MEASURETYPE', '_CONTROLPOINTFILEENTRYV0002_POINTLOGDATA', '_CONTROLPOINTFILEENTRYV0002_POINTTYPE', '__builtins__', '__doc__', '__file__', '__name__', '__package__', 'descriptor', 'descriptor_pb2', 'message', 'reflection']

%% Cell type:code id: tags:

``` python
header = spec.ControlNetFileHeaderV0002()
header.created = "12/4/15"
header.description = "Just a date"
header.lastModified = "12/4/15"
header.networkId = "This is the ID"
#header.pointMessageSizes = 1.0
header.targetName = "Moon"
header.userName = "my name"
header_buffer = header.SerializeToString()
```

%% Cell type:code id: tags:

``` python
header_buffer
```

%% Output

    '\n\x0eThis is the ID\x12\x04Moon\x1a\x0712/4/15"\x0712/4/15*\x0bJust a date2\x07my name'

%% Cell type:code id: tags:

``` python
```
+0 −1190

File deleted.

Preview size limit exceeded, changes collapsed.

+0 −683

File deleted.

Preview size limit exceeded, changes collapsed.

+39 −47

File changed.

Preview size limit exceeded, changes collapsed.

Loading