Skip to content

Commit

Permalink
Merge pull request #55 from faea726/user/faea726/fix-config-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon-Becker authored Oct 2, 2023
2 parents 077ae13 + 5f7b30b commit 88e20f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ The following commands are available:
| Command | Usage | Description |
| --------------------- | ----------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| `generate` | `python3 main.py generate --config <config> [options]` | Generates a set of images using the provided configuration file. |
| `build_configuration` | `python3 main.py build_configuration --trait-dir <trait_dir> [options]` | Builds a configuration file from a directory of traits. |
| `build_config` | `python3 main.py build_config --trait-dir <trait_dir> [options]` | Builds a configuration file from a directory of traits. |
| `validate` | `python3 main.py validate --config <config> [options]` | Validates a configuration file. |
| `update_metadata` | `python3 main.py update_metadata --image-path <config> [options]` | Updates the metadata files for all generated images at the provided `--output` path. |

Expand Down
2 changes: 1 addition & 1 deletion src/core/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def generate_config(trait_dir: str, output: str, verbose: int) -> None:
# calculate weight
weight = []
for i in range(len(item_list)):
weight.append(100 / len(item_list[i]))
weight.append(int((100 / len(item_list[i]))))
for j in range(len(item_list[i])):
item_list[i][j] = item_list[i][j].split(".")[0]

Expand Down

0 comments on commit 88e20f4

Please sign in to comment.