Skip to content
Open
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3503808
{Search for wildcards function updated}
Diya910 Apr 13, 2025
054a98b
Refactoring changes asked by the maintainer which include centralisat…
Diya910 Jun 15, 2025
69699d9
Fabrication of the code moved functions in folders.py
Diya910 Jul 2, 2025
15f8a3c
Update datashuttle/utils/folders.py
Diya910 Jul 4, 2025
8104024
Update datashuttle/utils/folders.py
Diya910 Jul 4, 2025
8a2cbbd
Update datashuttle/utils/folders.py
Diya910 Jul 4, 2025
a44cb61
Update datashuttle/utils/folders.py
Diya910 Jul 4, 2025
f9a21b4
Update datashuttle/utils/validation.py
Diya910 Jul 4, 2025
bd12cd6
Refactor: Clean up docstrings in folders.py and canonical_tags.py as …
Diya910 Jul 4, 2025
e0d2441
Merge branch 'date_feature' of https://github.com/Diya910/datashuttle…
Diya910 Jul 4, 2025
cc5f253
Merge remote-tracking branch 'upstream/main' into date_feature
JoeZiminski Jul 30, 2025
d1ede1d
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Jul 30, 2025
399b402
Fix linting.
JoeZiminski Jul 30, 2025
d318fb5
Merge branch 'date_feature' of https://github.com/Diya910/datashuttle…
JoeZiminski Jul 30, 2025
ac95503
Properly ignore mypy on tests.
JoeZiminski Jul 31, 2025
f70b6ff
Merge branch 'neuroinformatics-unit:main' into date_feature
Diya910 Aug 12, 2025
9391982
Updated test cases to use basemodel and also added more test cases to…
Diya910 Aug 14, 2025
23679eb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 14, 2025
2e3bcd7
Update datashuttle/utils/folders.py
Diya910 Aug 26, 2025
d4c7187
Merge remote-tracking branch 'upstream/main' into date_feature
JoeZiminski Sep 2, 2025
e2940b2
Cover DATETO etc. cases in check_and_format_names so they are not val…
JoeZiminski Sep 9, 2025
407afe5
Merge branch 'neuroinformatics-unit:main' into date_feature
Diya910 Sep 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions datashuttle/configs/canonical_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,24 @@ def tags(tag_name: str) -> str:
"datetime": "@DATETIME@",
"to": "@TO@",
"*": "@*@",
"DATETO": "@DATETO@",
"TIMETO": "@TIMETO@",
"DATETIMETO": "@DATETIMETO@",
}
return tags[tag_name]


def get_datetime_formats() -> dict:
"""Get all datetime format strings.

Returns
-------
dict
A dictionary containing format strings for datetime, time, and date

"""
return {
"datetime": "%Y%m%dT%H%M%S",
"time": "%H%M%S",
"date": "%Y%m%d",
}
2 changes: 1 addition & 1 deletion datashuttle/utils/data_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ def get_processed_names(
processed_names = formatting.check_and_format_names(
names_checked, prefix
)
processed_names = folders.search_for_wildcards(
processed_names = folders.search_with_tags(
self.__cfg,
self.__base_folder,
self.__local_or_central,
Expand Down
Loading