mirror of
https://github.com/sbrl/research-rainfallradar
synced 2024-12-22 22:25:01 +00:00
I hate python
This commit is contained in:
parent
d37e7224f5
commit
ff56f591c7
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ from ..io.readfile import readfile
|
|||
def parse_heightmap(filepath_heightmap):
|
||||
obj = json.loads(readfile(filepath_heightmap))
|
||||
|
||||
result = tf.constant(obj.data)
|
||||
result = tf.constant(obj["data"])
|
||||
result = tf.transpose(result, [1,0]) # [ height, width ] → [ width, height ]
|
||||
|
||||
return result
|
Loading…
Reference in a new issue