Skip to content

sort ds_list to ensure velocity as first and residue/intercept as last#860

Merged
yunjunz merged 2 commits intoinsarlab:mainfrom
yunjunz:sort_vel_ds
Oct 7, 2022
Merged

sort ds_list to ensure velocity as first and residue/intercept as last#860
yunjunz merged 2 commits intoinsarlab:mainfrom
yunjunz:sort_vel_ds

Conversation

@yunjunz
Copy link
Member

@yunjunz yunjunz commented Oct 7, 2022

Description of proposed changes

  • add utils.readfile.sort_dataset_list4velocity() to ensure velocity are the first dataset, and intercept/residue are the last datasets. This fixes the behavior change introduced in ts2vel: save residue & intercept #835, as reported by Sven in the user forum

  • tests/smallbaselineApp: use *.tar.gz file, in addition to *.tar.xz file, if exists.

  • add mintpy.objects.progress.FileProgressObject class to show a progrerss bar during uncompressing

Reminders

  • Pass Codacy code review (green)
  • Pass Circle CI test (green)
  • Make sure that your code follows our style. Use the other functions/files as a basis.
  • If modifying functionality, describe changes to function behavior and arguments in a comment below the function declaration.
  • If adding new functionality, add a detailed description to the documentation and/or an example.

…compress

+ tests/smallbaselineApp: use *.tar.xz/gz file if exists

+ mintpy/objects/progress: add `FileProgressObject` class to show a progrerss bar during uncompressing
…intercept as last

+ utils.readfile:
   - add sort_dataset_list4velocity() to ensure velocity are the first dataset, and intercept/residue are the last datasets
   - apply the above func in get_dataset/slice_list() for velocity file
   - replace var `k` with `ftype` for code readility
@yunjunz yunjunz merged commit b71a6cf into insarlab:main Oct 7, 2022
@yunjunz yunjunz deleted the sort_vel_ds branch October 7, 2022 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant