Skip to content

Commit

Permalink
modified: .github/workflows/rust.yml
Browse files Browse the repository at this point in the history
	modified:   README.md
	modified:   src/app.rs
	modified:   src/excitation_levels_nndc.rs
  • Loading branch information
alconley committed Jun 20, 2024
1 parent 0905a4a commit 954a7c1
Show file tree
Hide file tree
Showing 4 changed files with 2,526 additions and 2,512 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# Install GDK 3.0 Development Files
- name: Install GTK3 development files
run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev

# Optionally set PKG_CONFIG_PATH if gdk-3.0.pc is not found by pkg-config
- name: Set PKG_CONFIG_PATH
run: echo "PKG_CONFIG_PATH=$(pkg-config --variable pc_path pkg-config)"

- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down Expand Up @@ -50,7 +59,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- run: sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev
- run: sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libgtk-3-dev
- uses: actions-rs/cargo@v1
with:
command: test
Expand All @@ -77,6 +86,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Install GDK 3.0 Development Files
run: sudo apt-get update && sudo apt-get install -y libgtk-3-dev

- name: Set PKG_CONFIG_PATH
run: echo "PKG_CONFIG_PATH=$(pkg-config --variable pc_path pkg-config)"

- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Make sure you are using the latest version of stable rust by running `rustup upd

On Linux you need to first run:

`sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev`
`sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev libgtk-3-dev`

On Fedora Rawhide you need to run:

Expand Down
4 changes: 1 addition & 3 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,7 @@ impl SPSPlotApp {

if let Some(levels) = isotope_levels {
info!("Fetched excitation levels: {:?}", levels);
reaction.excitation_levels = levels.clone();
// return levels.clone();
reaction.excitation_levels = levels;
} else {
log::error!("Error fetching excitation levels for: {}", isotope);
}
Expand Down Expand Up @@ -421,7 +420,6 @@ impl App for SPSPlotApp {
});
} else {
egui::CentralPanel::default().show(ctx, |ui| {
ui.label("Reaction Data");
for (reaction, data) in &self.reaction_data {
ui.label(format!("{}: {:?}", reaction, data));
}
Expand Down
Loading

0 comments on commit 954a7c1

Please sign in to comment.