OSCR

Block oscr:b:YF2QT91E2AS43-K

A block of code linked to a paper, with an identifier OSCR gives it for good: it is never reused nor deleted. What a block identifier is · this block in JSON

Identifier
oscr:b:YF2QT91E2AS43-K
Status
Current: the registry links these lines to the paper today.
Paper
doi:10.1038/s41592-025-02855-4 · its page here
Code
github.com/cantinilab/stories, stories/loss.py, lines 63 to 137 (quadratic_loss)
Commit read
7d8269b8cc940b3d85c34729dd1f715822e74a97
SWHID
swh:1:cnt:f2378c57754bdb095d262b2e7853f89b75bfd258;origin=https://github.com/cantinilab/stories;anchor=swh:1:rev:7d8269b8cc940b3d85c34729dd1f715822e74a97;path=/stories/loss.py;lines=63-137 (the Software Heritage identifier of the file as its authors published it, before any email address is hidden for display; it opens in Software Heritage's archive once the repository is archived there)
In the paper
paragraph 91 (Methods › Wasserstein gradient flow learning with a quadratic objective › Learni); paragraph 98 (Methods › Computational OT › OTT solvers)
Linked by
the registry's matching program (lexical-v1), which can be wrong
Identifier given
2026-11-14

Open these lines beside the paper

Cite this block

Copy this text: the identifier and its page first, then the code, the paper and the SWHID.

Code block oscr:b:YF2QT91E2AS43-K (https://openscicode.org/b/oscr:b:YF2QT91E2AS43-K)
stories/loss.py, lines 63 to 137, in github.com/cantinilab/stories (https://github.com/cantinilab/stories), commit 7d8269b8cc940b3d85c34729dd1f715822e74a97.
Paper: https://doi.org/10.1038/s41592-025-02855-4
SWHID: swh:1:cnt:f2378c57754bdb095d262b2e7853f89b75bfd258;origin=https://github.com/cantinilab/stories;anchor=swh:1:rev:7d8269b8cc940b3d85c34729dd1f715822e74a97;path=/stories/loss.py;lines=63-137