Skip to content

Commit ccb8614

Browse files
authored
Merge pull request #291 from s22s/feature/ci-docs-tweaks
Another offering to the gods of CI....
2 parents bdcfb39 + e11d945 commit ccb8614

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.circleci/config.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ _save_cache: &save_cache
2828
- ~/.cache/coursier
2929
- ~/.ivy2/cache
3030
- ~/.sbt
31-
32-
before_script:
33-
- ulimit -c unlimited -S
31+
- ~/.local
3432

3533
jobs:
3634
test:
@@ -68,6 +66,7 @@ jobs:
6866
<<: *restore_cache
6967

7068
- run: ulimit -c unlimited -S
69+
- run: pip3 install --quiet --user -r pyrasterframes/src/main/python/requirements.txt
7170
- run:
7271
command: cat /dev/null | sbt makeSite
7372
no_output_timeout: 30m

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ cache:
1010
- $HOME/.ivy2/cache
1111
- $HOME/.sbt/boot
1212
- $HOME/.rf_cache
13+
- $HOME/.cache/coursier
1314

1415
scala:
1516
- 2.11.11

pyrasterframes/src/main/python/pyrasterframes/rf_ipython.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ def tile_to_png(tile, fig_size=None):
2929
import io
3030
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
3131
from matplotlib.figure import Figure
32-
import matplotlib.colors as colors
33-
from matplotlib import cm
3432

3533
# Set up matplotlib objects
3634
nominal_size = 2 # approx full size for a 256x256 tile
@@ -42,9 +40,8 @@ def tile_to_png(tile, fig_size=None):
4240
axis = fig.add_subplot(1, 1, 1)
4341

4442
data = tile.cells
45-
norm = colors.LogNorm(data.min(), data.max())
4643

47-
axis.imshow(data, norm=norm, cmap=cm.get_cmap("RdBu"))
44+
axis.imshow(data)
4845
axis.set_aspect('equal')
4946
axis.xaxis.set_ticks([])
5047
axis.yaxis.set_ticks([])

0 commit comments

Comments
 (0)