-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests #37
Add tests #37
Conversation
My suggestion for testing storeinput is to add an element, use writemodel to write the model and then read it back in. The resulting model should be the same. |
Am I correct that the from timml import *
ml = ModelMaq()
uf = Uflow(ml, slope=0.001, angle=150)
ml.inputvalues
{'self': <timml.model.ModelMaq at 0x7f1cc7e457f0>,
'kaq': 1,
'z': [1, 0],
'c': [],
'npor': 0.3,
'topboundary': 'conf',
'hstar': None,
'f2py': False} I would have expected the Should methods be added to write and read a model from a file? |
You are right, I never copied the Needs further testing, but the following basic example works:
After that, the file |
Okay, thanks. I'll take a look at it. |
@jentjr on a related topic, can you remove the timml readthedocs page that you created? We will then add the new readthedocs page for timml similar to the new ttim readthedocs page. But now the name is already taken by the readthedocs page you created. |
I removed the timml readthedocs page I created. |
Thanks, @jentjr. The new template for readthedocs is now online. We will start populating it with content in the next few months. |
This PR is a bit stale by now. If you still have tests that are worthwhile for TimML, then I suggest you start a new PR and I will close this one. Adding more and better tests is definitely something we need. |
Working on adding some tests for #33.