Skip to content
Snippets Groups Projects
Commit a7833cc7 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[data.dataset] Improve documentation

parent 427ffd73
No related branches found
No related tags found
1 merge request!12Streamlining
Pipeline #39020 passed
......@@ -61,8 +61,8 @@ class JSONDataset:
the JSON file.
loader : object
A function that receives as input, a context dictionary (with a
"protocol" and "subset" keys indicating which protocol and subset are
A function that receives as input, a context dictionary (with at least
a "protocol" and "subset" keys indicating which protocol and subset are
being served), and a dictionary with ``{key: path}`` entries, and
returns a dictionary with the loaded data.
......@@ -204,9 +204,10 @@ class CSVDataset:
the CSV file(s).
loader : object
A function that receives, as input, a dictionary with ``{name: value}``
entries (for each header in the input CSV file), and returns a
dictionary with the loaded data.
A function that receives as input, a context dictionary (with, at
least, a "subset" key indicating which subset is being served), and a
dictionary with ``{key: path}`` entries, and returns a dictionary with
the loaded data.
keymaker : object
A function that receives as input the same input from the ``loader``,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment