Codacy Small Bug Fixes:

- cleaned up imports
- cleaned up some code
- added docstrings
This commit is contained in:
SpartaKushK
2023-07-25 16:43:45 +02:00
committed by Nicola Demo
parent bd88e24174
commit 625a77c0d5
13 changed files with 132 additions and 118 deletions

View File

@@ -82,7 +82,8 @@ class CartesianDomain(Location):
pts = chebyshev_roots(n).mul(.5).add(.5).reshape(-1, 1)
elif mode == 'grid':
pts = torch.linspace(0, 1, n).reshape(-1, 1)
elif mode == 'lh' or mode == 'latin':
# elif mode == 'lh' or mode == 'latin':
elif mode in ['lh', 'latin']:
pts = torch_lhs(n, dim)
pts *= bounds[:, 1] - bounds[:, 0]