Skip to content

Commit 462b4dc

Browse files
committed
converted more function names to snakecase
1 parent dd66f0c commit 462b4dc

20 files changed

+105
-166
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919
### Added
2020
### Changed
2121
- listJobs no longer takes username as an argument, you can only list jobs for the current `MAAP_PGT` token user
22-
- submitJob gets the username from the `MAAP_PGT` token and not username being submitted as an argument
22+
- submit_job gets the username from the `MAAP_PGT` token and not username being submitted as an argument
2323
### Deprecated
2424
### Removed
2525
### Fixed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ $ python
2727
>>> from maap.maap import MAAP
2828
>>> maap = MAAP()
2929

30-
>>> granules = maap.searchGranule(sitename='lope', instrument='uavsar')
30+
>>> granules = maap.search_granule(sitename='lope', instrument='uavsar')
3131
>>> for res in granules:
3232
print(res.getDownloadUrl())
3333
res.download()
@@ -64,13 +64,13 @@ where:
6464
With named attribute parameters, this query:
6565

6666
```python
67-
lidarGranule = maap.searchGranule(instrument='lvis', attribute='string,Site Name,lope')
67+
lidarGranule = maap.search_granule(instrument='lvis', attribute='string,Site Name,lope')
6868
```
6969

7070
Simplifies to:
7171

7272
```python
73-
lidarGranule = maap.searchGranule(instrument='lvis', site_name='lope')
73+
lidarGranule = maap.search_granule(instrument='lvis', site_name='lope')
7474
```
7575

7676
## Test

docs/api/dps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ from maap.maap import MAAP
3232
maap = MAAP()
3333

3434
# Submit a job
35-
job = maap.submitJob(
35+
job = maap.submit_job(
3636
identifier='my_analysis',
3737
algo_id='my_algorithm',
3838
version='main',

docs/api/maap.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ from maap.maap import MAAP
1919
maap = MAAP()
2020

2121
# Search granules
22-
granules = maap.searchGranule(short_name='GEDI02_A', limit=10)
22+
granules = maap.search_granule(short_name='GEDI02_A', limit=10)
2323

2424
# Search collections
25-
collections = maap.searchCollection(provider='MAAP')
25+
collections = maap.search_collection(provider='MAAP')
2626

2727
# Submit a job
28-
job = maap.submitJob(
28+
job = maap.submit_job(
2929
identifier='analysis',
3030
algo_id='my_algo',
3131
version='main',

docs/api/result.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ from maap.maap import MAAP
4949
maap = MAAP()
5050

5151
# Search granules
52-
granules = maap.searchGranule(short_name='GEDI02_A', limit=5)
52+
granules = maap.search_granule(short_name='GEDI02_A', limit=5)
5353

5454
for granule in granules:
5555
# Get URLs

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ from maap.maap import MAAP
3030
maap = MAAP()
3131

3232
# Search for granules
33-
granules = maap.searchGranule(
33+
granules = maap.search_granule(
3434
short_name='GEDI02_A',
3535
bounding_box='-122.5,37.5,-121.5,38.5',
3636
limit=10
@@ -42,7 +42,7 @@ for granule in granules:
4242
print(f"Downloaded: {local_path}")
4343

4444
# Submit a job
45-
job = maap.submitJob(
45+
job = maap.submit_job(
4646
identifier='my_analysis',
4747
algo_id='my_algorithm',
4848
version='main',

examples/BrowseExample.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@
386386
}
387387
],
388388
"source": [
389-
"granule = maap.searchGranule(granule_ur='uavsar_AfriSAR_v1_SLC-lopenp_14043_16015_001_160308_L090.vrt')[0]\n",
389+
"granule = maap.search_granule(granule_ur='uavsar_AfriSAR_v1_SLC-lopenp_14043_16015_001_160308_L090.vrt')[0]\n",
390390
"maap.show(granule)"
391391
]
392392
},
@@ -747,7 +747,7 @@
747747
}
748748
],
749749
"source": [
750-
"granule = maap.searchGranule(granule_ur='ILVIS2_GA2016_0220_R1611_038024')[0]\n",
750+
"granule = maap.search_granule(granule_ur='ILVIS2_GA2016_0220_R1611_038024')[0]\n",
751751
"maap.show(granule)"
752752
]
753753
}

examples/Search Collection - Basics-checkpoint.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"metadata": {},
5454
"outputs": [],
5555
"source": [
56-
"results = maap.searchCollection(keyword='precipitation')"
56+
"results = maap.search_collection(keyword='precipitation')"
5757
]
5858
},
5959
{

examples/Search Granule-checkpoint.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
}
6464
],
6565
"source": [
66-
"results = maap.searchCollection(keyword='land',data_center='modaps')\n",
66+
"results = maap.search_collection(keyword='land',data_center='modaps')\n",
6767
"print(len(results))\n",
6868
"\n",
6969
"for res in results:\n",
@@ -159,7 +159,7 @@
159159
}
160160
],
161161
"source": [
162-
"results = maap.searchGranule(limit=10,short_name=\"MOD11A1\")\n",
162+
"results = maap.search_granule(limit=10,short_name=\"MOD11A1\")\n",
163163
"\n",
164164
"print(len(results))\n",
165165
"for res in results:\n",

maap/AWS.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def workspace_bucket_credentials(self):
336336
See Also
337337
--------
338338
:meth:`requester_pays_credentials` : For accessing external data
339-
:meth:`maap.maap.MAAP.uploadFiles` : Upload files to shared storage
339+
:meth:`maap.maap.MAAP.upload_files` : Upload files to shared storage
340340
"""
341341
headers = self._api_header
342342
headers["Accept"] = "application/json"

0 commit comments

Comments
 (0)