Skip to content

Commit

Permalink
add preset initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mathias77515 committed Sep 11, 2024
1 parent e31dd44 commit 2e6792d
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 13 deletions.
6 changes: 3 additions & 3 deletions src/CMM/params.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ QUBIC:
### This section control the parameters related to QUBIC

instrument: 'DB' # Instrumental design (DB or UWB)
npointings: 500 # Number of time samples
npointings: 1000 # Number of time samples
nsub_in: 8 # Number of sub-acquisitions
nsub_out: 8 # Number of sub-acquisitions for the reconstruction
convolution_in: False # Angular resolution in the input TOD
Expand Down Expand Up @@ -85,7 +85,7 @@ PLANCK:
level_noise_planck: 1 # Noise level for Planck data
nintegr_planck: 1 # Number of integration step for Planck data
thr_planck: 0.2 # Threashold to remove planck weight within QUBIC patch
weight_planck: 0 # Weight of Planck data within the QUBIC patch
weight_planck: 1 # Weight of Planck data within the QUBIC patch
fwhm_weight_planck: 0 # FWHM for apodized QUBIC patch
30GHz: False
44GHz: False
Expand All @@ -102,7 +102,7 @@ PCG:
n_init_iter_pcg: 10
n_iter_pcg: 10 # Number of PCG iterations
tol_pcg: 1.0e-20 # Tolerance for PCG
n_iter_loop: 100 # Number of loop (1 loop is PCG + beta fitting + gain reconstruction)
n_iter_loop: 1000 # Number of loop (1 loop is PCG + beta fitting + gain reconstruction)
ites_to_converge: 1 # should be less than k
tol_rms: 1.0e-10
#fix_pixels_outside_patch: True # Fixing pixels outside QUBIC patch
Expand Down
2 changes: 2 additions & 0 deletions src/FMM/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .pipeline import *
print('importing pipeline fmm')
3 changes: 2 additions & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from .FMM import *
from .CMM import *
from .lib import *
from .lib import *
from .running_scripts import *
12 changes: 6 additions & 6 deletions src/run.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import sys
from pyoperators import *
from FMM.pipeline import PipelineEnd2End
from CMM.pipeline import Pipeline


#import sys
#from pyoperators import *
#from FMM.pipeline import PipelineEnd2End
#from CMM.pipeline import Pipeline
import running_scripts
stop
simu = 'CMM'

if __name__ == "__main__":
Expand Down
1 change: 1 addition & 0 deletions src/running_scripts/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print(1111)
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 8 additions & 3 deletions src/running_scrips/run_fmm.py → src/running_scripts/run_fmm.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import sys
from pyoperators import *

#import sys
#from pyoperators import *
#import FMM
import running_scripts
stop
from ..FMM.pipeline import PipelineEnd2End

stop

#from .FMM.pipeline import PipelineEnd2End


Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 2e6792d

Please sign in to comment.