Skip to content

Commit

Permalink
Merge pull request #157 from gdkrmr/master
Browse files Browse the repository at this point in the history
Document YAXConfig
  • Loading branch information
felixcremer authored Aug 15, 2022
2 parents 923e04a + 4fe6d28 commit 6c5d123
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/YAXArrays.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
module YAXArrays

"""
Default configuration for YAXArrays, has the following fields:
- `workdir[]::String = "./"` The default location for temporary cubes.
- `recal[]::Bool = false` set to true if you want `@loadOrGenerate` to always recalculate the results.
- `chunksize[]::Any = :input` Set the default output chunksize.
- `max_cache[]::Float64 = 1e8` The maximum cache used by mapCube.
- `cubedir[]::""` the default location for `Cube()` without an argument.
- `subsetextensions::Array{Any} = []` List of registered functions, that convert subsetting input into dimension boundaries.
"""
global const YAXDefaults = (
workdir = Ref("./"),
recal = Ref(false),
Expand All @@ -7,6 +18,8 @@ global const YAXDefaults = (
cubedir = Ref(""),
subsetextensions = [],
)


global const workdir = YAXDefaults.workdir
global const recal = YAXDefaults.recal
function __init__()
Expand Down

0 comments on commit 6c5d123

Please sign in to comment.