Skip to content

Specifying "--data-dir" doesn't work in "sweets config" #80

@Shima-shoki

Description

@Shima-shoki

Hi, I have already downloaded SLC burst data to my destination folder, so I'd like to specify it to the data directory in sweets. However, when I specify it, sweets returns error massages which look to forbid me from adding a new path. On the other hand, "--orbit-dir" accepts a new input. Could this be a bug? (I can edit .yaml file afterwards, but this looks like worth to be reported)

Traceback (most recent call last):
File "/usr/local/bin/sweets", line 8, in
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/site-packages/sweets/cli.py", line 237, in main
func(arg_dict)
File "/usr/local/lib/python3.11/site-packages/sweets/cli.py", line 229, in create_config
workflow = Workflow(**kwargs)
^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/sweets/core.py", line 218, in init
super().init(**data)
File "/usr/local/lib/python3.11/site-packages/pydantic/main.py", line 253, in init
validated_self = self.pydantic_validator.validate_python(data, self_instance=self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pydantic_core._pydantic_core.ValidationError: 1 validation error for Workflow
asf_query.data_dir
Extra inputs are not permitted [type=extra_forbidden, input_value='/content/drive/MyDrive/S...InSAR-Jakarta/BurstData', input_type=str]
For further information visit https://errors.pydantic.dev/2.11/v/extra_forbidden

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions