Sindbad.Types Module
Types Module
The Types
module consolidates and organizes all the types used in the SINDBAD framework into a central location. This ensures a single line for type definitions, promoting consistency and reusability across all SINDBAD packages. It also provides helper functions and utilities for working with these types.
Provided Types and Their Purpose
1. SindbadTypes
Purpose: Abstract type serving as the base for all Julia types in the SINDBAD framework.
Use: Provides a unified hierarchy for SINDBAD-specific types.
2. ModelTypes
Purpose: Defines types for models in SINDBAD.
Use: Represents various model/processes.
3. TimeTypes
Purpose: Defines types for handling time-related operations.
Use: Manages temporal aggregation of data on the go.
4. SpinupTypes
Purpose: Defines types for spinup processes in SINDBAD.
Use: Handles methods for initialization and equilibrium states for models.
5. LandTypes
Purpose: Defines types for collecting variable from
land
and saving them.Use: Builds land and array for model execution.
6. ArrayTypes
Purpose: Defines types for array structures used in SINDBAD.
Use: Provides specialized array types for efficient data handling in model simulation and output.
7. InputTypes
Purpose: Defines types for input data and configurations.
Use: Manages input flows and forcing data.
8. ExperimentTypes
Purpose: Defines types for experiments conducted in SINDBAD.
Use: Represents experimental setups, configurations, and results.
9. OptimizationTypes
Purpose: Defines types for optimization-related functions and methods in SINDBAD.
Use: Separates methods for optimization methods, cost functions, methods, etc.
10. MetricsTypes
Purpose: Defines types for metrics used to evaluate model performance in SINDBAD.
Use: Represents performance metrics and cost evaluation.
11. MLTypes
Purpose: Defines types for machine learning components in SINDBAD.
Use: Supports machine learning workflows and data structures.
12. LongTuple
Purpose: Provides definitions and methods for working with
longTuple
type.Use: Facilitates operations on tuples with many elements to break them down into smaller tuples.
13. TypesFunctions
Purpose: Provides helper functions related to SINDBAD types.
Use: Includes utilities for introspection, type manipulation, and documentation.
Key Functionality
purpose(T::Type)
Description: Returns a string describing the purpose of a type in the SINDBAD framework.
Use: Provides a descriptive string for each type, explaining its role or functionality.
Example:
purpose(::Type{BayesOptKMaternARD5}) = "Bayesian Optimization using Matern 5/2 kernel with Automatic Relevance Determination from BayesOpt.jl"
Notes
The
Types
module serves as the backbone for type definitions in SINDBAD, ensuring modularity and extensibility.Each type is documented with its purpose, making it easier for developers to understand and extend the framework.
Exported
Sindbad.Types.ArrayView Type
ArrayView{T,N,S<:AbstractArray{<:Any,N}}
Fields:
s::S
: The underlying array being viewed.groupname::Symbol
: The name of the group containing the array.arrayname::Symbol
: The name of the array being accessed.
Sindbad.Types.GroupView Type
GroupView{S}
Fields:
groupname::Symbol
: The name of the group being accessed.s::S
: The underlying data structure containing the group.
Sindbad.Types.LandWrapper Type
LandWrapper{S}
Fields:
s::S
: The underlying NamedTuple or data structure being wrapped.
Sindbad.Types.LongTuple Type
LongTuple{NSPLIT,T}
A data structure that represents a tuple split into smaller chunks for better memory management and performance.
Fields
data::T
: The underlying tuple datan::Val{NSPLIT}
: The number of splits as a value type
Type Parameters
NSPLIT
: The number of elements in each splitT
: The type of the underlying tuple
Sindbad.Types.SindbadTypes Type
SindbadTypes
Abstract type for all Julia types in SINDBAD
Type Hierarchy
SindbadTypes <: Any
Extended help
Available methods/subtypes:
ArrayTypes
: Abstract type for all array types in SINDBADModelArrayType
: Abstract type for internal model array types in SINDBADModelArrayArray
: Use standard Julia arrays for model variablesModelArrayStaticArray
: Use StaticArrays for model variablesModelArrayView
: Use array views for model variables
OutputArrayType
: Abstract type for output array types in SINDBADOutputArray
: Use standard Julia arrays for outputOutputMArray
: Use MArray for outputOutputSizedArray
: Use SizedArray for outputOutputYAXArray
: Use YAXArray for output
ExperimentTypes
: Abstract type for model run flags and experimental setup and simulations in SINDBADOutputStrategy
: Abstract type for model output strategies in SINDBADDoNotOutputAll
: Disable output of all model variablesDoNotSaveSingleFile
: Save output variables in separate filesDoOutputAll
: Enable output of all model variablesDoSaveSingleFile
: Save all output variables in a single file
ParallelizationPackage
: Abstract type for using different parallelization packages in SINDBADQbmapParallelization
: Use Qbmap for parallelizationThreadsParallelization
: Use Julia threads for parallelization
RunFlag
: Abstract type for model run configuration flags in SINDBADDoCalcCost
: Enable cost calculation between model output and observationsDoDebugModel
: Enable model debugging modeDoFilterNanPixels
: Enable filtering of NaN values in spatial dataDoInlineUpdate
: Enable inline updates of model stateDoNotCalcCost
: Disable cost calculation between model output and observationsDoNotDebugModel
: Disable model debugging modeDoNotFilterNanPixels
: Disable filtering of NaN values in spatial dataDoNotInlineUpdate
: Disable inline updates of model stateDoNotRunForward
: Disable forward model runDoNotRunOptimization
: Disable model parameter optimizationDoNotSaveInfo
: Disable saving of model informationDoNotSpinupTEM
: Disable terrestrial ecosystem model spinupDoNotStoreSpinup
: Disable storing of spinup resultsDoNotUseForwardDiff
: Disable forward mode automatic differentiationDoRunForward
: Enable forward model runDoRunOptimization
: Enable model parameter optimizationDoSaveInfo
: Enable saving of model informationDoSpinupTEM
: Enable terrestrial ecosystem model spinupDoStoreSpinup
: Enable storing of spinup resultsDoUseForwardDiff
: Enable forward mode automatic differentiation
InputTypes
: Abstract type for input data and processing related options in SINDBADDataFormatBackend
: Abstract type for input data backends in SINDBADBackendNetcdf
: Use NetCDF format for input dataBackendZarr
: Use Zarr format for input data
ForcingTime
: Abstract type for forcing variable types in SINDBADForcingWithTime
: Forcing variable with time dimensionForcingWithoutTime
: Forcing variable without time dimension
InputArrayBackend
: Abstract type for input data array types in SINDBADInputArray
: Use standard Julia arrays for input dataInputKeyedArray
: Use keyed arrays for input dataInputNamedDimsArray
: Use named dimension arrays for input dataInputYaxArray
: Use YAXArray for input data
SpatialSubsetter
: Abstract type for spatial subsetting methods in SINDBADSpaceID
: Use site ID (all caps) for spatial subsettingSpaceId
: Use site ID (capitalized) for spatial subsettingSpaceid
: Use site ID for spatial subsettingSpacelat
: Use latitude for spatial subsettingSpacelatitude
: Use full latitude for spatial subsettingSpacelon
: Use longitude for spatial subsettingSpacelongitude
: Use full longitude for spatial subsettingSpacesite
: Use site location for spatial subsetting
LandTypes
: Abstract type for land related types that are typically used in preparing objects for model runs in SINDBADLandWrapperType
: Abstract type for land wrapper types in SINDBADGroupView
: Represents a group of data within aLandWrapper
, allowing access to specific groups of variables.LandWrapper
: Wraps the nested fields of a NamedTuple output of SINDBAD land into a nested structure of views that can be easily accessed with dot notation.
PreAlloc
: Abstract type for preallocated land helpers types in prepTEM of SINDBADPreAllocArray
: use a preallocated array for model outputPreAllocArrayAll
: use a preallocated array to output all land variablesPreAllocArrayFD
: use a preallocated array for finite difference (FD) hybrid experimentsPreAllocArrayMT
: use arrays of nThreads size for land model output for replicates of multiple threadsPreAllocStacked
: save output as a stacked vector of land using map over temporal dimensionPreAllocTimeseries
: save land output as a preallocated vector for time series of landPreAllocYAXArray
: use YAX arrays for model output
MLTypes
: Abstract type for types in machine learning related methods in SINDBADActivationType
: Abstract type for activation functions used in ML modelsCustomSigmoid
: Use a custom sigmoid activation function. In this case, thek_σ
parameter in ml_model sections of the settings is used to control the steepness of the sigmoid function.FluxRelu
: Use Flux.jl ReLU activation functionFluxSigmoid
: Use Flux.jl Sigmoid activation functionFluxTanh
: Use Flux.jl Tanh activation function
MLGradType
: Abstract type for automatic differentiation or finite differences for gradient calculationsEnzymeGrad
: Use Enzyme.jl for automatic differentiationFiniteDiffGrad
: Use FiniteDiff.jl for finite difference calculationsFiniteDifferencesGrad
: Use FiniteDifferences.jl for finite difference calculationsForwardDiffGrad
: Use ForwardDiff.jl for automatic differentiationPolyesterForwardDiffGrad
: Use PolyesterForwardDiff.jl for automatic differentiationZygoteGrad
: Use Zygote.jl for automatic differentiation
MLModelType
: Abstract type for machine learning models used in SINDBADFluxDenseNN
: simple dense neural network model implemented in Flux.jl
MLOptimizerType
: Abstract type for optimizers used for training ML models in SINDBADOptimisersAdam
: Use Optimisers.jl Adam optimizer for training ML models in SINDBADOptimisersDescent
: Use Optimisers.jl Descent optimizer for training ML models in SINDBAD
MLTrainingType
: Abstract type for training a hybrid algorithm in SINDBADCalcFoldFromSplit
: Use a split of the data to calculate the folds for cross-validation. The default wat to calculate the folds is by splitting the data into k-folds. In this case, the split is done on the go based on the values given in ml_training.split_ratios and n_folds.LoadFoldFromFile
: Use precalculated data to load the folds for cross-validation. In this case, the data path has to be set under ml_training.fold_path and ml_training.which_fold. The data has to be in the format of a jld2 file with the following structure: /folds/0, /folds/1, /folds/2, ... /folds/n_folds. Each fold has to be a tuple of the form (train_indices, test_indices).LossModelObsML
: Loss function using metrics between the predicted model and observation as defined in optimization.jsonMixedGradient
: Use a mixed gradient approach for training using gradient from multiple methods and combining them with pullback from zygote
MetricTypes
: Abstract type for performance metrics and cost calculation methods in SINDBADDataAggrOrder
: Abstract type for data aggregation order in SINDBADSpaceTime
: Aggregate data first over space, then over timeTimeSpace
: Aggregate data first over time, then over space
PerfMetric
: Abstract type for performance metrics in SINDBADMSE
: Mean Squared Error: Measures the average squared difference between predicted and observed valuesNAME1R
: Normalized Absolute Mean Error with 1/R scaling: Measures the absolute difference between means normalized by the range of observationsNMAE1R
: Normalized Mean Absolute Error with 1/R scaling: Measures the average absolute error normalized by the range of observationsNNSE
: Normalized Nash-Sutcliffe Efficiency: Measures model performance relative to the mean of observations, normalized to [0,1] rangeNNSEInv
: Inverse Normalized Nash-Sutcliffe Efficiency: Inverse of NNSE for minimization problems, normalized to [0,1] rangeNNSEσ
: Normalized Nash-Sutcliffe Efficiency with uncertainty: Incorporates observation uncertainty in the normalized performance measureNNSEσInv
: Inverse Normalized Nash-Sutcliffe Efficiency with uncertainty: Inverse of NNSEσ for minimization problemsNPcor
: Normalized Pearson Correlation: Measures linear correlation between predictions and observations, normalized to [0,1] rangeNPcorInv
: Inverse Normalized Pearson Correlation: Inverse of NPcor for minimization problemsNSE
: Nash-Sutcliffe Efficiency: Measures model performance relative to the mean of observationsNSEInv
: Inverse Nash-Sutcliffe Efficiency: Inverse of NSE for minimization problemsNSEσ
: Nash-Sutcliffe Efficiency with uncertainty: Incorporates observation uncertainty in the performance measureNSEσInv
: Inverse Nash-Sutcliffe Efficiency with uncertainty: Inverse of NSEσ for minimization problemsNScor
: Normalized Spearman Correlation: Measures monotonic relationship between predictions and observations, normalized to [0,1] rangeNScorInv
: Inverse Normalized Spearman Correlation: Inverse of NScor for minimization problemsPcor
: Pearson Correlation: Measures linear correlation between predictions and observationsPcor2
: Squared Pearson Correlation: Measures the strength of linear relationship between predictions and observationsPcor2Inv
: Inverse Squared Pearson Correlation: Inverse of Pcor2 for minimization problemsPcorInv
: Inverse Pearson Correlation: Inverse of Pcor for minimization problemsScor
: Spearman Correlation: Measures monotonic relationship between predictions and observationsScor2
: Squared Spearman Correlation: Measures the strength of monotonic relationship between predictions and observationsScor2Inv
: Inverse Squared Spearman Correlation: Inverse of Scor2 for minimization problemsScorInv
: Inverse Spearman Correlation: Inverse of Scor for minimization problems
SpatialDataAggr
: Abstract type for spatial data aggregation methods in SINDBADSpatialMetricAggr
: Abstract type for spatial metric aggregation methods in SINDBADMetricMaximum
: Take maximum value across spatial dimensionsMetricMinimum
: Take minimum value across spatial dimensionsMetricSpatial
: Apply spatial aggregation to metricsMetricSum
: Sum values across spatial dimensions
ModelTypes
: Abstract type for model types in SINDBADDoCatchModelErrors
: Enable error catching during model executionDoNotCatchModelErrors
: Disable error catching during model executionLandEcosystem
: Abstract type for all SINDBAD land ecosystem models/approaches
OptimizationTypes
: Abstract type for optimization related functions and methods in SINDBADCostMethod
: Abstract type for cost calculation methods in SINDBADCostModelObs
: cost calculation between model output and observationsCostModelObsLandTS
: cost calculation between land model output and time series observationsCostModelObsMT
: multi-threaded cost calculation between model output and observationsCostModelObsPriors
: cost calculation between model output, observations, and priors. NOTE THAT THIS METHOD IS JUST A PLACEHOLDER AND DOES NOT CALCULATE PRIOR COST PROPERLY YET
GSAMethod
: Abstract type for global sensitivity analysis methods in SINDBADGSAMorris
: Morris method for global sensitivity analysisGSASobol
: Sobol method for global sensitivity analysisGSASobolDM
: Sobol method with derivative-based measures for global sensitivity analysis
OptimizationMethod
: Abstract type for optimization methods in SINDBADBayesOptKMaternARD5
: Bayesian Optimization using Matern 5/2 kernel with Automatic Relevance Determination from BayesOpt.jlCMAEvolutionStrategyCMAES
: Covariance Matrix Adaptation Evolution Strategy (CMA-ES) from CMAEvolutionStrategy.jlEvolutionaryCMAES
: Evolutionary version of CMA-ES optimization from Evolutionary.jlOptimBFGS
: Broyden-Fletcher-Goldfarb-Shanno (BFGS) from Optim.jlOptimLBFGS
: Limited-memory Broyden-Fletcher-Goldfarb-Shanno (L-BFGS) from Optim.jlOptimizationBBOadaptive
: Black Box Optimization with adaptive parameters from Optimization.jlOptimizationBBOxnes
: Black Box Optimization using Natural Evolution Strategy (xNES) from Optimization.jlOptimizationBFGS
: BFGS optimization with box constraints from Optimization.jlOptimizationFminboxGradientDescent
: Gradient descent optimization with box constraints from Optimization.jlOptimizationFminboxGradientDescentFD
: Gradient descent optimization with box constraints using forward differentiation from Optimization.jlOptimizationGCMAESDef
: Global CMA-ES optimization with default settings from Optimization.jlOptimizationGCMAESFD
: Global CMA-ES optimization using forward differentiation from Optimization.jlOptimizationMultistartOptimization
: Multi-start optimization to find global optimum from Optimization.jlOptimizationNelderMead
: Nelder-Mead simplex optimization method from Optimization.jlOptimizationQuadDirect
: Quadratic Direct optimization method from Optimization.jl
ParameterScaling
: Abstract type for parameter scaling methods in SINDBADScaleBounds
: Scale parameters relative to their boundsScaleDefault
: Scale parameters relative to default valuesScaleNone
: No parameter scaling applied
SpinupTypes
: Abstract type for model spinup related functions and methods in SINDBADSpinupMode
: Abstract type for model spinup modes in SINDBADAllForwardModels
: Use all forward models for spinupEtaScaleA0H
: scale carbon pools using diagnostic scalars for ηH and c_remainEtaScaleA0HCWD
: scale carbon pools of CWD (cLitSlow) using ηH and set vegetation pools to c_remainEtaScaleAH
: scale carbon pools using diagnostic scalars for ηH and ηAEtaScaleAHCWD
: scale carbon pools of CWD (cLitSlow) using ηH and scale vegetation pools by ηANlsolveFixedpointTrustregionCEco
: use a fixed-point nonlinear solver with trust region for carbon pools (cEco)NlsolveFixedpointTrustregionCEcoTWS
: use a fixed-point nonlinear solver with trust region for both cEco and TWSNlsolveFixedpointTrustregionTWS
: use a fixed-point nonlinearsolver with trust region for Total Water Storage (TWS)ODEAutoTsit5Rodas5
: use the AutoVern7(Rodas5) method from DifferentialEquations.jl for solving ODEsODEDP5
: use the DP5 method from DifferentialEquations.jl for solving ODEsODETsit5
: use the Tsit5 method from DifferentialEquations.jl for solving ODEsSSPDynamicSSTsit5
: use the SteadyState solver with DynamicSS and Tsit5 methodsSSPSSRootfind
: use the SteadyState solver with SSRootfind methodSelSpinupModels
: run only the models selected for spinup in the model structureSpinup_TWS
: Spinup spinup_mode for Total Water Storage (TWS)Spinup_cEco
: Spinup spinup_mode for cEcoSpinup_cEco_TWS
: Spinup spinup_mode for cEco and TWS
SpinupSequence
: Basic Spinup sequence without time aggregationSpinupSequenceWithAggregator
: Spinup sequence with time aggregation for corresponding forcingtime series
TimeTypes
: Abstract type for implementing time subset and aggregation types in SINDBADTimeAggregation
: Abstract type for time aggregation methods in SINDBADTimeAllYears
: aggregation/slicing to include all yearsTimeArray
: use array-based time aggregationTimeDay
: aggregation to daily time stepsTimeDayAnomaly
: aggregation to daily anomaliesTimeDayIAV
: aggregation to daily IAVTimeDayMSC
: aggregation to daily MSCTimeDayMSCAnomaly
: aggregation to daily MSC anomaliesTimeDiff
: aggregation to time differences, e.g. monthly anomaliesTimeFirstYear
: aggregation/slicing of the first yearTimeHour
: aggregation to hourly time stepsTimeHourAnomaly
: aggregation to hourly anomaliesTimeHourDayMean
: aggregation to mean of hourly data over daysTimeIndexed
: aggregation using time indices, e.g., TimeFirstYearTimeMean
: aggregation to mean over all time stepsTimeMonth
: aggregation to monthly time stepsTimeMonthAnomaly
: aggregation to monthly anomaliesTimeMonthIAV
: aggregation to monthly IAVTimeMonthMSC
: aggregation to monthly MSCTimeMonthMSCAnomaly
: aggregation to monthly MSC anomaliesTimeNoDiff
: aggregation without time differencesTimeRandomYear
: aggregation/slicing of a random yearTimeShuffleYears
: aggregation/slicing/selection of shuffled yearsTimeSizedArray
: aggregation to a sized arrayTimeYear
: aggregation to yearly time stepsTimeYearAnomaly
: aggregation to yearly anomalies
TimeAggregator
: define a type for temporal aggregation of an array
Sindbad.Types.TimeAggregator Type
TimeAggregator{I, aggr_func}
define a type for temporal aggregation of an array
Fields:
indices::I
: indices to be collected for aggregationaggr_func::aggr_func
: a function to use for aggregation, defaults to mean
Sindbad.Types.TimeAggregatorViewInstance Type
TimeAggregatorViewInstance{T, N, D, P, AV <: TimeAggregator}
Fields:
parent::P
: the parent dataagg::AV
: a view of the parent datadim::Val{D}
: a val instance of the type that stores the dimension to be aggregated on
Sindbad.Types.getSindbadDefinitions Method
getSindbadDefinitions(sindbad_module, what_to_get; internal_only=true)
Returns all defined (and optionally internal) objects in the SINDBAD framework.
Arguments
sindbad_module
: The module to search for defined thingswhat_to_get
: The type of things to get (e.g., Type, Function)internal_only
: Whether to only include internal definitions (default: true)
Returns
- An array of all defined things in the SINDBAD framework
Example
# Get all defined types in the SINDBAD framework
defined_types = getSindbadDefinitions(Sindbad, Type)
Sindbad.Types.getTypeDocString Method
getTypeDocString(T::Type)
Generate a docstring for a type in a formatted way.
Description
This function generates a formatted docstring for a type, including its purpose and type hierarchy.
Arguments
T
: The type for which the docstring is to be generated
Returns
- A string containing the formatted docstring for the type.
Sindbad.Types.loopWriteTypeDocString Method
loopWriteTypeDocString(o_file, T)
Write a docstring for a type to a file.
Description
This function writes a docstring for a type to a file.
Arguments
o_file
: The file to write the docstring toT
: The type for which the docstring is to be generated
Returns
o_file
: The file with the docstring written to it
Sindbad.Types.methodsOf Function
methodsOf(T::Type; ds="", is_subtype=false, bullet=" - ")
methodsOf(M::Module; the_type=Type, internal_only=true)
Display subtypes and their purposes for a type or module in a formatted way.
Description
This function provides a hierarchical display of subtypes and their purposes for a given type or module. For types, it shows a tree-like structure of subtypes and their purposes. For modules, it shows all defined types and their subtypes.
Arguments
T::Type
: The type whose subtypes should be displayedM::Module
: The module whose types should be displayedds::String
: Delimiter string between entries (default: newline)is_subtype::Bool
: Whether to include nested subtypes (default: false)bullet::String
: Bullet point for each entry (default: " - ")the_type::Type
: Type of objects to display in module (default: Type)internal_only::Bool
: Whether to only show internal definitions (default: true)
Returns
- A formatted string showing the hierarchy of subtypes and their purposes
Examples
# Display subtypes of a type
methodsOf(LandEcosystem)
# Display with custom formatting
methodsOf(LandEcosystem; ds=", ", bullet=" * ")
# Display including nested subtypes
methodsOf(LandEcosystem; is_subtype=true)
# Display types in a module
methodsOf(Sindbad)
# Display specific types in a module
methodsOf(Sindbad; the_type=Function)
Extended help
The output format for types is:
## TypeName
Purpose of the type
## Available methods/subtypes:
- subtype1: purpose
- subtype2: purpose
- nested_subtype1: purpose
- nested_subtype2: purpose
If no subtypes exist, it will show " - None
".
Sindbad.Types.purpose Function
purpose(T::Type)
Returns a string describing the purpose of a type in the SINDBAD framework.
Description
This is a base function that should be extended by each package for their specific types.
When in SINDBAD models, purpose is a descriptive string that explains the role or functionality of the model or approach within the SINDBAD framework. If the purpose is not defined for a specific model or approach, it provides guidance on how to define it.
When in SINDBAD lib, purpose is a descriptive string that explains the dispatch on the type for the specific function. For instance, metricTypes.jl has a purpose for the types of metrics that can be computed.
Arguments
T::Type
: The type whose purpose should be described
Returns
- A string describing the purpose of the type
Example
# Define the purpose for a specific model
purpose(::Type{BayesOptKMaternARD5}) = "Bayesian Optimization using Matern 5/2 kernel with Automatic Relevance Determination from BayesOpt.jl"
# Retrieve the purpose
println(purpose(BayesOptKMaternARD5)) # Output: "Bayesian Optimization using Matern 5/2 kernel with Automatic Relevance Determination from BayesOpt.jl"
Sindbad.Types.showMethodsOf Method
showMethodsOf(T)
Display the subtypes and their purposes of a type in a formatted way.
Description
This function displays the hierarchical structure of subtypes and their purposes for a given type. It uses methodsOf
internally to generate the formatted output and prints it to the console.
Arguments
T
: The type whose subtypes and purposes should be displayed
Returns
nothing
Examples
# Display subtypes of LandEcosystem
showMethodsOf(LandEcosystem)
# Display subtypes of a specific model type
showMethodsOf(ambientCO2)
Extended help
The output format is the same as methodsOf
, showing:
## TypeName
Purpose of the type
## Available methods/subtypes:
- subtype1: purpose
- subtype2: purpose
- nested_subtype1: purpose
- nested_subtype2: purpose
This function is a convenience wrapper around methodsOf
that automatically prints the output to the console.
Sindbad.Types.writeTypeDocString Method
writeTypeDocString(o_file, T)
Write a docstring for a type to a file.
Description
This function writes a docstring for a type to a file.
Arguments
o_file
: The file to write the docstring toT
: The type for which the docstring is to be generated
Returns
o_file
: The file with the docstring written to it
Internal
Base.getproperty Method
Base.getproperty(g::GroupView, aggr_func::Symbol)
Accesses a specific array within a group of data in a GroupView
.
Returns:
An ArrayView
object for the specified array.
Base.propertynames Method
Base.propertynames(o::GroupView)
Returns the property names of a group in a GroupView
.
Base.show Method
Base.show(io::IO, gv::GroupView)
Displays a summary of the contents of a GroupView
.