Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
AdeelH committed Jun 27, 2024
1 parent a09ddcc commit bc3183c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rastervision_pipeline/rastervision/pipeline/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ def validate_list(self, field: str, valid_options: List[str]):
if val not in valid_options:
raise ConfigError(f'{val} is not a valid option for {field}')

def copy(self) -> Self:
return self.model_copy()

def dict(self, with_rv_metadata: bool = False, **kwargs) -> dict:
cfg_dict = self.model_dump(serialize_as_any=True, **kwargs)
if with_rv_metadata:
Expand Down

0 comments on commit bc3183c

Please sign in to comment.