Skip to content

Commit

Permalink
Remove obsolete tests, format update
Browse files Browse the repository at this point in the history
  • Loading branch information
FranzBangar committed Feb 17, 2025
1 parent d3fd94e commit 3690cd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/classy_blocks/grading/grading.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
""" In theory, combination of three of these 6 values can be specified:
"""In theory, combination of three of these 6 values can be specified:
- Total length
- Number of cells
- Total expansion ratio
Expand Down Expand Up @@ -32,7 +32,7 @@
calculations meticulously transcribed from the blockmesh grading calculator:
https://gitlab.com/herpes-free-engineer-hpe/blockmeshgradingweb/-/blob/master/calcBlockMeshGrading.coffee
(since block length is always known, there's less wrestling but the calculation principle is similar) """
(since block length is always known, there's less wrestling but the calculation principle is similar)"""

import dataclasses
import math
Expand Down
9 changes: 0 additions & 9 deletions tests/test_optimize/test_clamps.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ def test_line_init(self):

self.assertAlmostEqual(clamp.params[0], 0)

def test_line_init_noncoincident(self):
"""Initialization of LineClamp with a non-coincident vertex;
update vertex with closest point"""
clamp = LineClamp(self.position, [1, 1, 1], [2, 1, 1], (-100, 100))

# don't be too strict about initial parameters,
# optimization will move everything away anyhow
np.testing.assert_array_almost_equal(clamp.position, [0, 1, 1], decimal=3)

def test_line_init_far(self):
"""Initialization that will yield t < 0"""
clamp = LineClamp(self.position, [1, 1, 1], [2, 2, 2], (-100, 100))
Expand Down

0 comments on commit 3690cd7

Please sign in to comment.