palletdatagenerator.config module

Configuration file for PalletDataGenerator. Combines settings from original one_pallet_generator.py and warehouse_generator.py

palletdatagenerator.config.get_next_batch_folder(base_output_dir: str, mode: str) str[source]

Automatically detect existing generated_XXXXXX folders and create the next batch folder.

Returns the full path to the new batch folder: output/{mode}/generated_XXXXXX/

class palletdatagenerator.config.DefaultConfig(mode: str = 'single_pallet')[source]

Bases: object

Configuration class that adapts based on mode.

__init__(mode: str = 'single_pallet')[source]

Initialize config based on mode.

__getattr__(name)[source]

Allow dict-style access to config values.

__setattr__(name, value)[source]

Allow setting config values.

get(key, default=None)[source]

Dict-style get method.

update(**kwargs)[source]

Update multiple config values.