Skip to content
Snippets Groups Projects

[master] add a step splitter by input filetype and pydantic modernisations / squashing of warnings

Merged Ryunosuke O'Neil requested to merge roneil-run-local-multi-filetype into master
Compare and
5 files
+ 114
47
Compare changes
  • Side-by-side
  • Inline
Files
5
@@ -10,17 +10,15 @@
###############################################################################
import os
import socket
from typing import Optional
import psutil
import xml.etree.ElementTree as ET
from pydantic import BaseModel as _BaseModel
from pydantic import Extra
import LHCbDIRAC
class BaseModel(_BaseModel, extra=Extra.forbid):
class BaseModel(_BaseModel, extra="forbid"):
pass
@@ -71,7+69,7 @@
FirstEventNumber: str | None = None
StatisticsRequested: str | None = None
StepID: str | None = None
NumberOfEvents: str | None = None
typed_parameters: TypedParameters = TypedParameters()
@@ -104,7+102,7 @@
root.extend(
[
ET.Element("TypedParameter", Name=k, Value=str(v), Type="Info")
for k, v in self.typed_parameters.dict().items()
for k, v in self.typed_parameters.model_dump().items()
if v is not None
]
)
Loading