Skip to content

Commit

Permalink
precommit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
atong01 committed Feb 8, 2024
1 parent ab77405 commit 342ad12
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/code-quality-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- name: Set up Python
uses: actions/setup-python@v3
with:
with:
python-version: "3.10"

- name: Run pre-commits
Expand Down
4 changes: 3 additions & 1 deletion dem/energies/base_energy_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ def unnormalize(self, x: torch.Tensor) -> torch.Tensor:
x = (x + 1) / 2
return x * (maxs - mins) + mins

def sample_test_set(self, num_points: int, normalize: bool = False, full: bool=False) -> Optional[torch.Tensor]:
def sample_test_set(
self, num_points: int, normalize: bool = False, full: bool = False
) -> Optional[torch.Tensor]:
if self.test_set is None:
return None

Expand Down

0 comments on commit 342ad12

Please sign in to comment.