INT-NIT / BEP032tools

Software tools supporting the BIDS Extension Proposal (BEP) dedicated to adding support for electrophysiological data recorded in animal models (BEP032)
MIT License
3 stars 8 forks source link

First draft to change ando #59

Closed Slowblitz closed 3 years ago

Slowblitz commented 3 years ago

I've made some changes on how the AnDO works now it checks filenames only. There are still some changes to do in the generator tools and his related test. Now the dataset must contain this 3 files :

Here's an example of a dataset : image

SylvainTakerkart commented 3 years ago

Hi!

As we just discussed, two major things need to be changed from what you describe:

  1. no check should be performed on the session id

  2. the check on the directories and files should be performed in two steps: a. check the names of the directories (using the same algo as in the previous AnDO specs) b. then, check the names of the files

Slowblitz commented 3 years ago

So now the ando is working as we discuss in 2 steps first it checks the folder structure and then the filenames, I have also added some test , and worked on the structure of the project. There is still some work to do on the generator tools and the documentation

SylvainTakerkart commented 3 years ago

thanks, I will test and review before 3:30pm... you can switch to the development of the Generator until then ;)

SylvainTakerkart commented 3 years ago

[I removed my previous comment, I'd made a mistake; here is some new feedback]

when I run the checker on dataset004, I get several errors:

1.

` Level 3 error [session folder] at : ses-20200101_001_rap It should follow the ses-YYYYMMDD_XXX_BBBB format, where:

This seems to be an old error message that should not be there anymore...

2. ` Level 3 error [Ephys folder] at : ses-20200101_001_pop Ephys folder is missing or does not follow the AnDO specification rules:

I think it should be Level 4 and not Level 3...

SylvainTakerkart commented 3 years ago

Hi! There are a lot of things to correct in the code, a bit everywhere, so that it would look nice... But maybe you can do this later... First, @Slowblitz , can you make it work as it should (i.e correct for what I said in my previous comment)?

@JuliaSprenger WDYT?

SylvainTakerkart commented 3 years ago

OK, after having been in the code for a bit of time now, let me try to make a checklist of what's do be done for this PR... At this point, I might have missed some things...

TODO list

SylvainTakerkart commented 3 years ago

Not ready for reviewing yet... I will let you know!

SylvainTakerkart commented 3 years ago

OK, I'm starting to understand how the code works, but I think there are several mistakes which make it to complicated for me to fix it... I will focus on adding datasets to test the new errors (this should be my next commit), which can serve as a basis to test the corrections to be made in the code...

JuliaSprenger commented 3 years ago

I think we can close this PR as it an alternative proposal was merged with #63