Skip to content

Commit

Permalink
update ExportPluto.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
pawbz committed Oct 18, 2023
1 parent 24cf56d commit 02f93e5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/ExportPluto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,23 @@ on:
concurrency:
group: pluto-export
cancel-in-progress: true

# This action needs permission to write the exported HTML file to the gh-pages branch.
permissions:
contents: write
# (all other permission fields default to "none")

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout this repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install Julia
uses: julia-actions/setup-julia@v1
with:
version: "1.9"
version: "1" # This will automatically pick the latest Julia version
- name: Install TeXlive
run: sudo apt-get update && sudo apt-get install texlive-full

Expand All @@ -32,7 +37,7 @@ jobs:

# We set up a folder that Pluto can use to cache exported notebooks. If the notebook file did not change, then Pluto can take the exported file from cache instead of running the notebook.
- name: Set up notebook state cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: pluto_state_cache
key: ${{ runner.os }}-pluto_state_cache-v2-${{ hashFiles('**/Project.toml', '**/Manifest.toml', '.github/workflows/*' ) }}-${{ hashFiles('**/*jl') }}
Expand Down Expand Up @@ -60,8 +65,10 @@ jobs:
- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@releases/v3
uses: JamesIves/github-pages-deploy-action@releases/v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: .
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: .
single-commit: true

4 changes: 2 additions & 2 deletions Born-approximation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ function plot_image(image)
fig = Plot(Layout(yaxis_autorange="reversed", xaxis=attr(range=extrema(xgridUI) .+ [-20, 20]),
yaxis=attr(range=extrema(zgridUI) .+ [-10, 10]),
height=225, width=350, yaxis_title="Depth", xaxis_title="Distance", Subplots(shared_xaxes=true, shared_yaxes=true, rows=1, cols=1, subplot_titles=["Migration Image" ""])))
add_trace!(fig, heatmap(x=xgridUI, y=zgridUI, z=image, showscale=false, colorscale="Greys"), row=1, col=1)
add_trace!(fig, heatmap(x=xgridUI, y=zgridUI, z=image, showscale=false, colorscale="seismic"), row=1, col=1)
add_ageom!(fig, acq)
return PlutoPlotly.plot(fig)

Expand All @@ -621,7 +621,7 @@ function plot_animations(d1, d2, d1max)
end

# ╔═╡ cff433fb-e1c4-42ae-a310-db85f48d09e3
plot_animations(dgrid[mod(it_plot, div(length(tgrid), 2))+1, :, :], δdgrid[mod(it_plot, div(length(tgrid), 2))+1, :, :], maximum(abs, dgrid) / 2.0)
plot_animations(dgrid[mod(it_plot, div(length(tgrid), 2))+1, :, :], δdgrid[mod(it_plot, div(length(tgrid), 2))+1, :, :], maximum(abs, dgrid) / 1.0)

# ╔═╡ 98521f53-fbf4-4ba2-b0b9-629f21478a31
md"## References"
Expand Down

0 comments on commit 02f93e5

Please sign in to comment.