Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://codeberg.org/gnuastro/papers
06 December 2023, 14:06:29 UTC
  • Code
  • Branches (3)
  • Releases (0)
  • Visits
Revision 43186705c89e99fd4dbf5549ad031d27d77dfe6f authored by Mohammad Akhlaghi on 25 August 2022, 15:02:29 UTC, committed by Mohammad Akhlaghi on 02 September 2022, 17:45:31 UTC
Added server authentication and FITS DATASUM for verficiation
SUMMARY: Nothing special is necessary for your existing projects. This
commit just addds two new features (read the commit description for more):
  1. To provide a user and password to servers that need authentication
     before they allow downloading of proprietary data,
  2. To use the FITS Standard's DATASUM for file verification (for cases
     where the file is not static on the server, and is generated upon
     receiving your download request).

Until now, Maneage didn't have any infrastructure for databases that
require authentication (through a user or password, when calling
'wget'). Furthermore, when the downloaded file is automatically generated
by the server upon request, the server usually adds metadata (like file
date, or query number and etc) in the header. Therefore the simple SHA256
checksum of the file would differ on every download! This made it very hard
to verify if the data (not headers) are unchanged.

With this commit, both these problems have been addressed:

 - Server authentication: the 'reproduce/software/config/LOCAL.conf' now
   contains three new variables for this purpose. With them, you can give
   your username and password, along with the authentication method of the
   server. The comments on top of these three variables give a full
   description of their usage.

 - Verifying only the data in a file (ignoring the headers): The
   'reproduce/analysis/config/INPUTS.conf' now accepts two new optional
   variables for each input file using the FITS standard's DATASUM
   convention: 'INPUT-%-fitsdatasum' and 'INPUT-%-fitshdu'. If the SHA256
   isn't specified for a file, Maneage will use these to verify the
   file. With the latter, you specify the HDU of the data you want to
   verify and with the former you give the DATASUM value for that HDU. As
   the name suggests, this is only valid for FITS files. If we find other
   formats that support a similar behavior, we can add this feature for
   those formats also. This is also thoroughly discussed in the comments of
   'reproduce/analysis/config/INPUTS.conf'.

This commit was done with the help of Pedram Ashofte Ardakani, Sepideh
Eskandarlou and Mohammadreza Khellat.
1 parent 79ee52e
  • Files
  • Changes
    • Branches
    • Releases
    • HEAD
    • refs/heads/maneage
    • refs/heads/pointing-simulate
    • refs/heads/zeropoint
    • 43186705c89e99fd4dbf5549ad031d27d77dfe6f
    No releases to show
  • 284b347
  • /
History
Cook and download a directory from the Software Heritage Vault

You have requested the cooking of the directory with identifier swh:1:dir:284b34727c4124eb1f77e11dce3a92ad682ad273 into a standard tar.gz archive.

Are you sure you want to continue ?

Download a directory from the Software Heritage Vault

You have requested the download of the directory with identifier swh:1:dir:284b34727c4124eb1f77e11dce3a92ad682ad273 as a standard tar.gz archive.

Are you sure you want to continue ?

Cook and download a revision from the Software Heritage Vault

You have requested the cooking of the history heading to revision with identifier swh:1:rev:43186705c89e99fd4dbf5549ad031d27d77dfe6f into a bare git archive.

Are you sure you want to continue ?

Download a revision from the Software Heritage Vault

You have requested the download of the history heading to revision with identifier swh:1:rev:43186705c89e99fd4dbf5549ad031d27d77dfe6f as a bare git archive.

Are you sure you want to continue ?

Invalid Email !

The provided email is not well-formed.

Download link has expired

The requested archive is no longer available for download from the Software Heritage Vault.

Do you want to cook it again ?

Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • snapshot
origin badgerevision badge
swh:1:rev:43186705c89e99fd4dbf5549ad031d27d77dfe6f
origin badgedirectory badge
swh:1:dir:284b34727c4124eb1f77e11dce3a92ad682ad273
origin badgesnapshot badge
swh:1:snp:e37e226bab517eef24d854467682b2fcf5d7dc32

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • snapshot
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: 43186705c89e99fd4dbf5549ad031d27d77dfe6f authored by Mohammad Akhlaghi on 25 August 2022, 15:02:29 UTC
Added server authentication and FITS DATASUM for verficiation
Tip revision: 4318670
FileModeSize
reproduce
tex
.dir-locals.el -rw-r--r--1.3 KB
.file-metadata -rw-r--r--9.0 KB
.gitignore -rw-r--r--1010 bytes
COPYING -rw-r--r--34.3 KB
README-hacking.md -rw-r--r--93.2 KB
README.md -rw-r--r--34.4 KB
paper.tex -rw-r--r--14.2 KB
project -rwxr-xr-x21.3 KB

The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

README.md

swh spinner

Loading README.md ...

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API