Advanced Octave A15 — Identity policies and reruns
Advanced GNU Octave with GX-TXT · Module 03
Repeating a calculation should not require you to manually delete scientific results. GX-TXT distinguishes the creation of a new Dataset from the controlled replacement of a result belonging to the same manufacturer.
Objectives and prerequisites
The introductory course and the A13–A14 lessons have introduced publication and ID. Now we observe replace_owned in a synthetic example, with GX-TXT dev112-P011-bis and Octave 9.4.0.
The octave_advanced_owned_result result contains five points generated by 1 + 0,25 t V: they are not measures. The exercise creates and then recalculates the same ID in the same script. Use a didactic session and a free ID: do not point the program to results that you want to keep as separate versions.
Create and repeat
Import ripeti_risultato.m, register it and run it with the Runner.
In the cycle, the request declares replace_owned = true. After each publication, the script reads the series and compares the signal values to the calculated ones, using a tolerance of 10⁻¹².
In the test both steps read five lines and report reproduced=1. The first creates the result; the second requires the controlled replacement of the same ID. The comparison concerns the numerical values of the signal, does not prove that the files are identical bytes per bytes.
What does property mean
The contract of the publication allows replace_owned for a replacement only when the ownership and destination conditions provided by the provider are met. It is not a generic permission to overwrite Dataset of other manufacturers. If the conditions are not met, choose a new ID and retain the previous result; do not bypass the control by intervening on the internal files.
Reproducibility also requires the same scientific definition, input data, parameters and software version. If you want to compare results of two different configurations, separate IDs and explicit origin are often more informative than a replacement.
Exercise
- What does the
reproducedfield test for example? replace_ownedauthorises to overwrite any Dataset?- When would you use two separate IDs instead of replacing a result?
Worked solution
- That the select values of the signal coincide within the tolerance with the newly calculated ones.
- No: the substitution is subject to the rules of ownership and destination of the contract.
- When you need to store and compare two versions or configurations of the analysis.
Other steps of this project
- Advanced Octave A75 — Dynamical systems in phase space
- Advanced Octave A81 — Geography of the waves and a 3D surface
- Advanced Octave A82 — Age, sex and demographic inequalities
- Advanced Octave A83 — All-cause mortality, certified COVID deaths and surveillance
- Advanced Octave A84 — A reproducible public account
- Advanced Octave A73 — Optimization landscapes and 3D trajectories