Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ ROSE makes it easy to build and train a scattering emulator. ROSE enables aspiri

For any bug reports or feature requests, please make use of the Github issues tab on the repository. We also welcome all pull requests for software, documentation, and user-contributed tutorials!

## Note:


While this project did lead to a successful emulator, it was found that a particular type of high-fidelity solver is actually more useful in a Bayesian calibration context, which lead to the development of BAND software [jitR](https://github.com/beykyle/jitr). Currently, this is what we use for calibration of nuclear reaction models, and is what we recomend.

This repository and the [associated publication](https://journals.aps.org/prc/abstract/10.1103/PhysRevC.109.044612) may still be of interest, so it will remain available, but we will not be maintaining the software package or adding new features. If you want to use ROSE, please feel free to do so, but be aware that it is no longer being actively developed.

The application of model order reduction and emulation to nuclear reactions is still an exciting area of research, so the tool or technique we recommend for Bayesian calibration of reaction models may change in the future!

-- ROSE team

## Installation

ROSE is hosted at [pypi.org/project/nuclear-rose/](https://pypi.org/project/nuclear-rose/). To install as a user, run the following
Expand Down
4 changes: 2 additions & 2 deletions src/rose/training.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def build_sae(
ScatteringAmplitudeEmulator.from_train
"""

(n_basis, n_EIM) = sae_config
n_basis, n_EIM = sae_config

base = base_interaction.interactions[0][0]

Expand Down Expand Up @@ -398,7 +398,7 @@ def _multiple_formatter(x, pos):
den = denominator
num = int(np.rint(den * x / number))
com = gcd(num, den)
(num, den) = (int(num / com), int(den / com))
num, den = (int(num / com), int(den / com))
if den == 1:
if num == 0:
return r"$0$"
Expand Down
4 changes: 2 additions & 2 deletions src/rose/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ def numerov_kernel(
# intial conditions
x0, xf = domain
xnm = x0
(y0, y0_prime) = (initial_conditions[0], initial_conditions[1])
y0, y0_prime = (initial_conditions[0], initial_conditions[1])

# number of steps
N = int(np.ceil((xf - x0) / dx))
Expand Down Expand Up @@ -719,7 +719,7 @@ def numerov_kernel_meshless(
# intial conditions
x0, xf = domain
xnm = x0
(y0, y0_prime) = (initial_conditions[0], initial_conditions[1])
y0, y0_prime = (initial_conditions[0], initial_conditions[1])

# use Taylor expansion for y1
y0_dbl_prime = -g(x0, *g_args) * y0
Expand Down
1 change: 0 additions & 1 deletion tests/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

import rose


ANGLES = np.linspace(0, np.pi, 100)
COSTHETA = np.cos(ANGLES)

Expand Down
2 changes: 0 additions & 2 deletions tests/generate_benchmark_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

from benchmark import BenchmarkData


# In[2]:


Expand Down Expand Up @@ -87,7 +86,6 @@

import matplotlib.pyplot as plt


# In[10]:


Expand Down