I hate python

This commit is contained in:
Starbeamrainbowlabs 2022-12-08 18:53:37 +00:00
parent d37e7224f5
commit ff56f591c7
Signed by: sbrl
GPG key ID: 1BE5172E637709C2

View file

@ -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