prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-156/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:70: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
Test: scipp-analysis|dream|analyze_reduced_data|data_size
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-155/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:70: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-154/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:70: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-153/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:70: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-152/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:70: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-151/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:70: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-150/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:70: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-149/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:70: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-148/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-147/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-146/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-145/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-144/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-143/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-140/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-135/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-134/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-133/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-132/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-131/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-130/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-127/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-126/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-120/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-119/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-118/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-117/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-116/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-115/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-114/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-112/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-111/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-110/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-109/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-108/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-105/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-99/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-98/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-97/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-96/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-95/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-94/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-87/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:43: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-86/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:39: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-85/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:39: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-84/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:39: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-83/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:39: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:67: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:171: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:622: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:565: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-79/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:36: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:64: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:168: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:608: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:551: AttributeError
prepared_cif_path = '/tmp/pytest-of-gitlab-runner/pytest-78/dream_data1/dream_reduced_prepared.cif'
@pytest.fixture(scope="module")
def project_with_data(
prepared_cif_path: str,
) -> ed.Project:
"""Create project with sample model, experiment data, and
configuration.
1. Define project
2. Add sample model manually defined
3. Modify experiment CIF file
4. Add experiment from modified CIF file
5. Modify default experiment configuration
"""
# Step 1: Define Project
project = ed.Project()
# Step 2: Define Sample Model manually
> project.sample_models.add(name="si")
^^^^^^^^^^^^^^^^^^^^^
tests/scipp-analysis/dream/test_analyze_reduced_data.py:71:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/guard.py:36: in __getattr__
type(self)._diagnoser.attr_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:64: in attr_error
Diagnostics._log_error(
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/core/diagnostic.py:168: in _log_error
log.error(msg, exc_type=exc_type)
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:608: in error
cls.handle(*messages, level=cls.Level.ERROR, exc_type=exc_type)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls =
exc_type =
messages = ("Unknown attribute 'sample_models' of
message = "Unknown attribute 'sample_models' of
@classmethod
def handle(
cls,
*messages: str,
level: Level = Level.ERROR,
exc_type: type[BaseException] | None = AttributeError,
) -> None:
"""Route a log message (see class docs for policy)."""
cls._lazy_config()
message = ' '.join(messages)
# Prioritize explicit UserWarning path so pytest captures
# warnings
if exc_type is UserWarning:
if in_pytest():
warnings.warn(message, UserWarning, stacklevel=2)
else:
cls._logger.warning(message)
return
# Special handling for Reaction.WARN (non-warning cases)
if cls._reaction is cls.Reaction.WARN:
# Log as error/critical (keep icon) but continue execution
cls._logger.log(int(level), message)
return
if exc_type is not None:
if cls._mode is cls.Mode.VERBOSE:
raise exc_type(message)
if cls._mode is cls.Mode.COMPACT:
> raise exc_type(message) from None
E AttributeError: Unknown attribute 'sample_models' of
.tox/scipp-analysis-dream/lib/python3.12/site-packages/easydiffraction/utils/logging.py:551: AttributeError