-
Notifications
You must be signed in to change notification settings - Fork 22
Refactor documentation #499
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
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
30bef1d
Refactor to get started.
JoeZiminski 30f8a2c
Add getting started section.
JoeZiminski 02f3b0c
Add datashuttle examples.
JoeZiminski 594ea13
Add example scripts.
JoeZiminski 323b250
More edits to documentation.
JoeZiminski 81f1e33
More tidying up.
JoeZiminski 46109a2
Add TUI to valiate configs.
JoeZiminski 313eec4
Add examples.
JoeZiminski 935daf7
Fix error in formatting.
JoeZiminski 8930c11
Fix wrong filenames in walkthrough.
JoeZiminski cd2d7bc
Some tidy ups, update roadmap.
JoeZiminski ce662cb
More tidying up.
JoeZiminski 86cf5a6
Fix small errors.
JoeZiminski 2237152
More small tidy ups.
JoeZiminski c829cf6
Final tidy ups for documentation.
JoeZiminski 12eaf0a
Tidy up roadmap.
JoeZiminski 4373bd6
Remove full stops from cards.
JoeZiminski ff3ec9c
Use only python part of example script.
JoeZiminski a17d646
Move 'choose a terminal' to user guides.
JoeZiminski e5df2b9
First draft on clearer get-started page.
JoeZiminski 0542d40
Link to a python install tutorial.
JoeZiminski e9ac4d5
Link to a python install tutorial.
JoeZiminski f817aea
Fix grammer on lab projects page.
JoeZiminski 06a8082
Don't capitalise all words in a title.
JoeZiminski 3eea681
Update text align.
JoeZiminski 51edce2
Add more details to index page.
JoeZiminski a2eacff
Revert changes to .css
JoeZiminski fb42c13
rework card slightly
JoeZiminski 95244d3
Fix center alignment, for header only.
JoeZiminski 25195a1
world file -> filepath.
JoeZiminski f594606
Add fixed title.
JoeZiminski 766379f
Fix title levels/
JoeZiminski 229a875
Fix name typo.
JoeZiminski 362d25e
Update install python link.
JoeZiminski 5ac9727
Make validate from path page orphan to supress warning.
JoeZiminski 2a8ed0f
Fix broken link.
JoeZiminski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,7 +46,3 @@ html[data-theme=light] { | |
height: auto; | ||
margin: 5px auto; | ||
} | ||
|
||
.center { | ||
text-align: center; | ||
} |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file modified
BIN
-1.05 MB
(3.0%)
docs/source/_static/screenshots/tutorial-1-transfer-screen-upload-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-928 KB
(3.5%)
docs/source/_static/screenshots/tutorial-1-transfer-screen-upload-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
:html_theme.sidebar_secondary.remove: | ||
|
||
# Acquisition script | ||
|
||
This script shows how Laura Schwarz (O'Keefe Lab, [Sainsbury Wellcome Centre](https://www.sainsburywellcome.org/web/)) | ||
uses ``datashuttle`` to create project folders during the acquisition of a behavioural | ||
task in mice. | ||
|
||
```python | ||
def get_file_path(): | ||
|
||
# get your project | ||
project = DataShuttle("social_sleaping") | ||
|
||
# create a prompt to enter the ID number | ||
# (which we will use to get the subject number) | ||
id_number = input("Enter ID number: ") | ||
sub = ID_DICT.get(id_number) | ||
|
||
# get your session number and create a new folder | ||
# for the session you are about to record. | ||
# the function get_next_ses() normally checks for the next session | ||
# if you are recording for a new subject you can use it as well to create | ||
# the first session folder for this subject. | ||
session = project.get_next_ses(top_level_folder="rawdata", | ||
sub=f"sub-{sub}_id-{id_number}") | ||
|
||
# create the folders | ||
created_folders = project.create_folders( | ||
top_level_folder="rawdata", | ||
sub_names=f"sub-{sub}_id-{id_number}", | ||
ses_names=f"{session}_@DATETIME@", | ||
datatype=["behav"] | ||
) | ||
# create a prompt to enter the experiment information and | ||
# conspecific ID for social experiments. | ||
# (this is only important for the video file name and might not be | ||
# relevant for you.) | ||
exp_number = input("Enter Experiment condition: ") | ||
comsp_id = input("Enter Conspecific ID: ") | ||
|
||
# print the start of your acquisition | ||
print(datetime.now()) | ||
|
||
# create the video file name | ||
file_name_video_1 = f"{exp_number}_{comsp_id}.avi" | ||
|
||
# create the path to the video file | ||
file_path1 = created_folders['behav'][0] / file_name_video_1 | ||
file_path1.touch() | ||
|
||
return file_path1 | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
:html_theme.sidebar_secondary.remove: | ||
|
||
(examples)= | ||
# Examples | ||
|
||
|
||
::::{grid} 1 1 2 2 | ||
:gutter: 4 | ||
|
||
|
||
:::{grid-item-card} {fas}`desktop;sd-text-primary` Acquisition script | ||
:link: acquisition-script | ||
:link-type: doc | ||
:class-img-top: tutorial-link-image | ||
|
||
Using ``datashuttle`` to create project folders in a behavioural-data acquisition script | ||
|
||
::: | ||
|
||
|
||
:::{grid-item-card} {fas}`desktop;sd-text-primary` Validate all projects in a lab | ||
:link: lab-project-checker | ||
:link-type: doc | ||
:class-img-top: tutorial-link-image | ||
|
||
A script used to validate every project in a lab at once | ||
|
||
::: | ||
|
||
:::: | ||
|
||
|
||
```{toctree} | ||
:maxdepth: 2 | ||
:caption: Examples | ||
:hidden: | ||
|
||
acquisition-script | ||
lab-project-checker | ||
|
||
``` |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.