Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for training on latest version #11

Merged
merged 2 commits into from
Jun 6, 2023
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
16 changes: 16 additions & 0 deletions .github/workflows/CompatHelper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CompatHelper
on:
schedule:
- cron: 0 0 * * *
workflow_dispatch:
jobs:
CompatHelper:
runs-on: ubuntu-latest
steps:
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
run: julia -e 'using CompatHelper; CompatHelper.main()'
2 changes: 1 addition & 1 deletion src/experiments/models_gnn.jl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ struct MPSolver{E, P, D, T<: AbstractFloat} <:
encoder::E
processor::P
decoder::D
Δt::Vector{T}
Δt::AbstractArray{T}
end

"""
Expand Down
2 changes: 1 addition & 1 deletion src/experiments/utilis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function get_dataloader(args)
e = args.experiment
!isfile("datasets/$e.jld2") && generate_save_data(e) #TODO: add wave equation in the future

(;domain, u, dx, dt, θ) = load("datasets/$e.jld2")
(domain, u, dx, dt, θ) = values(load("datasets/$e.jld2"))

u = u[:,1:2:end,:] # downsample
dx = dx * 2
Expand Down
2 changes: 1 addition & 1 deletion src/generate/generate_data_CE.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function generate_data(
rand(Uniform(0, 2π), 5),
),
)
u[:, :, i] .= Array{T}(solve(newprob, Tsit5(), saveat = dt))'
u[:, :, i] .= Array{T}(solve(newprob, Tsit5(), saveat = dt).original_sol)'
end
return u, dx, dt, θ, domain
end
Expand Down