Skip to content

Commit 4996cd8

Browse files
committed
Update nb, tests for renamed plot functions
1 parent d967880 commit 4996cd8

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

notebooks/plot_samples.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"metadata": {},
116116
"outputs": [],
117117
"source": [
118-
"ag3.sample_location_mapbox(\n",
118+
"ag3.plot_sample_location_mapbox(\n",
119119
" color='country',\n",
120120
" sample_sets=[\"3.0\"],\n",
121121
" sample_query=\"year > 2012\",\n",
@@ -129,7 +129,7 @@
129129
"metadata": {},
130130
"outputs": [],
131131
"source": [
132-
"ag3.sample_location_geo(\n",
132+
"ag3.plot_sample_location_geo(\n",
133133
" color='country',\n",
134134
" sample_sets=[\"3.0\"],\n",
135135
" sample_query=\"year > 2012\",\n",
@@ -195,7 +195,7 @@
195195
"metadata": {},
196196
"outputs": [],
197197
"source": [
198-
"af1.sample_location_mapbox(\n",
198+
"af1.plot_sample_location_mapbox(\n",
199199
" color='country',\n",
200200
" sample_sets=[\"1.0\"],\n",
201201
" sample_query=\"year > 2015\",\n",
@@ -209,7 +209,7 @@
209209
"metadata": {},
210210
"outputs": [],
211211
"source": [
212-
"af1.sample_location_geo(\n",
212+
"af1.plot_sample_location_geo(\n",
213213
" color='country',\n",
214214
" sample_sets=[\"1.0\"],\n",
215215
" sample_query=\"year > 2015\",\n",
@@ -240,7 +240,7 @@
240240
"metadata": {},
241241
"outputs": [],
242242
"source": [
243-
"help(af1.sample_location_mapbox)"
243+
"help(af1.plot_sample_location_mapbox)"
244244
]
245245
},
246246
{
@@ -249,7 +249,7 @@
249249
"metadata": {},
250250
"outputs": [],
251251
"source": [
252-
"help(af1.sample_location_geo)"
252+
"help(af1.plot_sample_location_geo)"
253253
]
254254
},
255255
{

tests/anoph/test_sample_metadata.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -938,13 +938,13 @@ def test_plot_samples_bar(fixture, api):
938938

939939

940940
@parametrize_with_cases("fixture,api", cases=".")
941-
def test_sample_location_mapbox(fixture, api):
941+
def test_plot_sample_location_mapbox(fixture, api):
942942
# Get test sample_sets.
943943
df_sample_sets = api.sample_sets().set_index("sample_set")
944944
all_sample_sets = df_sample_sets.index.to_list()
945945
sample_sets = random.sample(all_sample_sets, 2)
946946

947-
fig = api.sample_location_mapbox(
947+
fig = api.plot_sample_location_mapbox(
948948
sample_sets=sample_sets,
949949
show=False,
950950
)
@@ -953,13 +953,13 @@ def test_sample_location_mapbox(fixture, api):
953953

954954

955955
@parametrize_with_cases("fixture,api", cases=".")
956-
def test_sample_location_geo(fixture, api):
956+
def test_plot_sample_location_geo(fixture, api):
957957
# Get test sample_sets.
958958
df_sample_sets = api.sample_sets().set_index("sample_set")
959959
all_sample_sets = df_sample_sets.index.to_list()
960960
sample_sets = random.sample(all_sample_sets, 2)
961961

962-
fig = api.sample_location_geo(
962+
fig = api.plot_sample_location_geo(
963963
sample_sets=sample_sets,
964964
show=False,
965965
)

0 commit comments

Comments
 (0)