Skip to content

Commit

Permalink
Update calculate_flow to use new configuration defaults.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 698843883
  • Loading branch information
timblakely authored and copybara-github committed Dec 2, 2024
1 parent bc04aef commit 5608c7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion connectomics/volume/subvolume_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,13 @@ def register_default_config(
def default_config(
config_class: Type[T],
config_type: DefaultConfigType | None = None,
overrides: dict[str, Any] | None = None,
overrides: file.PathLike | dict[str, Any] | None = None,
fallback_to_em_2d: bool = True,
kvdriver: str = 'file',
) -> T:
"""Returns a default configuration for a given config type and class."""
if isinstance(overrides, file.PathLike):
overrides = file.load_json(overrides, kvdriver=kvdriver)
if config_type is None and fallback_to_em_2d:
logging.warning('No default config type specified, falling back to EM_2D.')
config_type = DefaultConfigType.EM_2D
Expand Down

0 comments on commit 5608c7a

Please sign in to comment.