Configuration sharing
muSRFlow can encode the current analysis settings into a single link that another instance can restore. This is useful for reproducing a session or for passing a fit setup to a colleague.
On the web
The share button in the tab bar (the chain-link icon) copies a link such as
http://musruser.psi.ch/muSRFlow/#c=...
Anyone who opens the link in a browser gets the same analysis settings, as long as the server exposes the same data.
A visitor who has the desktop build installed can also use the second button
next to the share button (the monitor icon). It copies the same payload as a
musrflow:// link instead:
musrflow://open/#c=...
A browser cannot navigate to its own https page and then hand the payload
to an installed application, so this dedicated scheme lets the web page open
the settings directly in the desktop app. Only the base URL differs; the
encoded fragment is byte-for-byte the same, so either link restores the same
analysis.
On the desktop
Electron cannot handle its own browser links, so it ships the same encoding backwards as well: open a muSRFlow configuration link (from the web or from a colleague) and choose Restore configuration link to paste it into the restore dialog. The analysis settings are applied while your local data and working directories remain untouched.
The installed application also registers the musrflow:// scheme, so
clicking such a link (in a mail client, a document, or the web page above)
starts muSRFlow and restores the embedded settings directly. The canonical
http://musruser.psi.ch/muSRFlow/#c=... link still works: paste it into the
restore dialog. See the desktop deployment notes for how the scheme is
installed, including the AppImage caveat.
Notes
The shared payload is a compact, optionally compressed fragment in the URL hash; nothing is sent to a third party.
A restored configuration may reference data that was never fit on the target machine. The parameter table is rebuilt from the restored settings and can be populated by running a fit.
The parameter-plot stanza is optional and keyed by the data source’s identity. When the sender’s parameter table could be read at share time it is carried inline as the main source, so on the web the plot opens immediately after restore (the browser’s
Plot parameters...action applies it the first time it is used). Otherwise it is applied when the same source exists on the target machine – a matching on-disk parameter-data path or an identical inline parameter table (see Remembered plot configurations). If neither applies it is ignored harmlessly and the plot opens with the normal dialog.