Skip to content

Commit 655d6cd

Browse files
authored
Merge pull request #89 from simpeg/VTK_updates
Vtk updates
2 parents d8b0b28 + 6ef147e commit 655d6cd

File tree

7 files changed

+10
-12
lines changed

7 files changed

+10
-12
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[bumpversion]
2-
current_version = 0.1.16
2+
current_version = 0.1.17
33
files = setup.py discretize/__init__.py docs/conf.py
44

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,8 @@ before_install:
2626
- conda update --yes conda
2727

2828
install:
29-
- if [ ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]; then
30-
conda install --quiet --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib pillow cython ipython vtk;
31-
else
32-
conda install --quiet --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib pillow cython ipython;
33-
fi
29+
- conda install --quiet --yes pip python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib pillow cython ipython;
30+
- conda install --quiet --yes -c menpo vtk
3431
- pip install -r requirements_dev.txt
3532
- python setup.py install
3633
- make build

appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ install:
3636
- conda info -a
3737
- "conda create -q -n test-environment python=%PYTHON% numpy scipy matplotlib cython ipython pillow wheel"
3838
- activate test-environment
39+
- conda install --quiet --yes -c menpo vtk
3940
- pip install -r requirements_dev.txt
4041
- python setup.py install
4142

discretize/MeshIO.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def writeVTK(mesh, fileName, models=None, directory=''):
250250
vtkDoubleArr.SetName(item[0])
251251
vtkObj.GetCellData().AddArray(vtkDoubleArr)
252252
# Set the active scalar
253-
vtkObj.GetCellData().SetActiveScalars(models.keys()[0])
253+
vtkObj.GetCellData().SetActiveScalars(list(models.keys())[0])
254254

255255
# Check the extension of the fileName
256256
ext = os.path.splitext(fname)[1]
@@ -310,7 +310,7 @@ def _toVTRObj(mesh, models=None):
310310
vtkDoubleArr.SetName(item[0])
311311
vtkObj.GetCellData().AddArray(vtkDoubleArr)
312312
# Set the active scalar
313-
vtkObj.GetCellData().SetActiveScalars(models.keys()[0])
313+
vtkObj.GetCellData().SetActiveScalars(list(models.keys())[0])
314314
return vtkObj
315315

316316
def _readModelUBC_2D(mesh, fileName):

discretize/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"""
1919
)
2020

21-
__version__ = '0.1.16'
21+
__version__ = '0.1.17'
2222
__author__ = 'SimPEG Team'
2323
__license__ = 'MIT'
2424
__copyright__ = '2013 - 2017, SimPEG Developers, http://simpeg.xyz'

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@
6060
# built documents.
6161
#
6262
# The short X.Y version.
63-
version = '0.1.16'
63+
version = '0.1.17'
6464
# The full version, including alpha/beta/rc tags.
65-
release = '0.1.16'
65+
release = '0.1.17'
6666

6767
# The language for content autogenerated by Sphinx. Refer to documentation
6868
# for a list of supported languages.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def configuration(parent_package='', top_path=None):
5656

5757
setup(
5858
name="discretize",
59-
version="0.1.16",
59+
version="0.1.17",
6060
install_requires=[
6161
'numpy>=1.7',
6262
'scipy>=0.13',

0 commit comments

Comments
 (0)