bcalden / ClusterPyXT

The Galaxy Cluster ‘Pypeline’ for X-ray Temperature Maps
BSD 3-Clause "New" or "Revised" License
27 stars 8 forks source link

AttributeError while running the spectral fitting portion of the pipeline in serial/parallel #28

Closed ZareefJafar closed 3 years ago

ZareefJafar commented 3 years ago

AttributeError is showing while doing spectral fitting using the following command (replaced the 'path/to/cluster_config_file' with my cluster config file path): Note: Running in a 2 core 4 thread processor computer.

python spectral.py --parallel --num_cpus 4 --cluster_config_file 'path/to/cluster\_config\_file' --resolution 2 or python spectral.py --cluster_config_file 'path/to/cluster\_config\_file' --resolution 2

Error:

Traceback (most recent call last):
  File "/home/beerus/anaconda3/envs/ciao-4.12/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/home/beerus/anaconda3/envs/ciao-4.12/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/home/beerus/ClusterPyXT/cluster.py", line 1750, in fit_region_number
    sherpa.set_analysis('energy')
AttributeError: 'NoneType' object has no attribute 'set_analysis'
4690:   Loading data pulse invariant files (PI files)
4690:   Loading background PI files