OPM / opm-utilities

A collection of utilities of interest to the opm community

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Plot couldn't show in summaryplot

YingfangZhou opened this issue · comments

As listed below, summaryplot works fine if I want to save the plot, while the plot couldn't show. I also tested the python matplotlib, which works fine with python.
yz7609@ese-yz7609:/Downloads/OPM/opm-polymer-test-build/tests/POLY_CONC_1/output_opm_polymer$ summaryplot POLY_CONC_1.DATA WOPR:PROD01
Menu: 'q' = quit, 'r' = reload plots
Reloading plot...
yz7609@ese-yz7609:
/Downloads/OPM/opm-polymer-test-build/tests/POLY_CONC_1/output_opm_polymer$ summaryplot -d POLY_CONC_1.DATA WOPR:PROD01
Dumping plot to summaryplotdump.png and summaryplotdump.pdf
yz7609@ese-yz7609:~/Downloads/OPM/opm-polymer-test-build/tests/POLY_CONC_1/output_opm_polymer$
Many appreicated for your advices.

Best Reagards
Yingfang

Qt dependency issue? Do you see a window at all?

@YingfangZhou

Summaryplot is a binary for plot ECLIPSE summary files. This is part of ERT. Do you build ERT with python wrappers? If not I suggest you build ert-python and set the PYTHONPATH after you install ert.ERT-Python install

Summaryplot is a binary for plot ECLIPSE summary files. This is part of ERT.

There is also a summaryplot python script in opm-utilities, I assume the issue is about that one. Are those really the same utility? In that case it should be removed from this repo, as it may not be maintained to keep pace with ert. Perhaps that is the reason for the trouble?

Yes it is the same utility. Removing it from the repo would leave users without a plotting tool in OPM. I can take responsibility for updating it, but first I would like to know what the issue is about.

Are those really the same utility?

Yes.

but first I would like to know what the issue is about

I guess the issue is about ert-python.

Sorry, I believe I misunderstood. Is summaryplot shipped with ERT? If so, I agree with atgeirr, it should be removed.

@YingfangZhou summaryplot is already installed on Statoil machines, are you trying to run it at home?

Is summaryplot shipped with ERT?

Last time when I install ert-python in my own laptop, I found summaryplot was shipped, but now I have no idea. I guess @joakim-hove can give the answer.

Sorry, I guess I misunderstood the issue...

What do you mean? What did you misunderstand?

What did you misunderstand?

I misunderstood this sentence "summaryplot works fine if I want to save the plot, while the plot couldn't show." And I feel that he has trouble with ert-python...

OK:

  1. It is not really clear to me what is the problem here; but my guess is that it is something with the matplotlib backend (e.g. Qt). If it were a Python/ERT problem the script would bomb out with an exception.
  2. The summaryplot script is not distributed and maintained with ERT; however it used quite extensively internally in Statoil, and furthermore using quite basic ERT-Python functionality. I would therefor consider the risk of breakage due to ERT changes to be quite low.

The summaryplot script is not distributed and maintained with ERT

So we should keep it and maintain it here, then.

Since there is no activity on this, I assume the problem was found and solved. Closing.

As always, feel free to reopen or create a new issue if necessary.