jacopo-chevallard / BEAGLE-general

Basic information to get started with the galaxy spectral modelling tool Beagle
https://www.iap.fr/beagle/
9 stars 0 forks source link

Unable to run BEAGLE #69

Closed aron600 closed 6 years ago

aron600 commented 6 years ago

I installed BEAGLE following the checklist but am unable to run get it to run without an error. I have used the sample and also tried following successful examples in the issues section. Currently i'm trying

docker run --rm -it -v /Users/Eric/BEAGLE-general:/BEAGLE_virtual_workdir --env-file /Users/Eric/BEAGLE-general/env.list beagletool/beagle:0.18.5 --parameter-file /BEAGLE_virtual_workdir/params/fit_photometry_example.param --fit

My error is

[ERROR: The file: "/BEAGLE_virtual_workdir/templates/ineb_Jan16_C100/cb2013_n2_mup100_N015_O01_deplO70_C100_Jan16" that you want to copy does not exist! ]
 [FUNCTION: "copy_file" ]
 [MODULE: "lib_io" ]
 [BACKTRACE:   
#0  0x7f94d8f4eef7 in ???
#1  0x65f8ae in print_backtrace
    at /root/src/github.com/jacopo-chevallard/BEAGLE/build/dependencies/astrofortran-src/src/lib_messages.f90:842
#2  0x6604fb in __lib_messages_MOD_printerror
    at /root/src/github.com/jacopo-chevallard/BEAGLE/build/dependencies/astrofortran-src/src/lib_messages.f90:364
#3  0x5ea0d6 in __lib_io_MOD_copy_file
    at /root/src/github.com/jacopo-chevallard/BEAGLE/build/dependencies/astrofortran/src/lib_io.f90:536
#4  0x44384c in __io_generic_MOD_copy_input_files_to_output_folder
    at /root/src/github.com/jacopo-chevallard/BEAGLE/src/io_generic.f90:171
#5  0x406be8 in beagle
    at /root/src/github.com/jacopo-chevallard/BEAGLE/src/BEAGLE.f90:305
#6  0x404a44 in main
    at /root/src/github.com/jacopo-chevallard/BEAGLE/src/BEAGLE.f90:6

I need to specify the path to the env.list file, if I simply use "--env-file env.list" I get the following error

docker: open env.list: no such file or directory. See 'docker run --help'.

jacopo-chevallard commented 6 years ago

Hi, did you follow these instructions and download the templates? From he error message it looks like you either didn't download them, or you put them in a location that cannot be found by Beagle

aron600 commented 6 years ago

I did follow the instructions. I compared the templates on my computer with the bank and it appears a couple of them and the readme were not downloaded. It now runs, but I receive this segfault error after it ran for almost an hour with several multinest outputs:

Total Samples:                              6830

Nested Sampling ln(Z):                -17.551746

Acceptance Rate:                        0.311880

Replacements:                               2137

Total Samples:                              6852

Nested Sampling ln(Z):                -17.548256

 ln(ev)=  -17.471369917582123      +/-  0.25097208834539730     

 Total Likelihood Evaluations:         6852

 Sampling finished. Exiting MultiNest

 Param            1  posterior mean:    9.63707352    

 Param            2  posterior mean:    5.54818535    

 Param            3  posterior mean:   0.248488635    

 Param            4  posterior mean:    9.69446373    

 Param            5  posterior mean:   -1.11403418    

 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

[ERROR: Photometric object `` not found! ]

 [FUNCTION: "getPhotBandList" ]

 [MODULE: "PhotObjListMod" ]

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:

#0  0x7ff953fddef7 in ???

#1  0x7ff953fdd12d in ???

#2  0x7ff95370d4af in ???

#3  0x65f848 in print_backtrace

at /root/src/github.com/jacopo-chevallard/BEAGLE/build/dependencies/astrofortran-src/src/lib_messages.f90:841

#4  0x6615df in __lib_messages_MOD_print_error

at /root/src/github.com/jacopo-chevallard/BEAGLE/build/dependencies/astrofortran-src/src/lib_messages.f90:791

#5  0x453302 in __photobjlistmod_MOD_getphotbandlist

at /root/src/github.com/jacopo-chevallard/BEAGLE/src/PhotObjListMod.f90:251

#6  0x4083d2 in beagle

at /root/src/github.com/jacopo-chevallard/BEAGLE/src/BEAGLE.f90:447

#7  0x404a44 in main

at /root/src/github.com/jacopo-chevallard/BEAGLE/src/BEAGLE.f90:6

my terminal command was:

docker run --rm -it -v /Users/Eric/BEAGLE-general:/BEAGLE_virtual_workdir --env-file /Users/Eric/BEAGLE-general/env.list beagletool/beagle:0.18.5 --parameter-file /BEAGLE_virtual_workdir/params/fit_photometry_example.param --fit

jacopo-chevallard commented 6 years ago

The program worked as expected, in fact the last error message is just due to the fact that there are no more objects to fit ! I'll close this issue then

A last thing: please, take a look on how to format your issues https://guides.github.com/features/mastering-markdown/, in particular the use of the triple back ticks to insert the output of a program and avoid the creation of spurious references to other issues (which are created when sing the # symbol)