Jon-Becker / nft-generator-py

This tool allows users to generate sets of unique images and metadata using weighted layer collections.
MIT License
301 stars 127 forks source link

Float Validation #59

Closed Whanod closed 4 months ago

Whanod commented 6 months ago

No matter how i change the weights array i get something like this :

src.common.exceptions.ConfigValidationError: config["layers"][3]["weights"]: The sum of the weights must be 100. Current sum: 100.00000000000006

my weights "weights": [ 1.4, 1.4, 1.4, 1.4, 2.5, 1.4, 1.7, 9.2, 2.5, 1.4, 0.3, 1.7, 1.7, 1.2, 0.7, 1.4, 0.9, 1.4, 1.7, 0.5, 1.7, 1.4, 0.2, 1, 2.2, 1.7, 1.8, 1.4, 1.7, 1.4, 1.7, 1.4, 1.4, 1.4, 1.4, 1.4, 1.4, 1.4, 1.7, 1.7, 1.8, 1.7, 1.4, 1.4, 1.7, 2, 0.7, 1.8, 0.9, 1.8, 1.4, 1.4, 1.4, 1.7, 1.7, 1.8, 1.7, 1, 1.7, 1.4, 0.9, 1.7, 1.8 ]

Jon-Becker commented 6 months ago

i love python

will tackle tomorrow. please ping me if i forget!

Jon-Becker commented 6 months ago

on it