Skip to content

Commit bbeeac7

Browse files
committed
datapath
1 parent 6224a35 commit bbeeac7

5 files changed

Lines changed: 14 additions & 12 deletions

File tree

src/IntegerTriangles.jl

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file is part of IntegerTriangles.
22
# Copyright Peter Luschny. License is MIT.
33

4-
# Version of: UTC 2021-05-04 12:10:53
5-
# 02469da0-acc1-11eb-2334-878b440003ef
4+
# Version of: UTC 2021-05-04 12:31:52
5+
# f0ecc0e0-acc3-11eb-3a38-f548c6979685
66

77
# Do not edit this file, it is generated from the modules and will be overwritten!
88
# Edit the modules in the src directory and build this file with BuildTriangles.jl!
@@ -1758,7 +1758,7 @@ s = Explore(T, tra)
17581758
s == [] && continue
17591759
mat = [mat; reshape(s, 1, 3)]
17601760
end
1761-
path = profilepath(name * ".md")
1761+
path = datapath(name * ".md")
17621762
rm(path; force=true)
17631763
open(path, "w") do io
17641764
println(io, "```@raw html")
@@ -2021,6 +2021,7 @@ const ModuleTrianglesUtils = ""
20212021
const srcdir = realpath(joinpath(dirname(@__FILE__)))
20222022
const ROOTDIR = dirname(srcdir)
20232023
const datadir = joinpath(ROOTDIR, "data")
2024+
const profiledir = joinpath(ROOTDIR, "profile")
20242025
oeis_file() = joinpath(datadir, "stripped")
20252026
is_oeis_installed() = isfile(oeis_file())
20262027
function datapath(name)
@@ -2032,8 +2033,8 @@ end
20322033
function profilepath(name)
20332034
srcdir = realpath(joinpath(dirname(@__FILE__)))
20342035
ROOTDIR = dirname(srcdir)
2035-
datadir = joinpath(ROOTDIR, "profiles")
2036-
profilepath = joinpath(datadir, name)
2036+
profiledir = joinpath(ROOTDIR, "profiles")
2037+
profilepath = joinpath(profiledir, name)
20372038
end
20382039
function oeis_notinstalled()
20392040
if !is_oeis_installed()

src/TrianglesTables.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function PrettyTraits(T, name)
4949
mat = [mat; reshape(s, 1, 3)]
5050
end
5151

52-
path = profilepath(name * ".md")
52+
path = datapath(name * ".md")
5353
rm(path; force=true)
5454
open(path, "w") do io
5555
println(io, "```@raw html")

src/TrianglesUtils.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const ModuleTrianglesUtils = ""
1818
const srcdir = realpath(joinpath(dirname(@__FILE__)))
1919
const ROOTDIR = dirname(srcdir)
2020
const datadir = joinpath(ROOTDIR, "data")
21+
const profiledir = joinpath(ROOTDIR, "profile")
2122
oeis_file() = joinpath(datadir, "stripped")
2223
is_oeis_installed() = isfile(oeis_file())
2324

@@ -31,8 +32,8 @@ end
3132
function profilepath(name)
3233
srcdir = realpath(joinpath(dirname(@__FILE__)))
3334
ROOTDIR = dirname(srcdir)
34-
datadir = joinpath(ROOTDIR, "profiles")
35-
profilepath = joinpath(datadir, name)
35+
profiledir = joinpath(ROOTDIR, "profiles")
36+
profilepath = joinpath(profiledir, name)
3637
end
3738

3839
function oeis_notinstalled()

test/perftests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file is part of IntegerTriangles.
22
# Copyright Peter Luschny. License is MIT.
33

4-
# Version of: UTC 2021-05-04 12:10:53
5-
# 0249aae0-acc1-11eb-3161-ed72dbb321db
4+
# Version of: UTC 2021-05-04 12:31:52
5+
# f0f154c0-acc3-11eb-0a97-dff0874271d4
66

77
# Do not edit this file, it is generated from the modules and will be overwritten!
88
# Edit the modules in the src directory and build this file with BuildTriangles.jl!

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# This file is part of IntegerTriangles.
22
# Copyright Peter Luschny. License is MIT.
33

4-
# Version of: UTC 2021-05-04 12:10:53
5-
# 0249aae0-acc1-11eb-0389-79ddecb45274
4+
# Version of: UTC 2021-05-04 12:31:52
5+
# f0f12dae-acc3-11eb-27b9-2d16144ae833
66

77
# Do not edit this file, it is generated from the modules and will be overwritten!
88
# Edit the modules in the src directory and build this file with BuildTriangles.jl!

0 commit comments

Comments
 (0)