-
-
Notifications
You must be signed in to change notification settings - Fork 410
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
started addressing issue #436 #440
started addressing issue #436 #440
Conversation
unoebauer
commented
Nov 27, 2015
- Currently, only the runner is passed back to the model in the legacy mode
- Todo: set remaining packet diagnostic arrays
- the runner has be accessible from inside the model
- set remaining packet diagnostic arrays
- model.to_hdf5 has to work
- the tardis gui has to work
- add tests
|
||
#pass the runner to the model | ||
model.runner = self.runner | ||
#TODO: pass packet diagnostic arrays |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the diagnostic arrays are bound to the runner (at least they should be).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True - but to have full legacy suppport, the model should have some of these arrays (with the appropriate cuts) directly, see my comment below
thanks! |
Looking at a simple tardis_example run, the model instance with is returned by run_tardis is still lacking:
This list is based on a quick inspection of include_from_model_in_hdf5 in model.py. One should also check the gui to make sure that nothing else is missing. I'll take a look at that and will also add back the missing packet arrays. |
After last commit, the to_hdf5 routine works again. Only irritating issue is the following warning that pops up: mdl.to_hdf5("test.hdf5")
tardis.model - INFO - Writing to path
py.warnings - WARNING - /home/ulrich/python-virtualenv/tardis/lib/python2.7/site-packages/pandas/io/pytables.py:2577: PerformanceWarning:
your performance may suffer as PyTables will pickle object types that it cannot
map directly to c-types [inferred_type->mixed,key->values] [items->None]
warnings.warn(ws, PerformanceWarning) |
While running the gui, it emerged that the model is missing the following attributes:
|
With the latest commit, the gui is running again. |
…s about vpacket logging
Added tests for tests for runner and model attributes. Worked offline - let's see if Travis is happy... |
Can somebody have a proper look at this, @wkerzendorf? I'd say we are ready to merge |
started addressing issue #436