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

Fixed bug in redcap2reproschema with items id not matching item filname and redcap variable… #65

Merged
merged 4 commits into from
Jul 11, 2024

Conversation

Evan8456
Copy link
Contributor

  • When running redcap2reproschema, the resulting item id's did not match the filename and the variable name on redcap.

@Evan8456 Evan8456 changed the title Fixed bug with items id not matching item filname and redcap variable… Fixed bug in redcap2reproschema with items id not matching item filname and redcap variable… Jul 11, 2024
@@ -252,18 +252,9 @@ def process_row(
add_preable=True,
):
"""Process a row of the REDCap data and generate the jsonld file for the item."""
global matrix_group_count
Copy link
Contributor

Choose a reason for hiding this comment

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

can we remove the global variable as well? i don't think this is used anywhere (please do check).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

matrix_group_count was only referenced in the chunk of code I removed, and doesn't show up anywhere else in the project. I think it is safe to remove it now.

Copy link
Contributor

Choose a reason for hiding this comment

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

@Evan8456 - there is declaration at the top of the file.

Copy link
Contributor Author

@Evan8456 Evan8456 Jul 11, 2024

Choose a reason for hiding this comment

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

Sorry, what I meant to say was that now there is no longer a use for matrix_group_count now so I think it is okay to remove the defalcation in addition to the chunk of code I removed earlier. I added a new commit removing the declaration.

Copy link
Member

Choose a reason for hiding this comment

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

@satra - re matrix_group_count I have not removed the parts related to it, since I understood that we might be using in the near future

Copy link
Contributor

Choose a reason for hiding this comment

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

this is something where we need to see an example of to see what we just removed.

@satra satra added release Ready to go! patch labels Jul 11, 2024
@satra satra merged commit 74c8a3a into ReproNim:main Jul 11, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch release Ready to go!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants