Skip to content

asc_desc2horz_vert.py --oo: Avoid overwriting modified attributes#635

Merged
yunjunz merged 1 commit intoinsarlab:mainfrom
olliestephenson:patch-5
Aug 10, 2021
Merged

asc_desc2horz_vert.py --oo: Avoid overwriting modified attributes#635
yunjunz merged 1 commit intoinsarlab:mainfrom
olliestephenson:patch-5

Conversation

@olliestephenson
Copy link
Contributor

Description of proposed changes
Currently the file attributes are modified in the asc_desc_files2horz_vert function to take account of the fact that we're looking at the overlap between two tracks. However the write_to_one_file as currently written overwrites the input atr variable when looping over the list of attributes for the input files. The least to the attributes of the newly created file being incorrect. I've proposed a renaming to avoid this.

Currently the file attributes are modified in the `asc_desc_files2horz_vert` function to take account of the fact that we're looking at the overlap between two tracks. However the `write_to_one_file` as currently written overwrites the input `atr` variable when looping over the list of attributes for the input files. The least to the attributes of the newly created file being incorrect.
Copy link
Member

@yunjunz yunjunz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Thank you @olliestephenson.

@yunjunz yunjunz changed the title Avoid overwriting modified attributes asc_desc2horz_vert.py --oo: Avoid overwriting modified attributes Aug 10, 2021
@yunjunz yunjunz merged commit 79810f6 into insarlab:main Aug 10, 2021
@olliestephenson olliestephenson deleted the patch-5 branch January 24, 2022 08:10
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.

2 participants