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

Raw File Download
Permalink

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.

  • content
content badge Iframe embedding
swh:1:cnt:371c1aae4e88f17dff2a40d1fc124adaba38f517
Citations

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.

  • content
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
#!/usr/bin/env python3

import pandas as pd
import numpy as np
from pmap import pmap
import os

resolution = 2 # 15

try:
    job_ID = os.environ["SLURM_ARRAY_TASK_ID"]
    print("This is task # {:} in a SLURM Job Array".format(job_ID))
except KeyError:
    print("This is a single job.")
    job_ID = 1

sd_array = np.logspace(-2, -0.5, resolution)
sp_array = np.logspace(-4, -2, resolution)

params = [(sd, sp) for sd in sd_array for sp in sp_array]

def simulation_wrapper(sd_sp_tuple):
    from simple import simplest_simulations
    return simplest_simulations(*sd_sp_tuple, trials=1, map=map)

output = pmap(simulation_wrapper, params)

df = pd.concat(dict(zip(params, output)), names=['sd', 'sp'])
df.index = df.index.droplevel(2)
df.to_csv('SimSweep{:}.csv.gz'.format(job_ID), compression='gzip')

back to top

Software Heritage — Copyright (C) 2015–2025, 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— Contact— JavaScript license information— Web API