cosapp.tools.problem_viewer.problem_viewer

Functions

view_model(problem_or_filename[, outfile, ...])

Generates an HTML file containing a tree viewer.

cosapp.tools.problem_viewer.problem_viewer.view_model(problem_or_filename, outfile='n2.html', show_browser=True, embeddable=False, draw_potential_connections=False, include_orphan_vars=True) None[source]

Generates an HTML file containing a tree viewer. Optionally pops up a web browser to view the file.

Parameters:
  • problem_or_filename (A System) – System : The System for the desired tree.

  • outfile (str, optional) – The name of the final output file

  • show_browser (bool, optional) – If True, pop up the system default web browser to view the generated html file. Defaults to True.

  • embeddable (bool, optional) – If True, gives a single HTML file that doesn’t have the <html>, <DOCTYPE>, <body> and <head> tags. If False, gives a single, standalone HTML file for viewing.

  • draw_potential_connections (bool, optional) – If true, allows connections to be drawn on the N2 that do not currently exist in the model. Defaults to True.

  • include_orphan_vars (bool, optional)

  • True (If)

  • True. (display inwards and outwards on the N2 diagram. Defaults to)