transientskp / tkp

A transients-discovery pipeline for astronomical image-based surveys
http://docs.transientskp.org/
BSD 2-Clause "Simplified" License
19 stars 14 forks source link

Can't find bandwidth_max #595

Closed AstroLaura closed 1 year ago

AstroLaura commented 2 years ago

I'm getting this bandwidth_max error for all of my fits images when I run TraP. It's been a while since I last used TraP, so could definitely be that I've missed/messed up a parameter!

2021-11-25 04:59:03 INFO tkp.main: processing 1 images in timestep 2018-06-01 00:00:00 (1/173)
2021-11-25 04:59:03 WARNING tkp.accessors.fitsimage: End time not specified in /scratch/ldriessen/NWLayers/2018.06.01_GX3394_repr_nwlayers-MFS-image.fits, setting to start
2021-11-25 04:59:03 WARNING tkp.accessors.fitsimage: bandwidth header missing in image /scratch/ldriessen/NWLayers/2018.06.01_GX3394_repr_nwlayers-MFS-image.fits, setting to 1 MHz
2021-11-25 04:59:06 ERROR tkp.main: timestep raised <type 'exceptions.AttributeError'> exception: can't find bandwidth_max, please check your settings file

I'm running TraP on struis on WSClean MFS images (no other bands/subbands) and I'm using TraP r5.0rc2 in a virtual environment. My fits images do include the frequency information in the header: CTYPE3 = 'FREQ ' / Central frequency
CRPIX3 = 1.
CRVAL3 = 1283986938.47656
CDELT3 = 855999999.999998
CUNIT3 = 'Hz '

Here are the log files trap.debug.log trap.log

Pipeline config

{'DEFAULT': {'cwd': '/scratch/ldriessen/Laura_GX339',
             'job_directory': '/scratch/ldriessen/Laura_GX339/MFS',
             'job_name': 'MFS',
             'runtime_directory': '/scratch/ldriessen/Laura_GX339',
             'start_time': '2021-11-25T03:55:36'},
 'database': {'cwd': '/scratch/ldriessen/Laura_GX339',
              'database': 'Laura_GX339',
              'dump_backup_copy': False,
              'engine': 'postgresql',
              'host': 'vlo.science.uva.nl',
              'job_directory': '/scratch/ldriessen/Laura_GX339/MFS',
              'job_name': 'MFS',
              'passphrase': '',
              'password': '6PGz708qi7',
              'port': 5432,
              'runtime_directory': '/scratch/ldriessen/Laura_GX339',
              'start_time': '2021-11-25T03:55:36',
              'user': 'ldriessen'},
 'image_cache': {'copy_images': False,
                 'cwd': '/scratch/ldriessen/Laura_GX339',
                 'job_directory': '/scratch/ldriessen/Laura_GX339/MFS',
                 'job_name': 'MFS',
                 'runtime_directory': '/scratch/ldriessen/Laura_GX339',
                 'start_time': '2021-11-25T03:55:36'},
 'logging': {'colorlog': True,
             'cwd': '/scratch/ldriessen/Laura_GX339',
             'debug': True,
             'job_directory': '/scratch/ldriessen/Laura_GX339/MFS',
             'job_name': 'MFS',
             'log_dir': '/scratch/ldriessen/Laura_GX339/MFS/logs/2021-11-25T03:55:36',
             'runtime_directory': '/scratch/ldriessen/Laura_GX339',
             'start_time': '2021-11-25T03:55:36'},
 'parallelise': {'cores': 0,
                 'cwd': '/scratch/ldriessen/Laura_GX339',
                 'job_directory': '/scratch/ldriessen/Laura_GX339/MFS',
                 'job_name': 'MFS',
                 'method': 'serial',
                 'runtime_directory': '/scratch/ldriessen/Laura_GX339',
                 'start_time': '2021-11-25T03:55:36'}}

job parameters

{'association': {'beamwidths_limit': 6.0, 'deruiter_radius': 5.68},
 'persistence': {'dataset_id': -1,
                 'description': 'GX339 MFS 20211125',
                 'rms_est_fraction': 8,
                 'rms_est_sigma': 4},
 'pipeline': {'hosts': ',,,,,',
              'mode': 'batch',
              'ports': '6666,6667,6668,6669,6670,6671'},
 'quality': {'bandwidth_max': 0.0,
             'elliptical_x': 2.0,
             'oversampled_x': 30,
             'rms_est_history': 100,
             'rms_est_max': 100,
             'rms_est_min': 0.0,
             'rms_rej_sigma': 3},
 'quality_lofar': {'high_bound': 80, 'low_bound': 1, 'min_separation': 10},
 'source_extraction': {'analysis_threshold': 3,
                       'back_size_x': 50,
                       'back_size_y': 50,
                       'box_in_beampix': 10,
                       'deblend_nthresh': 0,
                       'detection_threshold': 8,
                       'ew_sys_err': 10,
                       'expiration': 10,
                       'extraction_radius_pix': 4096,
                       'force_beam': True,
                       'margin': 10,
                       'ns_sys_err': 10},
 'transient_search': {'new_source_sigma_margin': 1}}
AntoniaR commented 1 year ago

I think this is now fixed