andreatramacere / jetset

JetSeT a framework for self-consistent modeling and fitting of astrophysical relativistic jets
BSD 3-Clause "New" or "Revised" License
30 stars 15 forks source link

Issue with external emitters class. #36

Closed Noatino closed 4 years ago

Noatino commented 4 years ago

Hi Adrea,

Currently I start to learn the custom emitters distribution. So I follow the steps in the page: Custom emitters distribution

But, when I try to start, I've a module error (my python file is called ElectronDistribution as you can see):

  File "ElectronDistribution.py", line 4, in <module>
    from jetset.jet_emitters import EmittersDistribution
ModuleNotFoundError: No module named 'jetset.jet_emitters'

So, I don't know of this is a error due a bad installation (I follow the instruction for conda in a linux machine), so I will apreciatted any kind of help from yours.

Hope to hear about from you soon.

My best,

Antonio.

andreatramacere commented 4 years ago

Dear Antonio, which version are you using? Probably you are using version<1.1.2. Try to install version 1.1.2 that is the version where EmittersDistribution has been introduced. If you know how to install from source, please, install this specific version: https://github.com/andreatramacere/jetset/archive/1.1.2c.tar.gz which is fixing some minor bugs in v1.1.2 Cheers Andrea

Noatino commented 4 years ago

Hi Adrea,

It works! Thanks a lot for the help.

My best,

Antonio.