sweets icon indicating copy to clipboard operation
sweets copied to clipboard

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

Open Shima-shoki opened this issue 1 year ago • 4 comments

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

Shima-shoki avatar Apr 12 '25 03:04 Shima-shoki

Thanks for reporting - I'll try to take a look this week, there's definitely a few parts of the configuration which are weird/unintuitive. I'll assume this one is broken for now, unless one of @Jaapel 's fixes has changed that and I haven't noticed yet

scottstanie avatar Apr 15 '25 12:04 scottstanie

I'll try to take a look this week, there's definitely a few parts of the configuration which are weird/unintuitive.

Well noted, thank you very much as always @scottstanie !

Shima-shoki avatar Apr 15 '25 14:04 Shima-shoki

I have not tried the data_dir option yet.

Jaapel avatar Apr 16 '25 08:04 Jaapel

Please see if #109 helped with your issue.

whatnick avatar Sep 09 '25 00:09 whatnick