Tolerance an optical system: sensitivity, inverse sensitivity and the keyed Monte Carlo on the tolerance rows with compensators (OP4)
curl --request POST \
--url https://api.eddy.engineer/v1/optics.tolerance \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.eddy.engineer/v1/optics.tolerance"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.eddy.engineer/v1/optics.tolerance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/optics.tolerance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/optics.tolerance"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/optics.tolerance")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/optics.tolerance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_bodyOptics
Tolerance an optical system: sensitivity, inverse sensitivity and the keyed Monte Carlo on the tolerance rows with compensators (OP4)
The same body as `/v1/solve.optics` with, on the system, `tolerances` rows [{kind (one of the 63 tolerance operands; 62 of the 63 apply — OP4 slice 1's 28 and OP4.b slice 1's 34: the surface / element / user-defined / radial decenters and tilts, the rolls about a centre of curvature by angle or TIR, the ISO 10110-5 form rows, the coating, non-sequential and multi-configuration rows, the pivot, the compensators on extra data / MCE values / NSC data; NEST refuses typed), surface, surface2 (the element's last surface, or TTHI's adjusting surface), param, min, max, value, comment}] and `tolerancing` {mode: sensitivity | inverse_limit | inverse_increment | skip_sensitivity, criterion: rms_spot | rms_wavefront | mtf_average | merit | operand, fields: y_symmetric | xy_symmetric | user, compensator: paraxial_focus | optimize | none, trials, statistics: normal | uniform | parabolic, seed, limit, increment, frequency, sampling, test_wavelength_um}. Decenters and tilts are coordinate-break pairs as the vendor inserts them (the frame restored exactly, the tilt about the first vertex); fringes at the test wavelength; TIND / TABB on a private copy of the glass. Runs the shared lifecycle synchronously (content-addressed) and answers {nominal, nominal_compensators, rss (√Σ (Δ₊² + Δ₋²)/2), estimated, evaluations, rows: per tolerance row the (inverse) min / max and the criterion at each, monte_carlo: {trials, failed, mean, std, min, max, p2 … p98}, metrics, fields (tolerance/sensitivity, tolerance/compensators, tolerance/worst_offenders, tolerance/monte_carlo)}. Deterministic: the Monte Carlo draws from a splitmix64 stream keyed by seed, trial and row. Typed refusals: OPTICS_INVALID; an operand outside slice 1 names OP4.b; an absurd run trips the ray budget. OP4.b slice 2: mode `quick_sensitivity` (the sensitivity alone with the paraxial-focus compensator), criterion `boresight` (BSER), `sampler: sobol` (the keyed Owen-scrambled Sobol sequence, one dimension per row — forks the key), NEST rows accepted as markers (63 of 63 operands), TEZI over a term range (surface2 … param, the RMS the tolerance); the analysis kinds SagTable / ISOElementDrawing / ZemaxElementDrawing / TestPlateList / QuickYield / ToleranceYield / ToleranceHistogram; `/v1/optics.nest`, `/v1/optics.tolerance_wizard`, `/v1/optics.test_plate_fit`, `/v1/optics.lockdown`.
POST
/
v1
/
optics.tolerance
Tolerance an optical system: sensitivity, inverse sensitivity and the keyed Monte Carlo on the tolerance rows with compensators (OP4)
curl --request POST \
--url https://api.eddy.engineer/v1/optics.tolerance \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.eddy.engineer/v1/optics.tolerance"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.eddy.engineer/v1/optics.tolerance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eddy.engineer/v1/optics.tolerance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.eddy.engineer/v1/optics.tolerance"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.eddy.engineer/v1/optics.tolerance")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eddy.engineer/v1/optics.tolerance")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_bodyBody
application/json
The body is of type object.
Response
toleranced