You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<emclass="property">static </em><codeclass="sig-name descname">set_default_properties</code><spanclass="sig-paren">(</span><emclass="sig-param">properties</em>, <emclass="sig-param">skip_properties</em>, <emclass="sig-param">instance</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#api.schema_validator.DefaultingValidator.set_default_properties" title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">validate</code><spanclass="sig-paren">(</span><emclass="sig-param">data_dict</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#api.schema_validator.DefaultingValidator.validate" title="Permalink to this definition">¶</a></dt>
@@ -812,7 +817,7 @@ <h2><span class="section-number">5.1.2. </span>Submodules<a class="headerlink" h
812
817
<p>Custom Serializer for responses to validate and get token requests.</p>
<codeclass="sig-name descname">get_config</code><spanclass="sig-paren">(</span><emclass="sig-param">token</em><spanclass="sig-paren">)</span> → dict<aclass="headerlink" href="#api.serializers.TokenSerializer.get_config" title="Permalink to this definition">¶</a></dt>
820
+
<codeclass="sig-name descname">get_config</code><spanclass="sig-paren">(</span><emclass="sig-param">token</em><spanclass="sig-paren">)</span> → Optional[dict]<aclass="headerlink" href="#api.serializers.TokenSerializer.get_config" title="Permalink to this definition">¶</a></dt>
816
821
<dd><p>Return the config file.
817
822
If the ‘no_config’ flag is present in the url of the original request, then the file is not read and the return value is None</p>
818
823
<dlclass="simple">
@@ -1261,6 +1266,50 @@ <h2><span class="section-number">5.1.2. </span>Submodules<a class="headerlink" h
1261
1266
</dl>
1262
1267
</dd></dl>
1263
1268
1269
+
<dlclass="function">
1270
+
<dtid="api.views.query_efd">
1271
+
<codeclass="sig-prename descclassname">api.views.</code><codeclass="sig-name descname">query_efd</code><spanclass="sig-paren">(</span><emclass="sig-param">self</em>, <emclass="sig-param">request</em>, <emclass="sig-param">*args</em>, <emclass="sig-param">**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#api.views.query_efd" title="Permalink to this definition">¶</a></dt>
1272
+
<dd><p>Queries data from an EFD timeseries by redirecting the request to the Commander</p>
<dt>args: list</dt><dd><p>List of addittional arguments. Currently unused</p>
1277
+
</dd>
1278
+
<dt>kwargs: dict</dt><dd><dl>
1279
+
<dt>Dictionary with request arguments. Request should contain the following:</dt><dd><p>start_date (required): String specifying the start of the query range. Default current date minus 10 minutes
1280
+
timewindow (required): Int specifying the number of minutes to query starting from start_date. Default 10
<dt>args: list</dt><dd><p>List of addittional arguments. Currently unused</p>
1380
+
</dd>
1381
+
<dt>kwargs: dict</dt><dd><dl>
1382
+
<dt>Dictionary with request arguments. Request should contain the following:</dt><dd><p>command_name (required): The name of the command to be run. It should be a field of the lsst.ts.observatory.control.auxtel.ATCS class
1383
+
params (required): Parameters to be passed to the command method, e.g.</p>
1384
+
<blockquote>
1385
+
<div><dlclass="simple">
1386
+
<dt>{</dt><dd><p>ra: 80,
1387
+
dec: 30,</p>
1388
+
</dd>
1389
+
</dl>
1390
+
<p>}</p>
1391
+
</div></blockquote>
1392
+
</dd>
1393
+
</dl>
1394
+
</dd>
1395
+
</dl>
1396
+
<dlclass="field-list simple">
1397
+
<dtclass="field-odd">Returns</dt>
1398
+
<ddclass="field-odd"><p>The response and status code of the request to the LOVE-Commander</p>
1399
+
</dd>
1400
+
<dtclass="field-even">Return type</dt>
1401
+
<ddclass="field-even"><p>Response</p>
1402
+
</dd>
1403
+
</dl>
1404
+
</dd></dl>
1405
+
1323
1406
<dlclass="function">
1324
1407
<dtid="api.views.validate_config_schema">
1325
1408
<codeclass="sig-prename descclassname">api.views.</code><codeclass="sig-name descname">validate_config_schema</code><spanclass="sig-paren">(</span><emclass="sig-param">self</em>, <emclass="sig-param">request</em>, <emclass="sig-param">*args</em>, <emclass="sig-param">**kwargs</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#api.views.validate_config_schema" title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">api.tests.test_commander.</code><codeclass="sig-name descname">EFDTestCase</code><spanclass="sig-paren">(</span><emclass="sig-param">methodName='runTest'</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#api.tests.test_commander.EFDTestCase" title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">maxDiff</code><emclass="property"> = None</em><aclass="headerlink" href="#api.tests.test_commander.EFDTestCase.maxDiff" title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">setUp</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#api.tests.test_commander.EFDTestCase.setUp" title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_timeseries_query</code><spanclass="sig-paren">(</span><emclass="sig-param">mock_requests</em>, <emclass="sig-param">mock_environ</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#api.tests.test_commander.EFDTestCase.test_timeseries_query" title="Permalink to this definition">¶</a></dt>
237
+
<dd><p>Test authorized user can query and get a timeseries</p>
238
+
</dd></dl>
239
+
240
+
</dd></dl>
241
+
219
242
<dlclass="class">
220
243
<dtid="api.tests.test_commander.SalinfoTestCase">
221
244
<emclass="property">class </em><codeclass="sig-prename descclassname">api.tests.test_commander.</code><codeclass="sig-name descname">SalinfoTestCase</code><spanclass="sig-paren">(</span><emclass="sig-param">methodName='runTest'</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#api.tests.test_commander.SalinfoTestCase" title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">api.tests.test_commander.</code><codeclass="sig-name descname">TCSTestCase</code><spanclass="sig-paren">(</span><emclass="sig-param">methodName='runTest'</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#api.tests.test_commander.TCSTestCase" title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">maxDiff</code><emclass="property"> = None</em><aclass="headerlink" href="#api.tests.test_commander.TCSTestCase.maxDiff" title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">setUp</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink" href="#api.tests.test_commander.TCSTestCase.setUp" title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_command_query</code><spanclass="sig-paren">(</span><emclass="sig-param">mock_requests</em>, <emclass="sig-param">mock_environ</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#api.tests.test_commander.TCSTestCase.test_command_query" title="Permalink to this definition">¶</a></dt>
307
+
<dd><p>Test authorized user can send a TCS command</p>
<spanid="api-tests-test-lovecsc-module"></span><h2><spanclass="section-number">5.1.1.1.3. </span>api.tests.test_lovecsc module<aclass="headerlink" href="#module-api.tests.test_lovecsc" title="Permalink to this headline">¶</a></h2>
<codeclass="sig-prename descclassname">api.tests.tests_configfile.</code><codeclass="sig-name descname">setUp</code><spanclass="sig-paren">(</span><emclass="sig-param">self</em><spanclass="sig-paren">)</span><aclass="headerlink" href="#api.tests.tests_configfile.setUp" title="Permalink to this definition">¶</a></dt>
<spanid="api-tests-tests-emergencycontact-module"></span><h2><spanclass="section-number">5.1.1.1.7. </span>api.tests.tests_emergencycontact module<aclass="headerlink" href="#module-api.tests.tests_emergencycontact" title="Permalink to this headline">¶</a></h2>
0 commit comments