Merge branch 'master' into TellSampleHandling

This commit is contained in:
appleb_m
2025-12-10 14:14:16 +01:00
9 changed files with 23 additions and 7 deletions
+13
View File
@@ -1,3 +1,16 @@
unreleased:
- added check box to numberlineedits to switch between user input and spreadsheet
- re-enabled MLprediciton
- fixed bug in gui where manual sample couldnt be created when run nubmer was negative.
- Combined beamline view now split vertically not horizontally
0.2.67
- added run number to sampleshortinfo
- ingest raster result, including beam center to database
- aerotech goes to mount postion for manual mount
- logger config correctly expands file path for logger location.
- smart_rotiation_panel fix - but will be mvoed to DAQ in future update
- Fluoresence scan can be saved to CSV with right click
- Wait for ready before sending Tell to dry
0.2.66
- moved rastergridingestmodel and centreofmassmodel from models to raster_grid.py
- after raster load closest image to new centre
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "aaredaqlib"
version = "0.2.66"
version = "0.2.67"
description = "Libraries shared between AareDAQ and AareGUI"
readme = "README.md"
requires-python = ">=3.11"
+1
View File
@@ -382,6 +382,7 @@ class SampleShortInfo(BaseModel):
puck_name: str
dewar_name: str
sample_name: str
run_number: int
aaredb_params: Optional[DataCollectionParameters] = None
user: str = ""
pin: Annotated[int, Field(ge=1, le=16)]
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "aaredaq"
version = "0.2.65"
version = "0.2.67"
description = "AareDAQ data acquisition server"
readme = "README.md"
requires-python = ">=3.11"
+3 -3
View File
@@ -21,7 +21,7 @@ ACCESS_TOKEN_EXPIRE_MINUTES = 24 * 60 * 7 # 1 week
SESSION_EXPIRE_SECONDS = 60 * 10
STAFF_GROUP = "unx-MXgroup"
SUPER_USERS = ["e10019", "e11206", "e18147"]
class TokenData(BaseModel):
sub: str # Username
@@ -42,9 +42,9 @@ def authenticate_user(cfg: BeamlineConfig, form_data: OAuth2PasswordRequestForm)
groups = os.getgrouplist(user_info.pw_name, user_info.pw_gid)
supplementary_groups = [grp.getgrgid(g).gr_name.lower() for g in groups]
super_user = form_data.username in SUPER_USERS
pgroups = [group for group in supplementary_groups if group.startswith('p')]
staff = "unx-mxgroup" in supplementary_groups or "unx-sls_mx" in supplementary_groups
staff = "unx-mxgroup" in supplementary_groups or "unx-sls_mx" in supplementary_groups or super_user
token = TokenData(sub=form_data.username,
pgroups=pgroups,
staff=staff,
+1
View File
@@ -224,6 +224,7 @@ async def sample(token: str = Depends(oauth2_scheme)) -> SampleShortInfo:
else:
return SampleShortInfo(
sample_name="Other user sample",
run_number=0,
puck_name="",
dewar_name="",
db_id=-1,
+1 -1
View File
@@ -1,6 +1,6 @@
[project]
name = "aaregui"
version = "0.2.66"
version = "0.2.67"
description = "Beamline control GUI"
readme = "README.md"
requires-python = ">=3.11"
+1 -1
View File
@@ -110,7 +110,7 @@ class MainWindow(QMainWindow):
self.sample_camera = SampleCameraImageLabel(geom=geom, raster=self.raster, parent=top_widget, default_image=default_image)
self.beamline_view_container = QWidget(parent=top_widget)
self.beamline_view_layout = QHBoxLayout(self.beamline_view_container)
self.beamline_view_layout = QVBoxLayout(self.beamline_view_container)
self.beamline_view_layout.setContentsMargins(0,0,0,0)
self.beamline_view_layout.setSpacing(6)
@@ -112,6 +112,7 @@ class ManualSamplePanel(QWidget):
puck_name="",
dewar_name="",
sample_name=self.__sample_name,
run_number=1, #can't be -1. So have defaulted to 1 for now.
pin=1,
aaredb_params=data_processing,
user=self.__pgroup,