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

Implement tests & Doc fixes #84

Merged
merged 17 commits into from
Oct 24, 2024
Merged

Implement tests & Doc fixes #84

merged 17 commits into from
Oct 24, 2024

Conversation

ReneSkukies
Copy link
Member

Implements some tests and fixes the documentation a bit

@behinger can you review?

init tests with a test for the get_info function
added some more docs; fixed an issue with the docstrings of multiple functions
Copy link
Member

@behinger behinger left a comment

Choose a reason for hiding this comment

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

very nice changes!!

docs/literate/tutorials/quickstart.jl Outdated Show resolved Hide resolved
src/io.jl Outdated
lazy (Bool::false): Do not actually load the dataset into memore if true, only return a dataframe with paths

generate_Xs (Bool::true): Do not recreate the designmatrix; improves loading time.
Copy link
Member

Choose a reason for hiding this comment

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

I think here, and with all other keywords, you should put them into ` backticks, so that e.g. generate_Xs the underscore is not recognized as a "beginning of italic"

This is a todo for all docustrings

src/load.jl Outdated
specificFolder (Union{Nothing,AbstractString}::nothing): Specify a specific folder name in either derivatives or bids_root to look for data.

excludeFolder (Union{Nothing,AbstractString}::nothing): Exclude a specific folder from data detection.
Copy link
Member

Choose a reason for hiding this comment

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

inconsistency with camelCase under_score.

We kind of settled to exclude_folder rather than camelcase. This makes changes necessary pretty much everywhere and will be breaking (but not many people use it yet, so I think shold be fine)

src/load.jl Outdated

# get subject and file information
function get_info!(files_df, file)
function get_info!(files_df, file)
Copy link
Member

Choose a reason for hiding this comment

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

maybe rename to better fit it's purpose?

get/extract_subjectid or something?

@behinger
Copy link
Member

behinger commented Oct 6, 2024

I have not looked at the tests yet & havent checked the documention.

The docs preview is not yet rendered on github right? at least https://unfoldtoolbox.github.io/UnfoldBIDS.jl/previews/PR84 this doesnt exist. We do that in UnfoldSim, UnfoldMakie and maybe others. have a look at their docs/make.jl & the last command therein

@ReneSkukies
Copy link
Member Author

Everything should be addressed now

Haven't tried the docs preview yet, though.

@behinger
Copy link
Member

behinger commented Oct 7, 2024

https://unfoldtoolbox.github.io/UnfoldBIDS.jl/previews/PR84/

  • you write that you still have to load the events to data_df - maybe provide code how to do that?
  • Maybe it would be helpful to see first(data_df,2) or something

I like it! It is right now a small package, but can grow to something super useful. well done :)

ReneSkukies and others added 7 commits October 10, 2024 11:13
tests now look out for an error/ warning in run_unfold. This should give security on future breaking changes with Unfold.jl; the docfix hopefully fixes the CI issue with the Artifact
@ReneSkukies ReneSkukies merged commit 34080dc into main Oct 24, 2024
2 checks passed
@ReneSkukies ReneSkukies deleted the implement_tests branch October 24, 2024 09:00
@ReneSkukies ReneSkukies mentioned this pull request Oct 24, 2024
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.

2 participants