Typed physiological archives (PR 3)#1393
Open
MaximeBICMTL wants to merge 6 commits intoaces:bids_staging_branchfrom
Open
Typed physiological archives (PR 3)#1393MaximeBICMTL wants to merge 6 commits intoaces:bids_staging_branchfrom
MaximeBICMTL wants to merge 6 commits intoaces:bids_staging_branchfrom
Conversation
c87115b to
a16f98b
Compare
321349c to
1a3a50a
Compare
1a3a50a to
64687e3
Compare
64687e3 to
9bc9202
Compare
9bc9202 to
87c29f7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Builds on #1389 (diff)
Description
Move the "create physiological file archive" and "create physiological event archive" from the untyped
Eegclass to a newlib.import_bids_dataset.archivetyped module.Bug fix
The old code contained this function, which returns a tuple with the relative and full path of the archive:
As can be seen, the relative path is relative to the
${package_path}/rawdirectory if thepackage_rawconfiguration is defined, and relative to the LORIS data directory otherwise. This is a bug, it means that the path of an archive cannot be interpreted without reading the LORIS configuration (although I am rather confident that only one of these two paths works in practice), and that changing setting/unsetting that configuration breaks all archive paths in the database.This PR makes all paths relative to the LORIS data directory, which fixes this issue and is a common practice in the LORIS database but may be a breaking change for some projects.
Details
DbPhysioFileArchive.file_pathandDbPhysioEventArchive.file_pathtoDbPhysioFileArchive.pathandDbPhysioEventArchive.path.loris_utils.archivemodule.lib.import_bids_dataset.physio_archivemodule.