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

Skip test subjects in job creator #885

Merged
merged 2 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# IBL Python Libraries
[![Coverage badge](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fibllib.hooks.internationalbrainlab.org%2Fcoverage%2Fibllib%2Fmaster)](https://ibllib.hooks.internationalbrainlab.org/coverage/master)
# IBL Python Libraries
[![Coverage badge](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fibllib.hooks.internationalbrainlab.org%2Fcoverage%2Fibllib%2Fmaster)](https://ibllib.hooks.internationalbrainlab.org/coverage/master)
[![Tests status badge](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fibllib.hooks.internationalbrainlab.org%2Ftests%2Fibllib%2Fmaster)](https://ibllib.hooks.internationalbrainlab.org/logs/records/master)
[![Tests status badge](https://img.shields.io/endpoint?label=develop&url=https%3A%2F%2Fibllib.hooks.internationalbrainlab.org%2Ftests%2Fibllib%2Fdevelop)](https://ibllib.hooks.internationalbrainlab.org/logs/records/develop)

Expand All @@ -14,7 +14,7 @@ The library is currently 2 main modules:
## Requirements
**OS**: Only tested on Linux. Windows and Mac may work, but are not supported.

**Python Module**: Python 3.8 or higher
**Python Module**: Python 3.10 or higher

## Installation, documentation and examples
https://docs.internationalbrainlab.org
Expand All @@ -23,7 +23,7 @@ https://docs.internationalbrainlab.org
## Contribution and development practices
See https://int-brain-lab.github.io/iblenv/07_contribution.html

We use gitflow and Semantic Versioning.
We use Semantic Versioning.

Before committing to your branch:
- run tests
Expand Down
8 changes: 7 additions & 1 deletion ibllib/pipes/local_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
from one.api import ONE
from one.webclient import AlyxClient
from one.remote.globus import get_lab_from_endpoint_id, get_local_endpoint_id
from one.alf.spec import is_session_path
from one.alf.path import session_path_parts

from ibllib import __version__ as ibllib_version
from ibllib.pipes import tasks
Expand Down Expand Up @@ -104,11 +106,15 @@ def job_creator(root_path, one=None, dry=False, rerun=False):
if not one:
one = ONE(cache_rest=None)
rc = IBLRegistrationClient(one=one)
flag_files = list(Path(root_path).glob('**/raw_session.flag'))
flag_files = Path(root_path).glob('*/????-??-??/*/raw_session.flag')
flag_files = filter(lambda x: is_session_path(x.parent), flag_files)
pipes = []
all_datasets = []
for flag_file in flag_files:
session_path = flag_file.parent
if session_path_parts(session_path)[1] in ('test', 'test_subject'):
_logger.debug('skipping test session %s', session_path)
continue
_logger.info(f'creating session for {session_path}')
if dry:
continue
Expand Down
Loading