Advanced

Settings and Logs

Interface preferences, performance limits, log visualization, and pre-run warnings

This chapter covers three groups of functionality: the Settings page for interface behavior and frontend protection limits; the Logs page for tracking calculation, sweep, and optimization execution; and the pre-run warning dialogs that intercept invalid configurations or overloaded tasks when clicking Run / Sweep / Optimize.

Settings Page

The Settings page is divided into interface preferences, performance limits, and reset. All settings are automatically persisted to browser localStorage.

Interface Settings

ItemOptionsDefaultDescription
LanguageEnglish / 中文EnglishSwitch UI copy; also affects documentation entry language
AppearanceSystem / Light / DarkSystemSystem follows the operating system dark mode state
TooltipsToggleEnabledControl whether field descriptions appear on hover
Local Auto SaveToggle (Beta)EnabledAutomatically save the current model to browser local storage; disabling requires confirmation and clears the saved local draft
Local Auto Save is marked Beta. It is useful for loss protection, but should not replace explicit case export and version tracking.

Performance Settings

ItemUI RangeDefaultDirect Effect
Concurrent Requests1 ~ 324Parallel request count for Sweep and Optimizer
Max Sweep Combinations1,000 ~ 10,0004,000Blocks sweep submission when exceeded
Max Calculation Data Points100,000 ~ 20,000,0002,000,000Limits total result data points for one run (all sweep requests combined)
Maximum Data Points per Request100,000 ~ 1,000,0001,000,000Limits result data points for each individual request in a sweep run. Hard cap is 1,000,000

The performance settings exist to prevent the frontend from becoming overloaded by large sweeps or oversized result sets:

  1. They control what the frontend is allowed to submit and render.
  2. They do not modify the governing equations of a single Run.
  3. If a task is blocked, reduce parameter range, increase wavelength step, or reduce depth sampling before raising the limits.
Maximum Data Points per Request has a hard cap of 1,000,000 defined by the system constant MAX_SINGLE_REQUEST_DATA_POINTS and cannot be exceeded in Settings. Max Calculation Data Points has a hard cap of 20,000,000.

Reset

Click the Reset button to restore all settings to their defaults. A confirmation dialog is required; the action cannot be undone.


Logs Page

Logs is an execution monitor for tracking the run process, diagnosing failures, and assessing task scale.

Toolbar

ElementFunction
Log count badgeDisplays the total number of log entries
Latest status indicatorShows the status icon and text of the most recent log
Timeline / Matrix toggleSelect visualization mode; deselect both to collapse the visualization panel
Top / Bottom buttonsScroll to the top or bottom of the log list
Export dropdownExport logs as JSON or CSV
Clear buttonClear all logs (requires confirmation)

Timeline Visualization

The Timeline view displays the execution process of the latest task on a time axis.

ComponentDescription
Time axisTop row with time grid markers; time range is computed automatically
Prep rowShows a summary bar for preparation phases (RI Check, Structure Prep, RI Inject, Dispatch)
Core lanesOne row per concurrent core, showing request execution bars
Status dotsGreen (success), red (error), orange (terminated), blue blinking (running), gray (idle)

For optimization tasks, the Timeline uses fallback bars instead of per-request display. Each lane represents a Grid row or a Seed row.

Matrix Visualization

The Matrix view displays request status distribution as a grid.

Standard mode (Run / Sweep)

ComponentDescription
Summary barCloud Compute Cores, Active / Idle Cores, Completed / Total Requests, Data Points
Prep rowRI Check, Structure Prep, RI Inject, Dispatch phase cells
Request gridOne cell per request, filled row by row; cell size shrinks automatically with total request count

Optimization mode

ComponentDescription
Summary barCompleted Grid Points / Total Grid Points, Completed Seeds / Total Seeds
Prep rowSame as standard mode
Grid rowShows grid search progress (when enabled)
Seed rowsOne row per seed, showing local optimization progress

Cell colors

ColorStatus
Blue (pulse animation)Running / pending
GreenSuccess
RedError
OrangeTerminated
GrayIdle / not started

