lesgourg / class_public

Public repository of the Cosmic Linear Anisotropy Solving System (master for the most recent version of the standard code; GW_CLASS to include Cosmic Gravitational Wave Background anisotropies; classnet branch for acceleration with neutral networks; ExoCLASS branch for exotic energy injection; class_matter branch for FFTlog)
225 stars 282 forks source link

Installation Issues #570

Open yolymatics007 opened 7 months ago

yolymatics007 commented 7 months ago

Hi,

I installed class successfully. But now I am still facing problems with running it. All the time I try and run it I obtain the following error. I have tried all I can and still now luck and I don't know what is missing.

File "/home/yolanda/Downloads/mcmc_methodias_code_trial2.py", line 49, in calculate_HI_power_spectrum cosmo = Class() ^^^^^ NameError: name 'Class' is not defined. Did you mean: 'classy'?

I don't know what to do anymore to fix this. I will be looking forward to your assistance. I installed it using pip install classy command.

brinckmann commented 7 months ago

Hi,

Do you have the following line earlier in your script? from classy import Class

Best, Thejs