Minor change to config reading

This commit is contained in:
Deaglan Bartlett 2025-04-16 14:36:34 +02:00
parent 1e9fbadbe1
commit 778aa6feb2
4 changed files with 19 additions and 5 deletions

5
allocation_stats_0.txt Normal file
View file

@ -0,0 +1,5 @@
Memory still allocated at the end: 0 MB
Statistics per context (name, allocated, freed, peak)
======================

View file

@ -55,12 +55,12 @@ class MyLikelihood(borg.likelihood.BaseLikelihood):
# Read the ini file
self.ini_fname = ini_fname
config = configparser.ConfigParser()
config.read(ini_fname)
self.N = [int(config['system'][f'N{i}']) for i in range(3)] # Number of grid points per side
self.L = [float(config['system'][f'L{i}']) for i in range(3)] # Box size lenght Mpc/h
self.config = configparser.ConfigParser()
self.config.read(ini_fname)
self.N = [int(self.config['system'][f'N{i}']) for i in range(3)] # Number of grid points per side
self.L = [float(self.config['system'][f'L{i}']) for i in range(3)] # Box size lenght Mpc/h
self.sigma_dens = float(config['mock']['sigma_dens']) # Density scatter
self.sigma_dens = float(self.config['mock']['sigma_dens']) # Density scatter
myprint(f"Likelihood initialized with {self.N} grid points and box size {self.L} Mpc/h")
super().__init__(fwd, self.N, self.L)

2
fft_wisdom Normal file
View file

@ -0,0 +1,2 @@
(fftw-3.3.10 fftw_wisdom #xb400f3dc #xe7b0abe3 #xf6045330 #xbdf50fd0
)

7
timing_stats_0.txt Normal file
View file

@ -0,0 +1,7 @@
ARES version 6b1404bfd8011f03ee1b8635275f68d14d16bef3 modules
Cumulative timing spent in different context
--------------------------------------------
Context, Total time (seconds)
[/home/bartlett/borg/libLSS/physics/forwards/adapt_generic_bias.cpp]void {anonymous}::bias_registrator() 1 8.1504e-05