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

Mathadon issue172 validate experiment setup #210

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

Conversation

mwetter
Copy link
Member

@mwetter mwetter commented May 24, 2018

@tsnouidui Can you please revise this pull request and coordinate with @Mathadon

I had a brief look at it, but it needs quite some work on what I believe is your code.

  • The method _separate_mos_files not only separates the files, but also checks for tolerance. Please refactor so that the function does one thing (as its name implies).
  • The method _separate_mos_files checks for "tolerance=1" in (l.replace(" ", "")).lower() Why "1". This function seems to fail if the tolerance is 5E-8.
  • The function _validate_experiment_setup (from Thierry) is still called, it returns error messages, but these returned messages are not used anywhere. Hence, the errors detected in this function seem to be ignored.
  • The function _missing_experiment_stoptime which I believe Filip added, replicates some of the functionality of _validate_experiment_setup.

My suggestion is to refactor _validate_experiment_setup (as it contains more tests than Filip's code) and make sure it returns all errors so that the can be reported by the code that calls it. This function is also quite bloated, maybe it is easier to have it do one thing as opposed to changing the behavior depending on its argument name.

@tsnouidui
Copy link
Member

Yes I will do.

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.

3 participants