Skip to content

Commit

Permalink
fix build_config
Browse files Browse the repository at this point in the history
  • Loading branch information
faea726 committed Aug 18, 2023
1 parent 012832d commit 5f7b30b
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 5f7b30b

Please sign in to comment.