Skip to content

Commit c5841fe

Browse files
committed
fix precompile output dir [skip ci]
1 parent b78b4e5 commit c5841fe

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "AstroPlot"
22
uuid = "00b67d96-df8a-4e04-ab4d-0170e12eeaec"
33
authors = ["islent <leoislent@gmail.com>"]
4-
version = "0.1.2"
4+
version = "0.1.3"
55

66
[deps]
77
AstroIO = "c85a633c-0c3f-44a2-bffe-7f9d0681b3e7"
@@ -40,7 +40,7 @@ Colors = "0.12"
4040
DataFrames = "1"
4141
DocStringExtensions = "0.8, 0.9"
4242
FileIO = "1"
43-
GLMakie = "0.9"
43+
GLMakie = "0.9, 0.10"
4444
Images = "0.25, 0.26"
4545
LaTeXStrings = "1"
4646
LoopVectorization = "0.12"

src/precompile.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@setup_workload begin
22
@compile_workload begin
33
foldertest = joinpath(@__DIR__, "../test")
4+
# foldertemp = joinpath(tempdir(), "AstroPlot.jl")
5+
46
header, data = read_gadget2(joinpath(foldertest, "plummer/snapshot_0000.gadget2"), uAstro, uGadget2, type=Star)
57
h, d = read_gadget2(joinpath(foldertest, "plummer_unitless.gadget2"), nothing, uGadget2, type=Star)
68

@@ -25,8 +27,8 @@
2527
fig = plot_profiling(joinpath(foldertest, "profiling.csv"))
2628
fig, df = plot_energy(joinpath(foldertest, "energy.csv"))
2729
fig, df = plot_energy_delta(joinpath(foldertest, "energy.csv"))
28-
fig = plot_densitycurve(data)
29-
fig = plot_rotationcurve(data)
30+
fig = plot_densitycurve(data, savefolder = foldertest)
31+
fig = plot_rotationcurve(data, savefolder = foldertest)
3032

3133
#TODO: there is something wrong???
3234
plot_positionslice(
@@ -40,6 +42,7 @@
4042
FigScale, FigLagrange, df = plot_radii(
4143
joinpath(foldertest, "plummer/"), "snapshot_", collect(0:20:200), ".gadget2", gadget2(),
4244
times = collect(0.0:0.01:0.1) * u"Gyr", title = "Direct Sum const",
45+
savefolder = foldertest,
4346
)
4447

4548
plot_positionslice(joinpath(foldertest, "mosaic/"), "snapshot_", collect(1:9:100), ".gadget2", gadget2(),
@@ -49,7 +52,7 @@
4952
)
5053
plt = mosaicview(joinpath(foldertest, "mosaic/"), "pos_", collect(1:9:100), ".png"; fillvalue = 0.5, npad = 3, ncol = 4, rowmajor = true)
5154

52-
png2video(joinpath(foldertest, "mosaic/"), "pos_", ".png", "TDE.mp4")
55+
png2video(joinpath(foldertest, "mosaic/"), "pos_", ".png", joinpath(foldertest, "TDE.mp4"))
5356

5457
unicode_scatter(d, nothing)
5558
unicode_density(d, nothing)

0 commit comments

Comments
 (0)