Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
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
1,108 changes: 1,108 additions & 0 deletions .specify/specs/validate-machine-readable-output.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dandi/bids_validator_deno/_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from pydantic import DirectoryPath, validate_call

from dandi.utils import find_parent_directory_containing
from dandi.validate_types import (
from dandi.validate.types import (
Origin,
OriginType,
Scope,
Expand Down
11 changes: 9 additions & 2 deletions dandi/cli/cmd_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,15 +96,21 @@ def upload(
can point to specific files you would like to validate and have uploaded.
"""
# Avoid heavy imports by importing with function:
from ..upload import upload
from ..upload import upload as upload_
from ..validate.io import validation_sidecar_path

if jobs_pair is None:
jobs = None
jobs_per_file = None
else:
jobs, jobs_per_file = jobs_pair

upload(
sidecar = None
ctx = click.get_current_context()
if ctx.obj is not None:
sidecar = validation_sidecar_path(ctx.obj.logfile)

upload_(
paths,
existing=existing,
validation=validation,
Expand All @@ -115,4 +121,5 @@ def upload(
jobs=jobs,
jobs_per_file=jobs_per_file,
sync=sync,
validation_log_path=sidecar,
)
Loading
Loading