Skip to content

Commit 023f379

Browse files
committed
Merge branch 'main' into test-and-packaging
2 parents 4cb8b05 + 74c1dfe commit 023f379

File tree

8 files changed

+6
-6
lines changed

8 files changed

+6
-6
lines changed

readmbtiles.py

Lines changed: 0 additions & 3 deletions
This file was deleted.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import networkx as nx
33

44
# Initialize reader
5-
dir_name = "data/osm/"
5+
dir_name = "../data/osm/"
66
map_name = "SantaBarbara"
77
osm = OSM(dir_name+map_name+".osm.pbf")
88
for i in range(len(osm.get_boundaries()['osm_type'])):
File renamed without changes.
File renamed without changes.

src/readmbtiles.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import mbutil
2+
3+
mbutil.mbtiles_to_disk('../data/input/mbtiles/PaloAlto-mbtiles-openmaptiles/PaloAlto.mbtiles', 'data/output/tiles')
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Run this script to generate data in /output directory.
22
import maps
33

4-
sfMap = maps.MapReader('data/input/sf_layered.txt')
4+
sfMap = maps.MapReader('../data/input/sf_layered.txt')
55
mapsDataset = maps.MapsDataset((32, 32), 2, 1280, maps.single_layer_converter) #Third parameter is the group size
66
mapsDataset.generate_patches(sfMap) #This will generate dill files which contain the saved sample lists.

sliceimages.py renamed to src/sliceimages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import numpy as np
55
from matplotlib import image as mpimg
66

7-
np_image = mpimg.imread('data/output/SanJose3.png')
7+
np_image = mpimg.imread('../data/output/SanJose3.png')
88
i=0
99

1010

0 commit comments

Comments
 (0)