Git Product home page Git Product logo

bsg's Introduction

BSG -- Beta Spectrum Generator

alt text alt text alt text alt text Documentation Status

Purpose

Contributors:

This package calculates nuclear matrix elements relevant to allowed beta decay, and its corresponding spectrum according to the formalism by Hayen et al. (RevModPhys arXiv). It contains a graphical user interface written in Python which allows connection to, e.g., the ENSDF database.

The workings of the code is described in the following publication CompPhysComm arXiv.

Documentation

Please check http://bsg.readthedocs.io and CompPhysComm for a complete explanation.

bsg's People

Contributors

leenderthayen avatar plasorak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bsg's Issues

boost::bad_any_cast: failed conversion using boost::any_cast when running bsg_exec

Hello!

I'm trying to run the code as presented in https://bsg.readthedocs.io/en/latest/installation.html#execution after I've followed the installation section. The compilation was successful and I did not run make install in the end.

The system I'm trying to do this on is Centos7. Any help will be much appreciated.

The fill error is this:

ERROR: Option "output" not defined.
terminate called after throwing an instance of 'boost::bad_any_cast'
what(): boost::bad_any_cast: failed conversion using boost::any_cast
Aborted (core dumped)

Also, the part regarding output is a bit puzzling as I run exactly as described in the link above:
./bsg_exec -i init/63NI.ini -o 63Ni from build/bin directory.

Regards,
Stefan

error: ‘basic_logger_st’ is not a member of ‘spdlog’

Using the up-to date spdlog from github gives errors when compiling.

Checked with the source codes and it seems that the two functions "basic_logger_st" and "stdout_color_st" are under the folder "spdlog/sinks/". This is maybe a workaround but I simply included those in the "NuclearStructureManager.h" and the compilation was successful.

PySide2 issues with Qt5 for GUI

Hello,

So I have successfully installed the package, however I cannot run the exec or gui.

I have tried two different approaches:

The first is trying "./bsg_exec -i 63Ni.ini -o 63Ni" receiving:

"dyld: Library not loaded: @rpath/libCore.so
Referenced from: /Users/danielnaim/Desktop/Research/bsg-build2/bin/./bsg_exec
Reason: image not found
Abort trap: 6"

The second is going into the bsg_gui folder and running python big_gui.py to which I receive:

"objc[56081]: Class RunLoopModeTracker is implemented in both /anaconda3/lib/python3.7/site-packages/PySide2/Qt/lib/QtCore.framework/Versions/5/QtCore (0x11d977120) and /anaconda3/lib/libQt5Core.5.9.7.dylib (0x1245c3a80). One of the two will be used. Which one is undefined.
QObject::moveToThread: Current thread (0x7fc362c299e0) is not the object's thread (0x7fc362c38010).
Cannot move to target thread (0x7fc362c299e0)

You might be loading two sets of Qt binaries into the same process. Check that all plugins are compiled against the right Qt binaries. Export DYLD_PRINT_LIBRARIES=1 and check that only one set of binaries are being loaded.
qt.qpa.plugin: Could not load the Qt platform plugin "cocoa" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: cocoa, minimal, offscreen."

Any advice on how to proceed?

Best,
Dan

bsg-target.cmake is missing!

On a fresh install, it seems this file bsg-targets.cmake is missing.
The output below is from the configuration of CRADLE that is using the find_package(BSG REQUIRED)

[cmake] CMake Error at /usr/local/lib/bsg/bsg-config.cmake:6 (include):
[cmake]   include could not find load file:
[cmake] 
[cmake]     //lib/bsg/bsg-targets.cmake
[cmake] Call Stack (most recent call first):
[cmake]   source/CMakeLists.txt:21 (find_package)
[cmake] 
[cmake] 
[cmake] Configuring incomplete, errors occurred!

BSG error for Bismuth212 decay

Hello Leendert

I hope you are well. I was trying to use your tool for generating beta decay spectrum. However when I run it I get the following error message:

[2020-04-22 17:54:24.800] [warning] BSG: Configuration file "" cannot be found.
[2020-04-22 17:54:24.803] [warning] NME: Configuration file "" cannot be found.
Calculated b/Ac was NaN. Setting to 0.
Calculated d/Ac was NaN. Setting to 0.
Calculated M121/M101 was NaN. Setting ratio to 0 and M101 to 1.
gsl: qags.c:553: ERROR: bad integrand behavior found in the integration interval
Default GSL error handler invoked.
[1]    13449 abort      ./bsg_exec -i 212Bi.ini -o 212Bi

And no spectrum :(

Is this symptomatic of a particular problem? The log isn’t very helpful either…
I’m adding the ini fill at the end of this message.

Thanks!
Pierre

[Transition]
#Process can be: B+ (beta+), B- (beta-) or EC (electron capture)
Process=B-
#Type can be Gamow-Teller, Fermi or Mixed
Type=Fermi
#Mixing ratio is defined as g_A M_{GT}/g_V M_F
MixingRatio = 0.0
#Q Value is defined ground-state to ground state Q value in keV
QValue=2251.5

[Mother]
#Proton number of the mother nucleus
Z=83
#Mass number of the mother
A=212
#Mean charge radius in femtometer
Radius=7.15
#Quadrupole and higher-order deformations
# Beta2=0.269
# Beta4=0.182
# Beta6=0.070
#Double of the spin x parity of the nuclear state, always a (negative) integer
SpinParity=1
#Excitation energy relative to the ground state in keV
ExcitationEnergy=250
#Double of isospin of the nuclear state if known, always an integer
# Isospin=1

[Daughter]
Z=84
A=212
Radius=7.15
# Beta2=0.262
# Beta4=0.180
# Beta6=0.025
SpinParity=0
ExcitationEnergy=2922
# Isospin=1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.