Closed seisman closed 6 hours ago
The GMT_DATASET data structure was originally added in #2729, with nested classes defined like GMT_DATASET->GMT_DATATABLE->GMT_DATASEGMENT.
GMT_DATASET
GMT_DATATABLE
GMT_DATASEGMENT
As initially pointed out in https://github.com/GenericMappingTools/pygmt/pull/2729#discussion_r1390150748, the nested classes are difficult to read and maintain.
This PR moves the GMT_DATATABLE/GMT_DATASEGMENT classes outside of the GMT_DATASET class.
The
GMT_DATASET
data structure was originally added in #2729, with nested classes defined likeGMT_DATASET
->GMT_DATATABLE
->GMT_DATASEGMENT
.As initially pointed out in https://github.com/GenericMappingTools/pygmt/pull/2729#discussion_r1390150748, the nested classes are difficult to read and maintain.
This PR moves the
GMT_DATATABLE
/GMT_DATASEGMENT
classes outside of theGMT_DATASET
class.