Skip to content
This repository was archived by the owner on Mar 4, 2021. It is now read-only.

Commit 416d2ca

Browse files
authored
Merge pull request #56 from cta-sst-1m/work_on_py3.7
start using py3.7 as well
2 parents eec3d82 + 48ae44b commit 416d2ca

6 files changed

Lines changed: 7 additions & 2 deletions

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ matrix:
1212
env:
1313
- PYTHON_VERSION=3.6
1414
- MINICONDA_URL=https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
15+
- os: linux
16+
python: 3.7
17+
env:
18+
- PYTHON_VERSION=3.7
19+
- MINICONDA_URL=https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh
1520
- os: osx
1621
python: 3.5
1722
env:

protozfits/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from . import rawzfits
1212
# If you would like to learn more about the contents of the compiled
1313
# rawzfits extension. Please have a look into protozfits/rawzfits.pyx
14-
from google.protobuf.pyext.cpp_message import GeneratedProtocolMessageType
14+
from google.protobuf.reflection import GeneratedProtocolMessageType
1515
from .CoreMessages_pb2 import AnyArray
1616
from .any_array_to_numpy import any_array_to_numpy
1717

8.43 KB
Binary file not shown.
8.79 KB
Binary file not shown.
6.33 MB
Binary file not shown.

protozfits/tests/test_File.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_File_getitem_with_iterable():
4646

4747
def test_File_getitem_with_range():
4848
f = File(example_file_path)
49-
interesting_event_ids = range(10, 1, -2)
49+
interesting_event_ids = range(9, 1, -2)
5050
expected_event_numbers = [FIRST_EVENT_NUMBER + i for i in interesting_event_ids]
5151
for i, event in enumerate(f.Events[interesting_event_ids]):
5252
assert event.eventNumber == expected_event_numbers[i]

0 commit comments

Comments
 (0)