@@ -35,9 +35,9 @@ variable in the ``atlasapiclient/utils.py file``.
35
35
36
36
For example:
37
37
``` python
38
- from atlasapiclient import client as atlaspaiclient
38
+ from atlasapiclient import client as atlasapiclient
39
39
40
- client = atlaspaiclient .APIClient()
40
+ client = atlasapiclient .APIClient()
41
41
client.refresh_token()
42
42
```
43
43
@@ -84,9 +84,9 @@ cp api_config_template.yaml api_config_MINE.yaml
84
84
### Cone Search
85
85
86
86
``` python
87
- from atlasapiclient import client as atlaspaiclient
87
+ from atlasapiclient import client as atlasapiclient
88
88
89
- client = atlaspaiclient .ConeSearch(payload = {' ra' : 150 ,
89
+ client = atlasapiclient .ConeSearch(payload = {' ra' : 150 ,
90
90
' dec' : 60 ,
91
91
' radius' : 60 ,
92
92
' requestType' : ' nearest' },
@@ -99,10 +99,10 @@ client = atlaspaiclient.ConeSearch(payload={'ra': 150,
99
99
To get the data:
100
100
101
101
``` python
102
- from atlasapiclient import client as atlaspaiclient
102
+ from atlasapiclient import client as atlasapiclient
103
103
104
104
atlas_id = ' 1161600211221604900'
105
- client = atlaspaiclient .RequestSingleSourceData(atlas_id = atlas_id, get_response = True )
105
+ client = atlasapiclient .RequestSingleSourceData(atlas_id = atlas_id, get_response = True )
106
106
```
107
107
108
108
To extract the light curve data from the JSON:
@@ -151,9 +151,9 @@ ax.legend()
151
151
### Data for Multiple Objects
152
152
153
153
``` python
154
- from atlasapiclient import client as atlaspaiclient
154
+ from atlasapiclient import client as atlasapiclient
155
155
156
- client = RequestMultipleSourceData(atlas_ids = YOUR_LIST_OF_IDS , mjdthreshold = LOWER_MJD_THRESHOLD )
156
+ client = atlasapiclient. RequestMultipleSourceData(array_ids = YOUR_LIST_OF_IDS , mjdthreshold = LOWER_MJD_THRESHOLD )
157
157
client.chunk_get_response() # Chunks the list of IDs into a bunch of payloads and colates the responses.
158
158
```
159
159
0 commit comments