Skip to content
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

Merged
merged 5 commits into from
Nov 30, 2015

Conversation

unoebauer
Copy link
Contributor

  • 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
Copy link
Member

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).

Copy link
Contributor Author

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

@wkerzendorf
Copy link
Member

thanks!

@unoebauer
Copy link
Contributor Author

Looking at a simple tardis_example run, the model instance with is returned by run_tardis is still lacking:

  • last_line_interaction_in_id
  • last_line_interaction_out_id
  • last_line_interaction_shell_id
  • last_line_interaction_angstrom

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.

@unoebauer
Copy link
Contributor Author

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)

@unoebauer
Copy link
Contributor Author

While running the gui, it emerged that the model is missing the following attributes:

  • converged
  • iteration_executed
  • iteration_max_requested
  • current_no_of_packets
  • no_of_packets
  • no_of_virtual_packets

@unoebauer unoebauer closed this Nov 27, 2015
@unoebauer unoebauer reopened this Nov 27, 2015
@unoebauer
Copy link
Contributor Author

With the latest commit, the gui is running again.

@unoebauer
Copy link
Contributor Author

Added tests for tests for runner and model attributes. Worked offline - let's see if Travis is happy...

@unoebauer
Copy link
Contributor Author

Can somebody have a proper look at this, @wkerzendorf? I'd say we are ready to merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants