Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
32 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
language: julia | ||
julia: | ||
- 1.0 | ||
- 1 | ||
- nightly | ||
before_install: | ||
- sudo apt-get install python3-matplotlib | ||
after_success: | ||
- julia -e 'cd(Pkg.dir("DCEMRI")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())' | ||
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Coveralls.submit(process_folder())' | ||
## uncomment the following lines to override the default test script | ||
#script: | ||
# - julia --color=yes -e 'using Pkg; Pkg.activate(); Pkg.instantiate(); Pkg.test()' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
environment: | ||
matrix: | ||
- julia_version: 1.3 | ||
- julia_version: 1.5 | ||
- julia_version: nightly | ||
|
||
platform: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,18 @@ | ||
function demo(outdir::AbstractString="results") | ||
cd(joinpath(dirname(pathof(DCEMRI)), "..", "demo")) | ||
if outdir == "results" | ||
outdir = joinpath(dirname(pathof(DCEMRI)), "..", "demo", "results") | ||
end | ||
outdir = abspath(outdir) | ||
isdir(outdir) || mkdir(outdir) | ||
println("Processing in vivo data ...") | ||
|
||
datafile = joinpath(dirname(pathof(DCEMRI)), "..", "demo", "invivo.mat") | ||
# run the model | ||
results = fitdata(datafile="invivo.mat", outfile="$outdir/results.mat", models=[2]) | ||
|
||
if !haskey(Pkg.installed(), "PyPlot") | ||
# Do no make plots if PyPlot not installed | ||
println("PyPlot not installed. Plots will not be produced.") | ||
else | ||
# plot the results | ||
println("Plotting results ...") | ||
makeplots(results; outdir=outdir) | ||
if outdir == "results" | ||
println("Results can be found in ", Pkg.dir("DCEMRI/demo/$outdir")) | ||
else | ||
println("Results can be found in $outdir") | ||
end | ||
end | ||
results = fitdata(datafile=datafile, outfile="$outdir/results.mat", models=[2]) | ||
|
||
# plot the results | ||
println("Plotting results ...") | ||
makeplots(results; outdir=outdir) | ||
println("Results can be found in $outdir") | ||
println("Demo run complete.") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters