@@ -66,19 +66,27 @@ def load_sample_data(name):
66
66
if name not in names :
67
67
raise GMTInvalidInput (f"Invalid dataset name '{ name } '." )
68
68
69
- load_func = {
69
+ # Dictionary of public load functions for backwards compatibility
70
+ load_func_old = {
70
71
"bathymetry" : load_sample_bathymetry ,
71
- "earth_relief_holes" : _load_earth_relief_holes ,
72
72
"fractures" : load_fractures_compilation ,
73
73
"hotspots" : load_hotspots ,
74
74
"japan_quakes" : load_japan_quakes ,
75
75
"mars_shape" : load_mars_shape ,
76
76
"ocean_ridge_points" : load_ocean_ridge_points ,
77
- "notre_dame_topography" : _load_notre_dame_topography ,
78
77
"usgs_quakes" : load_usgs_quakes ,
79
78
}
80
79
81
- data = load_func [name ](suppress_warning = True )
80
+ # Dictionary of private load functions
81
+ load_func = {
82
+ "earth_relief_holes" : _load_earth_relief_holes ,
83
+ "notre_dame_topography" : _load_notre_dame_topography ,
84
+ }
85
+
86
+ if name in load_func_old :
87
+ data = load_func_old [name ](suppress_warning = True )
88
+ elif name in load_func :
89
+ data = load_func [name ]()
82
90
83
91
return data
84
92
@@ -350,7 +358,7 @@ def load_mars_shape(**kwargs):
350
358
return data
351
359
352
360
353
- def _load_notre_dame_topography (** kwargs ): # pylint: disable=unused-argument
361
+ def _load_notre_dame_topography ():
354
362
"""
355
363
Load Table 5.11 in Davis: Statistics and Data Analysis in Geology.
356
364
@@ -363,7 +371,7 @@ def _load_notre_dame_topography(**kwargs): # pylint: disable=unused-argument
363
371
return pd .read_csv (fname , sep = r"\s+" , header = None , names = ["x" , "y" , "z" ])
364
372
365
373
366
- def _load_earth_relief_holes (** kwargs ): # pylint: disable=unused-argument
374
+ def _load_earth_relief_holes ():
367
375
"""
368
376
Loads the remote file @earth_relief_20m_holes.grd.
369
377
0 commit comments