Skip to content

Commit e19108c

Browse files
committed
Fix test issue
1 parent 01042a0 commit e19108c

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

mesh_model/mesh_struct/mesh.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -299,11 +299,13 @@ def add_dart(self, a1: int = -1, a2: int = -1, v: int = -1, f: int = -1) -> Dart
299299
raise IndexError('Dart index out of range')
300300

301301
def del_dart(self, d: Dart):
302+
"""
302303
n = d.get_node()
303-
#if n.get_dart() == d:
304-
#d2 = d.get_beta(2)
305-
#d21 = d2.get_beta(1)
306-
#n.set_dart(d21)
304+
if n.get_dart() == d:
305+
d2 = d.get_beta(2)
306+
d21 = d2.get_beta(1)
307+
n.set_dart(d21)
308+
"""
307309
self.dart_info[d.id][0] = -self.first_free_dart - 1
308310
self.first_free_dart = d.id
309311

model_RL/PPO_model_pers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from mesh_model.mesh_analysis.global_mesh_analysis import global_score
22
import copy
33
import random
4-
import json
54
from tqdm import tqdm
65
import numpy as np
76
import torch

test_modules/test_quadrangular_mesh_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test_is_valid_action(self):
5757

5858
#Invalid action
5959
with self.assertRaises(ValueError):
60-
QMA.isValidAction(cmap, 0, 6)
60+
QMA.isValidAction(cmap, 0, 7)
6161

6262
def test_isTruncated(self):
6363
filename = os.path.join(TESTFILE_FOLDER, 't1_quad.msh')

0 commit comments

Comments
 (0)