Skip to content

Get cost of a mode solver simulation #1883

Answered by momchil-flex
samuelkim16 asked this question in Q&A
Discussion options

You must be logged in to vote

@samuelkim16 our mode solver is still using some legacy handling including a web api that is separate from our other solvers, and some things unfortunately don't work (well). It is currently being rewritten to unify with the rest of the code (fyi @caseyflex ).

In the meantime, I found a way to get the real cost of a mode solver task after it has been completed, if you know the task_id and solver_id (printed when the task is submitted):

from tidy3d.web.api.mode import ModeSolverTask
task = ModeSolverTask.get(task_id=task_id, solver_id=solver_id)
print(task.real_flex_unit)

Or to do this even more directly without having to re-download the data file,

from tidy3d.web.core.http_util import ht…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@samuelkim16
Comment options

@caseyflex
Comment options

Answer selected by samuelkim16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants