Skip to content

Commit d5e0692

Browse files
committed
fix resource_filename warnings
1 parent 13b71d9 commit d5e0692

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

pypop/trace/prvtrace.py

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,44 +19,44 @@
1919
from ..extrae import paramedir_analyze_any_of, chop_prv_to_roi, remove_trace
2020

2121
base_configs = {
22-
k: tuple(resource_filename(__name__, w) for w in v)
22+
k: tuple(resource_filename('pypop', w) for w in v)
2323
for k, v in {
2424
"Serial Useful Computation": (
25-
"../cfgs/serial_useful_computation.cfg",
26-
"../cfgs/serial_useful_computation_omp_loop.cfg",
27-
"../cfgs/serial_useful_computation_omp_task.cfg",
28-
"../cfgs/serial_useful_computation_no_omp.cfg",
25+
"cfgs/serial_useful_computation.cfg",
26+
"cfgs/serial_useful_computation_omp_loop.cfg",
27+
"cfgs/serial_useful_computation_omp_task.cfg",
28+
"cfgs/serial_useful_computation_no_omp.cfg",
2929
),
3030
"Total Runtime": (
31-
"../cfgs/total_runtime_excl_disabled.cfg",
32-
"../cfgs/total_runtime.cfg",
31+
"cfgs/total_runtime_excl_disabled.cfg",
32+
"cfgs/total_runtime.cfg",
3333
),
34-
"Useful Instructions": ("../cfgs/useful_instructions.cfg",),
35-
"Useful Cycles": ("../cfgs/useful_cycles.cfg",),
34+
"Useful Instructions": ("cfgs/useful_instructions.cfg",),
35+
"Useful Cycles": ("cfgs/useful_cycles.cfg",),
3636
}.items()
3737
}
3838

3939
omp_configs = {
40-
k: tuple(resource_filename(__name__, w) for w in v)
40+
k: tuple(resource_filename('pypop', w) for w in v)
4141
for k, v in {
4242
"OpenMP Total Runtime": (
43-
"../cfgs/omp_total_runtime.cfg",
44-
"../cfgs/omp_total_runtime_loop.cfg",
45-
"../cfgs/omp_total_runtime_loop.cfg",
43+
"cfgs/omp_total_runtime.cfg",
44+
"cfgs/omp_total_runtime_loop.cfg",
45+
"cfgs/omp_total_runtime_loop.cfg",
4646
),
4747
"OpenMP Useful Computation": (
48-
"../cfgs/omp_useful_computation.cfg",
49-
"../cfgs/omp_useful_computation_loop.cfg",
50-
"../cfgs/omp_useful_computation_task.cfg",
48+
"cfgs/omp_useful_computation.cfg",
49+
"cfgs/omp_useful_computation_loop.cfg",
50+
"cfgs/omp_useful_computation_task.cfg",
5151
),
5252
}.items()
5353
}
5454

5555
ideal_configs = {
56-
k: tuple(resource_filename(__name__, w) for w in v)
56+
k: tuple(resource_filename('pypop', w) for w in v)
5757
for k, v in {
58-
"Ideal Useful Computation": ("../cfgs/total_useful_computation.cfg",),
59-
"Ideal Runtime": ("../cfgs/total_runtime.cfg",),
58+
"Ideal Useful Computation": ("cfgs/total_useful_computation.cfg",),
59+
"Ideal Runtime": ("cfgs/total_runtime.cfg",),
6060
}.items()
6161
}
6262

0 commit comments

Comments
 (0)