u-anurag / OpenSeesPy

OpenSeesPy-Visualization: This branch is to work on Plotting commands to Python-based visualization of OpenSees models.
https://openseespydoc.readthedocs.io/en/latest/src/Plotting_Development_Guide.html
5 stars 2 forks source link

Create Tests for Plot Functions #6

Closed cslotboom closed 4 years ago

cslotboom commented 4 years ago

It would be useful to have a set of test cases that can be used to ensure the plot functions are working correctly. I have some that I can contribute.

u-anurag commented 4 years ago

I have models for 2D and 3D beam-column elements, 2D and 3D four-node shell elements, and 3D brick elements that I used to test plotting functions. I'll create a folder and put all the test examples tonight.

u-anurag commented 4 years ago

I have added some test examples that I always use to test any changes or addition to plotting functions. I don't have an example for Tri elements yet. If you use them to test animation, add a pushover or time-history analysis to these examples if it is not there already.

cslotboom commented 4 years ago

One thing to consider is using Pytest for the plot functions. I have included a few tests that are pytest compatible in a branch I will merge relatively soon.

u-anurag commented 4 years ago

OK. That sounds good.