Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 20, 2025
1 parent 0023504 commit 1ff2826
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions openff/evaluator/_tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
Units tests for the openff.evaluator.server module.
"""

import tempfile
import os
import pytest
import tempfile
from time import sleep

import pytest
from openff.units import unit

from openff.evaluator._tests.utils import create_dummy_property
Expand Down
6 changes: 4 additions & 2 deletions openff/evaluator/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ def _query_request_status(self, client_request_id):
request_results.exceptions.extend(batch.exceptions)

return request_results, None

def _no_batch(self, submission, force_field_id):
"""Returns a single Batch."""

Expand All @@ -279,7 +279,9 @@ def _no_batch(self, submission, force_field_id):
batch.enable_data_caching = self._enable_data_caching
batch.queued_properties = list(submission.dataset.properties)
batch.options = RequestOptions.parse_json(submission.options.json())
batch.parameter_gradient_keys = copy.deepcopy(submission.parameter_gradient_keys)
batch.parameter_gradient_keys = copy.deepcopy(
submission.parameter_gradient_keys
)

n_batchs = len(reserved_batch_ids)
batch.id = f"batch_{n_batchs:04d}"
Expand Down

0 comments on commit 1ff2826

Please sign in to comment.