UT-CHG / BET

Python package for data-consistent stochastic inverse and forward problems.
http://ut-chg.github.io/BET
Other
11 stars 21 forks source link

May 19 Meeting #377

Open smattis opened 4 years ago

smattis commented 4 years ago
eecsu commented 4 years ago

Some notes on examples running the v3-dev branch of BET. Will create a separate example discussing documentation.

First, some general notes:

Now, some specific notes/issues.

eecsu commented 4 years ago

This is about documentation.

smattis commented 4 years ago

The plotDomains3D.py example spits out the following UserWarning...

This warning is highly sensitive to your matplotlib version number. It doesn't seem to affect the output at all if triangles is set with newer versions, but with older ones it is required. I think we should keep it to be safe.

smattis commented 4 years ago

nonlinearMapUniformSampling.py gives same plot warning as plotDomains3d.py mentioned above.

Same as above.

smattis commented 4 years ago

Running make html gives the following error

The rtd (Read the Docs) theme is very standard. I think they removed all of the themes from the sphinx build because of the overhead of having like 30 themes.

mathematicalmichael commented 4 years ago

The plotDomains3D.py example spits out the following UserWarning...

This warning is highly sensitive to your matplotlib version number. It doesn't seem to affect the output at all if triangles is set with newer versions, but with older ones it is required. I think we should keep it to be safe.

@eecsu just a reminder that pip install . will enforce version dependencies in ways that python setup.py install will not.

eecsu commented 4 years ago

I have matlpotlib version 3.0.2, which is pretty new.

I am wondering if the tricontourf calls in plotDomains.py where this occurs in the show_data_domain_2D function is causing this because the keyword argument occurs out of order? Basically, x and y data should be the first two arguments, which they are, but then the triangles argument is supposed to be the third argument from what I can tell in the documentation dating back to several versions of matplotlib. We pass an array of zeros, which I think it interprets as the "Z" values that are not keyworded, but are supposed to occur after the triangles argument according to the documentation. If it first sees x and y data, but not triangles, then it actually calls the triangulation function, which is not efficient since we call it outside of this plot function.

It appears to me that changing the tricontourf call to this:

plt.tricontourf(data_obj.get_values()[:, 0], data_obj.get_values()[:, 1], triangles, np.zeros((data_obj.get_values().shape[0],)), colors='grey')

will remove this warning by placing the triangles object in the right location of the plot call. I think this should work for all versions of matplotlib.

smattis commented 4 years ago

Running make html gives the following error

I added extra information in the Readme

smattis commented 4 years ago

this is a note about LUQ, but is based on running the selkov.py example. I think we should have some sort of "verbose" flag option for running LUQ that generates all the outputs we currently see. This is useful when we are debugging and testing things out. If it is not set, then the knot output info associated with the optimal splines should be logged but not printed (maybe just print out to screen every 10th or 100th spline that is completed so the user knows there is progress)

See https://github.com/CU-Denver-UQ/LUQ/issues/6