Get default config
cutana.get_default_config
¶
Default configuration for Cutana astronomical cutout pipeline.
This module provides the default configuration using DotMap for dot-accessible dictionaries. All configuration parameters are documented with their purpose and valid ranges.
get_default_config()
¶
Returns the default configuration for Cutana.
Returns:
| Name | Type | Description |
|---|---|---|
DotMap |
The default configuration with dot-accessible parameters |
create_config_from_dict(config_dict)
¶
Create a Cutana config from a dictionary, merging with defaults.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config_dict
|
dict
|
Configuration dictionary to merge with defaults |
required |
Returns:
| Name | Type | Description |
|---|---|---|
DotMap |
Complete configuration with defaults applied |
save_config_toml(config, filepath)
¶
Save configuration to TOML file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
DotMap
|
Configuration to save |
required |
filepath
|
str
|
Path to save TOML file |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
Path to saved file |
load_config_toml(filepath)
¶
Load configuration from TOML file.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filepath
|
str
|
Path to TOML configuration file |
required |
Returns:
| Name | Type | Description |
|---|---|---|
DotMap |
Loaded configuration merged with defaults |
save_config_with_timestamp(config, output_dir)
¶
Save configuration with timestamp for UI usage.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
config
|
DotMap
|
Configuration to save |
required |
output_dir
|
str
|
Directory to save configuration |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
Path to saved file |