Skip to content

Conversation

@sifaoufatai
Copy link
Contributor

Implement merging process for subforms and group field extraction method

  • Added a method to merge subforms into a unified structure.
  • Implemented functionality to extract a group field from one form and include it in another form.
  • Enhanced modularity and reusability of form handling processes.

@pep8speaks
Copy link

pep8speaks commented Jan 14, 2025

Hello @sifaoufatai! Thanks for updating this PR.

Line 41:101: E501 line too long (102 > 100 characters)
Line 55:101: E501 line too long (194 > 100 characters)

Line 3:1: E302 expected 2 blank lines, found 1
Line 38:101: E501 line too long (102 > 100 characters)

Line 9:1: E302 expected 2 blank lines, found 1

Line 27:101: E501 line too long (104 > 100 characters)

Line 285:1: W293 blank line contains whitespace

Line 9:101: E501 line too long (118 > 100 characters)
Line 16:101: E501 line too long (105 > 100 characters)

Line 105:101: E501 line too long (114 > 100 characters)

Comment last updated at 2025-01-23 10:18:07 UTC

@SylvainTakerkart SylvainTakerkart self-requested a review January 30, 2025 14:51
@SylvainTakerkart SylvainTakerkart self-assigned this Jan 30, 2025
Copy link
Collaborator

@SylvainTakerkart SylvainTakerkart left a comment

Choose a reason for hiding this comment

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

Hi! Here is my general comment: the code looks nice, but I have suggestions / questions on the naming of several classes.... Thanks to answer all the comments with corresponding commits, so that I can easily re-review after your changes!

return data_types_data


class DataTypes:
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not call this class BidsDataType? this would be more explicit...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it is not useful to rename it because we don't use this code anymore. We are coding through the bep32toolss repository.

Copy link
Collaborator

Choose a reason for hiding this comment

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

so you should remove this code!
this is why I created an issue: #108
can you please list in this issue what you think should be removed from the DigLabTools repo?

Copy link
Collaborator

Choose a reason for hiding this comment

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

a general comment on this file and all the others concerning the schema: the BIDS Schema is available online, I don't think it's a good idea to include it in this repo!!!

Copy link
Collaborator

Choose a reason for hiding this comment

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

please list this (the schema) in the issue I created about cleaning the repo!

)

# Arguments for extracting
parser.add_argument("--jsonfile_extract", help="The JSON file path for extraction.", type=str)
Copy link
Collaborator

Choose a reason for hiding this comment

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

same as with the Merger, there should be a version of the options with only one dash and on letter (for example: -j)

),
formatter_class=argparse.RawDescriptionHelpFormatter
)
parser.add_argument("--sorted_list_input_files", nargs="+", help="List of JSON files to merge", type=str,
Copy link
Collaborator

Choose a reason for hiding this comment

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

as I told you, there should be options with one dash and one letter, for example -s

Copy link
Collaborator

Choose a reason for hiding this comment

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

this can be done later... please create an issue on the repo to remember that you have to do this later!

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm waiting for you to create this issue before we can merge this PR (so that we don't forget!!!)

`Added short options (-letter) for long options (--words) to improve usability`
@SylvainTakerkart SylvainTakerkart merged commit f7b31b3 into INT-NIT:main Feb 17, 2025
2 checks passed
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