Skip to content

Commit 9289086

Browse files
andriishAndrii VerbytskyiAndrii Verbytskyi
authored
Avoid warnings (#154)
* Try to remove the warnings * Try to remove the warnings * Try to remove the warnings * Try to remove the warnings * Try to remove the warnings * OK * Fixes * OK * OK * OK * OK * OK * Try to fix the calculations * Try printout * Update ZEUS_I1787035.jl * Update test_forward_model.jl --------- Co-authored-by: Andrii Verbytskyi <andriish@pcatlas18.mpp.mpg.de> Co-authored-by: Andrii Verbytskyi <andrii.verbytskyi@mpp.mpg.de>
1 parent 1c81f5c commit 9289086

12 files changed

+98
-71
lines changed

data/ZEUS_I1787035/ZEUS_I1787035.jl

Lines changed: 88 additions & 58 deletions
Large diffs are not rendered by default.

data/ZEUS_I1787035/zeus_transfer_matrix.jl

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

examples/bat_fit_dirichlet.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ using QCDNUM
99
using Plots, Random, Distributions, ValueShapes, ParallelProcessingTools
1010
using StatsBase, LinearAlgebra
1111
zeus_include_path = string(chop(pathof(PartonDensity), tail=20), "data/ZEUS_I1787035/ZEUS_I1787035.jl")
12-
include(zeus_include_path)
12+
MD_ZEUS_I1787035 = include(zeus_include_path)
1313
gr(fmt=:png);
1414
rng = MersenneTwister(42)
1515

examples/bat_fit_dirichlet_syserr.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ using Plots, Random, Distributions, ValueShapes, ParallelProcessingTools
1313
using StatsBase, LinearAlgebra
1414

1515
zeus_include_path = string(chop(pathof(PartonDensity), tail=20), "data/ZEUS_I1787035/ZEUS_I1787035.jl")
16-
include(zeus_include_path)
16+
MD_ZEUS_I1787035 = include(zeus_include_path)
1717
gr(fmt=:png);
1818
rng = MersenneTwister(42);
1919

examples/bat_fit_valence.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ using Plots, Random, Distributions, ValueShapes, ParallelProcessingTools
1010
using StatsBase, LinearAlgebra
1111

1212
zeus_include_path = string(chop(pathof(PartonDensity), tail=20), "data/ZEUS_I1787035/ZEUS_I1787035.jl")
13-
include(zeus_include_path)
13+
MD_ZEUS_I1787035 = include(zeus_include_path)
1414
gr(fmt=:png);
1515
rng = MersenneTwister(42)
1616

examples/forward_model.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ using QCDNUM, PartonDensity
88
using Plots, Printf, NaNMath, Parameters, Random, Distributions
99

1010
zeus_include_path = string(chop(pathof(PartonDensity), tail=20), "data/ZEUS_I1787035/ZEUS_I1787035.jl")
11-
include(zeus_include_path)
1211

13-
const MD_DOCS = MD_ZEUS_I1787035
12+
const MD_DOCS = include(zeus_include_path)
1413

1514
# ## Define input PDFs
1615
# We can use `DirichletPDFParams` or `ValencePDFParams`, as long

examples/zeus_interface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ using PartonDensity, CSV, DelimitedFiles
66

77
zeus_include_path = string(chop(pathof(PartonDensity), tail=20), "data/ZEUS_I1787035/ZEUS_I1787035.jl")
88
sample_data_include_path = string(chop(pathof(PartonDensity), tail=20), "data/EXAMPLE_1/HERAPDF20_NNLO_EIG_ePp.txt")
9-
include(zeus_include_path)
9+
MD_ZEUS_I1787035=include(zeus_include_path)
1010

1111
# Read in an example integrated cross section
1212
numbers_from_file = readdlm(sample_data_include_path)

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using Test
22
using ArgCheck
3-
include("../data/ZEUS_I1787035/ZEUS_I1787035.jl")
3+
const MD_ZEUS_I1787035=include("../data/ZEUS_I1787035/ZEUS_I1787035.jl")
44
@testset "PartonDensity" begin
55

66
include("test_parametrisations.jl")

test/test_forward_model.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ using QCDNUM
8888
@test all(counts_pred_em .<= 1.0e3)
8989

9090
counts_pred_gen = merge(counts_pred_gen, (counts_pred_ep_val=counts_pred_ep, counts_pred_em_val=counts_pred_em))
91-
9291
@test all(counts_pred_ep .≈ counts_pred_ref.counts_pred_ep_val)
9392
@test all(counts_pred_em .≈ counts_pred_ref.counts_pred_em_val)
9493

test/test_parametrisations.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ using Test
33
using Random, Distributions
44
using Plots, ValueShapes
55
import BAT
6-
include("../data/ZEUS_I1787035/ZEUS_I1787035.jl")
76
@testset "Valence PDF parametrisation" begin
87

98
local val_pdf_params

0 commit comments

Comments
 (0)