Skip to content

Commit

Permalink
Black!
Browse files Browse the repository at this point in the history
  • Loading branch information
dotsdl committed Nov 12, 2024
1 parent da4b268 commit f621f33
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 4 additions & 2 deletions alchemiscale_fah/compute/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ def __init__(self, settings: FahAsynchronousComputeServiceSettings):
# halt immediately if any project features a core id that is not supported
for fah_project in self.fah_projects:
if fah_project.core_id not in settings.fah_core_ids_supported:
raise ValueError(f"FAH project '{fah_project.project_id}' configured with unsupported core id '{fah_project.core_id}'; "
f"check `settings.fah_core_ids_supported` for allowed core ids")
raise ValueError(
f"FAH project '{fah_project.project_id}' configured with unsupported core id '{fah_project.core_id}'; "
f"check `settings.fah_core_ids_supported` for allowed core ids"
)

self.fah_cert_update_interval = settings.fah_cert_update_interval

Expand Down
2 changes: 1 addition & 1 deletion alchemiscale_fah/compute/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ class FahAsynchronousComputeServiceSettings(ComputeServiceSettings):
)
fah_core_ids_supported: List[str] = Field(
...,
description="List of supported core IDs in hex (base 16) format. E.g. 0xa8."
description="List of supported core IDs in hex (base 16) format. E.g. 0xa8.",
)
3 changes: 1 addition & 2 deletions alchemiscale_fah/settings/fah_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ class FahOpenMMCoreSettings(SettingsBaseModel):
description="If 1, will disable checkpoint State tests; 0 will perform State tests (default: 0)",
)
disableViewer: int = Field(
0,
description="If 1 the writing of viewer files will be disabled (default: 0)"
0, description="If 1 the writing of viewer files will be disabled (default: 0)"
)
MWExclusionThreshold: float = Field(
0,
Expand Down

0 comments on commit f621f33

Please sign in to comment.