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

Wb data iss1 #16

Open
wants to merge 25 commits into
base: master
Choose a base branch
from
Open

Wb data iss1 #16

wants to merge 25 commits into from

Conversation

wbarfuss
Copy link
Member

change log:

  • pymofa now uses hdf5 databases to store things
  • hande call changed
  • clean up
  • update readme
  • update tutorials

To keep in mind:
resaving can be replaced by a second computation of a new handle (see tutorial 1 for example)
==> resaving functions and tutorial 3 can be removed from my side

@wbarfuss
Copy link
Member Author

added solution to issue #17

currently running tests on cluster

Copy link
Collaborator

@jakobkolb jakobkolb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!!
I would like to see minor changes (cleanup and more extensive documentation) before merge to master.


# METHOD 0) hopefully even faster (incl. restructering of `tasks`)
# # # --- obtaining computed tasks (ct)
with SafeHDFStore(self.path_raw) as store:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs more comprehensive inline doc to be comprehensible..

rt = rt[rt["__computed"] == False]
tasks = rt.drop("__computed", axis=1)

# method 1: task dataframe
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs a cleanup before merging to master


# store results
# completed runs send thier (task, result) as return
self._obtain_store_function(n_return[0])(n_return[1])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest moving this to slave nodes, since sending large packages of data between nodes might lead to unpickling errors (in my experience). Will open issue and commit solution.


return mix_names

def _obtain_store_function(self, task):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function needs more inline documentation to be comprehensive..

@jakobkolb
Copy link
Collaborator

Also, I approve of the deletion of the resaving function and everything related to it.

…ction to the save function itself in _get_store_function() to prevent duplicate entries in computed tasks, that would lead to errors in the _get_computed_tasks() routine.

2) Changed the typecasting in the construction of the dataframe of all tasks in the _get_computed_tasks() routine to correct for weird typecasting in pandas' dataframe construction from dict.
…o wb_data_iss1

# Conflicts:
#	pymofa/experiment_handling.py
…un and supressing furter acess to database to make sure, it is closed, when the cluster finally terminates the run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants