aasensio / hazel2

Hazel v2.0: synthesis and inversion of Stokes profiles caused by the joint action of atomic level polarization and the Hanle and Zeeman effects
https://aasensio.github.io/hazel2/index.html
MIT License
21 stars 6 forks source link

Problems using synthesis mode #24

Closed Hypnus1803 closed 4 years ago

Hypnus1803 commented 4 years ago

Hi Andrés,

I updated recently hazel2, and i got a new issue running synthesis mode, for example, if I try to run the example in https://aasensio.github.io/hazel2/notebooks/boundary_conditions.html#How-to-deal-with-boundary-conditions i got the next error:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-5-9dd9ab5f5422> in <module>
----> 1 synthesize(theta=0.0)

<ipython-input-4-c1dfb3f75a5f> in synthesize(theta, boundaryI)
     10     mod.add_photosphere({'Name': 'ph1', 'Spectral region': 'spec1', 'Spectral lines': [300],
     11                          'Wavelength': [10826, 10835], 'Reference atmospheric model': 'photospheres/init_spot.1d'})
---> 12     mod.setup()
     13     mod.synthesize()
     14 

~/hazel2/hazel/model.py in setup(self)
    256 
    257         # Use analytical RFs if only photospheres are defined
--> 258         if (self.n_chromospheres == 0 and self.use_analytical_RF_if_possible):
    259             self.use_analytical_RF = True
    260             if (self.verbose >= 1):

AttributeError: 'Model' object has no attribute 'use_analytical_RF_if_possible'

Greetings

Hypnus1803 commented 4 years ago

Duplicated