visit-dav / visit

VisIt - Visualization and Data Analysis for Mesh-based Scientific Data
https://visit.llnl.gov
BSD 3-Clause "New" or "Revised" License
429 stars 111 forks source link

Can't get file open options in CLI mode without running the mdserver #19664

Open JustinPrivitera opened 2 months ago

JustinPrivitera commented 2 months ago

Related to #1053

In CLI mode, I need to do this:

OpenMDServer()
plainTextOpenOptions = GetDefaultFileOpenOptions("PlainText")

Otherwise I see this

Traceback (most recent call last):
  File "script_a.py", line 4, in <module>
    plainTextOpenOptions = GetDefaultFileOpenOptions("PlainText")
visit.VisItException: "PlainText" is not a valid plugin type.  Make sure the Metadata Server is running.
biagas commented 2 months ago

There is a brief comment in the Read options via cli section, and in the example for the GetDefaultFileOpenOptions function.

JustinPrivitera commented 2 months ago

Why must it be that way?

JustinPrivitera commented 2 months ago

If we don't change this, then we should fix the example here to reflect this as well.

cyrush commented 1 month ago

GetDefaultFileOpenOptions() should open MDServer if its not already available (just like https://github.com/visit-dav/visit/issues/1053)