Skip to content

GMT_DATASET: Refactor nested classes to improve code readability - #3653

Merged
seisman merged 1 commit into
mainfrom
datatypes/dataset
Nov 27, 2024
Merged

GMT_DATASET: Refactor nested classes to improve code readability#3653
seisman merged 1 commit into
mainfrom
datatypes/dataset

Conversation

@seisman

@seismanseisman commented Nov 26, 2024

Copy link
Copy Markdown
Member

The GMT_DATASET data structure was originally added in #2729, with nested classes defined like GMT_DATASET->GMT_DATATABLE->GMT_DATASEGMENT.

As initially pointed out in #2729 (comment), the nested classes are difficult to read and maintain.

This PR moves the GMT_DATATABLE/GMT_DATASEGMENT classes outside of the GMT_DATASET class.

@seismanseisman added maintenance Boring but important stuff for the core devs needs review This PR has higher priority and needs review. labels Nov 26, 2024
@seismanseisman added this to the 0.14.0 milestone Nov 26, 2024
@seisman
seisman merged commit 988746b into mainNov 27, 2024
@seisman
seisman deleted the datatypes/dataset branch November 27, 2024 01:01
@seismanseisman removed the needs review This PR has higher priority and needs review. label Nov 27, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenanceBoring but important stuff for the core devs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@seisman@weiji14