Fix json float input.

This commit is contained in:
jmsgrogan 2017-10-20 18:02:16 +01:00
parent afbacca3f4
commit 57c2414e6b
5 changed files with 30413 additions and 34081 deletions

View file

@ -15,8 +15,8 @@ if __name__ == "__main__":
if not os.path.exists(os.getcwd() + "/" + output):
os.makedirs(os.getcwd() + "/" + output)
height = shape_params["height"]
radius = shape_params["radius"]
height = float(shape_params["height"])
radius = float(shape_params["radius"])
color = [random.random()*255.0,
random.random()*255.0,
random.random()*255.0]

View file

@ -15,8 +15,8 @@ if __name__ == "__main__":
if not os.path.exists(os.getcwd() + "/" + output):
os.makedirs(os.getcwd() + "/" + output)
height = shape_params["height"]
radius = shape_params["radius"]
height = float(shape_params["height"])
radius = float(shape_params["radius"])
color = shape_params["color"]
product_gen.generate_lamp.generate(shape, height, radius,
color, output, is_final=True)

View file

@ -1 +1 @@
{"color": [18.0, 18.0, 18.0], "shape": "cone", "radius": 77.62212089695586, "height": 114.09765555398143}
{"color": [217.20423766974022, 233.50459158117596, 216.9490977511184], "output": "test123", "shape": "cone", "radius": "12.0", "height": "120"}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 19 KiB

File diff suppressed because it is too large Load diff