Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,10 @@ session.

- [Getting Started](https://github.com/metamorphic-labs/orcapod-python/blob/main/docs/getting-started.md):
sources, streams and function pods, step by step.
- [Tutorial](https://github.com/metamorphic-labs/orcapod-python/blob/main/docs/tutorial/index.md):
a self-paced course in eleven short parts, from a first stream to a stored, re-runnable
pipeline over files, with exercises.
- [Tutorials](https://github.com/metamorphic-labs/orcapod-python/blob/main/docs/tutorial/index.md):
a self-paced core course in seven parts, from a first stream to a stored, re-runnable
pipeline, and short tutorials on files, inspecting results, tracing a value, chaining
pipelines and handling errors, with exercises.
- [Concepts](https://github.com/metamorphic-labs/orcapod-python/tree/main/docs/concepts): sources,
streams, function pods, operators, pipelines and jobs, identity and hashing, file types,
arrays and your own data types.
Expand Down
9 changes: 9 additions & 0 deletions changelog.d/ITL-1460.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### Changed

- The tutorial section is "Tutorials": a core course (Parts 0 to 6) and short tutorials that
each cover one subject and can be read in any order afterwards. Part 8 is split into
"Inspecting results", "Tracing a value" and "Chaining pipelines"; Parts 7, 9 and 10 are
"Working with files", "Handling errors" and "Where next". Their pages have new addresses
(`docs/tutorial/files.md`, `inspecting-results.md`, `tracing-a-value.md`,
`chaining-pipelines.md`, `handling-errors.md`, `where-next.md`). The pages list a job's
steps with `print(job.diagram())`. (ITL-1460)
2 changes: 1 addition & 1 deletion docs/concepts/file-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Pipelines over scientific data pass references to files between steps. Orcapod h
for this, and the choice of type decides **what a result's validity depends on**: the
content of the file, or only its location.

For a guided introduction see the tutorial, [Part 7](../tutorial/07-files.md).
For a guided introduction see the tutorial [Working with files](../tutorial/files.md).

## The types

Expand Down
2 changes: 1 addition & 1 deletion docs/concepts/notebooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ print(job.nodes["rates"].run().header())

A view holds the default columns only (tags and data). For system tags, source info and
the other hidden columns, ask the node: `as_table(columns=...)`, as in
[Part 8 of the tutorial](../tutorial/08-inspecting-and-tracing.md). `run()` on each kind of
the tutorial [Inspecting results](../tutorial/inspecting-results.md#tracing-rows). `run()` on each kind of
object is the table "What `run()` does on each kind of object" in
[Streams](streams.md#computing-a-stream-outside-a-job-run).

Expand Down
4 changes: 2 additions & 2 deletions docs/concepts/pipeline-job.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ The three stages:
and failed; see
[Reading the run summary](function-pods.md#reading-the-run-summary).

Among `job.run()`'s optional arguments, the tutorial's
[Part 9](../tutorial/09-when-things-go-wrong.md) demonstrates `orchestrator=` (for example
Among `job.run()`'s optional arguments, the tutorial
[Handling errors](../tutorial/handling-errors.md) demonstrates `orchestrator=` (for example
`SyncPipelineOrchestrator(error_policy="fail_fast")` to stop at the first failing row; the
default policy skips failed rows and continues) and `observer=` (`StatusObserver`,
`LoggingObserver`) to record what happened during the run. An observer only watches: one
Expand Down
4 changes: 2 additions & 2 deletions docs/concepts/provenance.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ The result is an `Absence`. Its fields hold:
- `removed_by`: the step that removed it, a `Step`;
- `because`: the reason, in words.

Tutorial [Part 8](../tutorial/08-inspecting-and-tracing.md) shows a row removed by a filter
The tutorial [Tracing a value](../tutorial/tracing-a-value.md#missing-rows) shows a row removed by a filter
and one removed by a join.

## On the diagram
Expand Down Expand Up @@ -247,7 +247,7 @@ print(warm.highlight().marks == trace.highlight().marks)
```

In a notebook the diagram is drawn as a picture, the mark as a bold line on its node. Here
is the job of tutorial [Part 8](../tutorial/08-inspecting-and-tracing.md), first plain,
is the job of the tutorial [Tracing a value](../tutorial/tracing-a-value.md), first plain,
then with the trace of one firing rate highlighted. Its path stops at `rates`: the grouping
after it is dimmed. That rate reused the result an equal input had computed, so `rates` is
marked `reused`:
Expand Down
5 changes: 5 additions & 0 deletions docs/dev/documentation-style.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,3 +60,8 @@ dot is **not** enough."
- "Key points" ends the text, before the exercises. It repeats what the part taught and adds
nothing: no new term, link or feature, and no preview of the next part.
- No "Next: ..." line. The site has its own next-page link.
- The section is a core course (Parts 0 to 6, read in order) and short tutorials on one subject
each (ITL-1460). A short tutorial has no part number, says which core parts it needs in a
"**Before you start:**" line after its opening, and runs on its own from `make_dataset()`.
- List a job's steps with `print(job.diagram())`; do not write a helper that walks
`node.upstreams`.
2 changes: 1 addition & 1 deletion docs/dev/scripts/provenance_diagrams.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

The pictures are drawn by Orcapod itself (``job.diagram(highlight=...)``) from the
tutorial's synthetic dataset (``docs/tutorial/workshop_data.py``), over the pipelines of
tutorial Part 8. Each is the diagram's standalone SVG (the image a notebook shows: on its
the tutorial "Tracing a value". Each is the diagram's standalone SVG (the image a notebook shows: on its
own white background, so it reads on a light and a dark page alike).

Run it to rewrite the pictures after a change to the diagram::
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,4 +232,4 @@ With `pip`, in the activated environment: `python my_pipeline.py`.
The results above are held in memory, so each new run computes everything again. To save
results in a database and have later runs compute only what is new, record the same steps
inside a `PipelineJob`. See [Pipelines and Jobs](concepts/pipeline-job.md), or work through
the [Tutorial](tutorial/index.md), which builds up to it step by step.
the [Tutorials](tutorial/index.md), which build up to it step by step.
5 changes: 3 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ for tag, data in result:

- [Getting Started](getting-started.md) -- a hands-on walkthrough of sources, streams,
function pods, and operators.
- [Tutorial](tutorial/index.md) -- a self-paced course in eleven short parts, from a first
stream to a stored, re-runnable pipeline over files, with exercises and solutions.
- [Tutorials](tutorial/index.md) -- a self-paced core course in seven parts, from a first
stream to a stored, re-runnable pipeline, and short tutorials on files, inspecting results,
tracing a value, chaining pipelines and handling errors, with exercises and solutions.
- [Concepts](concepts/sources.md) -- deeper explanations of Orcapod's core abstractions.
- [Troubleshooting](troubleshooting.md) -- common errors, their causes and fixes.
- [API Reference](api/index.md) -- complete reference for all public classes and functions.
4 changes: 2 additions & 2 deletions docs/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ same (`Run of job '...': 1 row failed.`).
**Fix.** The message says how to see the full traceback:
`job.last_run.print_traceback("label")`. While developing, run with
`job.run(orchestrator=SyncPipelineOrchestrator(error_policy="fail_fast"))` (from
`orcapod.pipeline`) so that the first failure stops the run and raises. See the tutorial,
[Part 9](tutorial/09-when-things-go-wrong.md).
`orcapod.pipeline`) so that the first failure stops the run and raises. See the tutorial
[Handling errors](tutorial/handling-errors.md).

### `TypeError: ...() got an unexpected keyword argument 'ctx'` from a `sink_pod`

Expand Down
Loading
Loading