Skip to content

Wb data iss1#16

Open
wbarfuss wants to merge 25 commits into
masterfrom
wb_data_iss1
Open

Wb data iss1#16
wbarfuss wants to merge 25 commits into
masterfrom
wb_data_iss1

Conversation

@wbarfuss

Copy link
Copy Markdown
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 wbarfuss requested a review from jakobkolb October 20, 2017 13:28
@wbarfuss

Copy link
Copy Markdown
Member Author

added solution to issue #17

currently running tests on cluster

@jakobkolb jakobkolb left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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
Copy Markdown
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

Comment thread pymofa/experiment_handling.py Outdated

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

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

jakobkolb added 7 commits May 11, 2018 11:30
…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