Coverage for pyrc \ validation \ plate \ __init__.py: 0%

8 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-13 16:59 +0200

1# ------------------------------------------------------------------------------- 

2# Copyright (C) 2026 Joel Kimmich, Tim Jourdan 

3# ------------------------------------------------------------------------------ 

4# License 

5# This file is part of PyRC, distributed under GPL-3.0-or-later. 

6# ------------------------------------------------------------------------------ 

7 

8from pyrc.validation.network import Block 

9 

10name_add_on = "" 

11 

12 

13def setup(save_step=0.1): 

14 increments_per_block = 1500 

15 # blocks = [ 

16 # Block(8, 20, increments=increments_per_block), 

17 # Block(4, 60, increments=increments_per_block), 

18 # Block(2, -10, increments=increments_per_block), 

19 # Block(6, 0, increments=increments_per_block), 

20 # ] 

21 # blocks = [ 

22 # Block(8, 0, increments=increments_per_block), 

23 # Block(4, 60, increments=increments_per_block), 

24 # Block(8, 0, increments=increments_per_block), 

25 # ] 

26 blocks = [ 

27 Block(1, 60, increments=increments_per_block, 

28 thermal_conductivity=20, 

29 density=1000, 

30 heat_capacity=1000, 

31 ) 

32 ] 

33 

34 time_indexes = [x for x in [0] + [n * 10 ** i for i in [0, 1, 2, 3, 4] for n in [1, 2, 5]] if x <= 2000 / save_step] 

35 times = [t * save_step for t in time_indexes] 

36 

37 return blocks, time_indexes, times, name_add_on