Skip to content

Commit 6d983d8

Browse files
authored
Remove manual AutoProcScalingStatistics declaration (#234)
* Remove manual AutoProcScalingStatistics declaration * Replace manually declared accessors with synonyms * Bump version: 11.0.1 → 11.0.2
1 parent 88e2378 commit 6d983d8

File tree

4 files changed

+14
-25
lines changed

4 files changed

+14
-25
lines changed

HISTORY.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ History
55
Unreleased / main
66
-------------------
77

8+
11.0.2 (2025-03-13)
9+
-------------------
10+
11+
* Replace manually declared accessors in table models with SQLAlchemy 2 compatible synonyms (in ProcessingJob, AutoProcProgramAttachment)
12+
* Remove manually declared accessors in AutoProcScaling
13+
814
11.0.1 (2025-03-11)
915
-------------------
1016

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "ispyb"
7-
version = "11.0.1"
7+
version = "11.0.2"
88
description = "Python package to access ISPyB database"
99
authors = [
1010
{ name = "Diamond Light Source", email = "[email protected]" },
@@ -59,7 +59,7 @@ unfixable = ["F841"]
5959
ignore = ["E501"]
6060

6161
[tool.bumpversion]
62-
current_version = "11.0.1"
62+
current_version = "11.0.2"
6363
commit = true
6464
tag = true
6565

src/ispyb/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import os
44
import warnings
55

6-
__version__ = "11.0.1"
6+
__version__ = "11.0.2"
77

88
_log = logging.getLogger("ispyb")
99

src/ispyb/sqlalchemy/__init__.py

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,21 @@
66

77
import sqlalchemy.engine
88
import sqlalchemy.orm
9-
from sqlalchemy.orm import relationship
9+
from sqlalchemy.orm import relationship, synonym
1010

1111
from ._auto_db_schema import * # noqa F403; lgtm
1212
from ._auto_db_schema import (
1313
AutoProcProgram,
14-
AutoProcScaling,
1514
ProcessingJob,
1615
__schema_version__,
1716
)
1817

1918
logger = logging.getLogger("ispyb.sqlalchemy")
2019

21-
AutoProcProgram.AutoProcProgramAttachments = relationship(
22-
"AutoProcProgramAttachment",
23-
back_populates="AutoProcProgram",
24-
overlaps="AutoProcProgramAttachment",
25-
)
26-
AutoProcScaling.AutoProcScalingStatistics = relationship(
27-
"AutoProcScalingStatistics",
28-
back_populates="AutoProcScaling",
29-
overlaps="AutoProcScalingStatistics",
30-
)
31-
ProcessingJob.ProcessingJobParameters = relationship(
32-
"ProcessingJobParameter",
33-
back_populates="ProcessingJob",
34-
overlaps="ProcessingJobParameter",
35-
)
36-
ProcessingJob.ProcessingJobImageSweeps = relationship(
37-
"ProcessingJobImageSweep",
38-
back_populates="ProcessingJob",
39-
overlaps="ProcessingJobImageSweep",
40-
)
20+
AutoProcProgram.AutoProcProgramAttachments = synonym("AutoProcProgramAttachment")
21+
ProcessingJob.ProcessingJobParameters = synonym("ProcessingJobParameter")
22+
ProcessingJob.ProcessingJobImageSweeps = synonym("ProcessingJobImageSweep")
23+
4124
assert __schema_version__
4225

4326

0 commit comments

Comments
 (0)