Log Entries

Each log entry records one calculation, sweep, or optimization task.

FieldMeaning
Status icon and textrunning / success / error / terminated
TimestampTask creation time
Data Points tagTotal result data points
Total Requests tagTotal request count
Cloud Compute Cores tagConcurrent core count
Sweep Items / Sweep ParametersSweep metadata (combination count, parameter labels)
DurationTask runtime
Inline phase eventsReal-time Prep and Compute phase events shown while running
Expandable detailsPhase events and error details available after completion

Log entries have a colored left border: blue (running), green (success), red (error), orange (terminated).

Log Export

FormatContentBest Use Case
JSONFull structured log payloadPreserve complete context for debugging
CSVFlattened log tableCount runs, durations, and status distribution

Log export captures the execution process, not the optical result data.


Pre-Run Warnings

When clicking Run / Sweep / Optimize, the system performs pre-checks. The following dialogs may appear depending on the results.

Validation Dialog

When the model has validation errors, a Cannot Run dialog appears.

ElementDescription
TitleContext-specific message ("Fix the issues below before running / starting Sweep / starting the optimizer")
Issue listTable listing all issues: location (Structure / Optics / Sweep / Optimizer), key, and error message
Click on entryNavigates to the page where the issue is located
Go to First Issue buttonJumps to the page of the first issue

For optimization tasks, additional checks verify that at least one objective is enabled and at least one variable is checked.

Sweep Combination Limit Exceeded

When sweep parameter combinations exceed the Max Sweep Combinations setting, a Too Many Sweep Combinations dialog appears.

ElementDescription
Current combinationsThe computed combination count
Settings limitThe configured upper limit from Settings
Go to Sweep buttonNavigate to the Sweep page to reduce combinations

Compute Load Warning

Appears when the TMM solve count for a single request exceeds the solver core capacity (MAX_SINGLE_REQUEST_TMM_SOLVE_COUNT = 50,000).

ElementDescription
Capacity exceeded bannerRed message indicating the computation load exceeds TMM solver core capacity
TMM Solve Count per Request panelShows Current value and Limit value
Main ContributorsLists primary factors (e.g., "wavelength 101 x polarization 2 x cone-angle rays 7 = 1,414")
SuggestionsRecommended actions: reduce wavelength range, increase wavelength step, reduce cone-angle sampling, lower dispersion quality, disable unneeded depth detectors
The TMM solve count limit is a system safety guard and is not user-adjustable in Settings. It targets actual computation load rather than frontend rendering volume. For example, enabling cone angle significantly multiplies the solve count for intensity detectors, even when the returned result point count is modest.

Result Data Volume Warning

Appears when total data points or per-request data points exceed limits.

ElementDescription
Warning bannerYellow warning for soft limit, red error for hard limit
Request CountTotal request count (shown for sweep runs)
Total Result Data Points panelShows Current, Settings Limit, and Hard Limit values
Result Data Points per Request panelShows Current, Settings Limit, and Hard Limit values
Peak request summaryIdentifies the sweep parameter combination with the highest data volume
SuggestionsRecommended actions to reduce data volume
Open Settings buttonNavigate to Settings to adjust limits

Soft limit vs. hard limit

CategoryConditionBehavior
Soft limit (Settings limit)Exceeds the Settings threshold but stays under the hard capContinue button is enabled; the user can choose to proceed
Hard limitExceeds the system hard cap (per-request 1,000,000 / total 20,000,000)Continue button is disabled; parameters must be reduced first

Troubleshooting Sequence

When a run does not produce the expected result, follow this order:

  1. Check the latest Logs entry status and message to confirm the task type.
  2. Review Data Points / Total Requests / Cloud Compute Cores to determine whether the failure is scale-related.
  3. If the status is error, expand details and read the failure message.
  4. If a pre-run warning dialog appeared, use the dialog content to locate the problem source.
  5. Return to Structure, Optics, Sweep, or Optimizer to correct the model or parameters.
Copyright © 2026 Dreapex