From 2c5477f732180dfa00ef29eacafab3a430257178 Mon Sep 17 00:00:00 2001 From: Miles Wells Date: Tue, 12 Mar 2024 15:22:38 +0200 Subject: [PATCH] Expose dataset JSON field --- alyx/data/serializers.py | 2 +- alyx/data/transfers.py | 1 - setup.cfg | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/alyx/data/serializers.py b/alyx/data/serializers.py index a10f02f5d..c455611f8 100644 --- a/alyx/data/serializers.py +++ b/alyx/data/serializers.py @@ -220,7 +220,7 @@ class Meta: 'session', 'file_size', 'hash', 'version', 'experiment_number', 'file_records', 'subject', 'date', 'number', 'auto_datetime', 'revision', - 'default_dataset', 'protected', 'public', 'tags', 'qc') + 'default_dataset', 'protected', 'public', 'tags', 'qc', 'json') extra_kwargs = { 'subject': {'write_only': True}, 'date': {'write_only': True}, diff --git a/alyx/data/transfers.py b/alyx/data/transfers.py index 3cc730ab5..bc6b744ed 100644 --- a/alyx/data/transfers.py +++ b/alyx/data/transfers.py @@ -11,7 +11,6 @@ import numpy as np from one.alf.files import add_uuid_string, folder_parts from one.registration import get_dataset_type -from one.util import ensure_list from one.alf.spec import QC from alyx import settings diff --git a/setup.cfg b/setup.cfg index ca0902f76..d332421a5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,7 +4,7 @@ universal = 1 [tool:pytest] [flake8] -ignore = E117,E265,E731,F403,E741,E722,W504 +ignore = E117,E265,E731,F403,E741,E722,W504,D max-line-length = 99 exclude = migrations