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

Revision 45068319614cc7f64e2e022af696841ecb589828 authored by NikVard on 15 September 2023, 16:15:46 UTC, committed by NikVard on 15 September 2023, 16:15:46 UTC
[REVISION] added scripts with proper names for figure generation
1 parent 7afc424
  • Files
  • Changes
  • 90d5ca9
  • /
  • run_sim.sh
Raw File Download

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
  • content
revision badge
swh:1:rev:45068319614cc7f64e2e022af696841ecb589828
directory badge
swh:1:dir:90d5ca9ba2f9d113c85a880e6a178d572376804b
content badge
swh:1:cnt:c0146f6b5cf710c47d66133e361886cb5a4fd86d

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
  • content
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
run_sim.sh
#!/usr/bin/env bash
# -*- encoding: utf-8 -*-

### Arguments list
### ----------------------------
# $CNT      :   simulation counter
# $RESDIR   :   results directory
# $FCONF    :   current configuration file
### ----------------------------

### Print current simulation start time [24H format]
CURRTIME=$(date +"%T")

echo "Running simulation $CNT with config file $FCONF at time $CURRTIME";

FNAME=$(basename $FCONF)
FNAME=$(echo $FNAME | cut -f 1 -d '.')

# python3 -c "from brian2 import *; clear_cache('cython');" > /dev/null 2>&1
command time -v python3 run_simulation.py -p $FCONF -sd $OUTDIR > "$RESDIR/sim_${CNT}_${FNAME}.txt" 2>&1

CODE=$?
echo $CODE

RESULT=""
if [ $CODE = 0 ]; then
    RESULT="success"
else
    RESULT="failure"
fi

echo "Done + $RESULT"
echo "$CNT : $FCONF : $RESULT" >> "$RESDIR/total.txt"
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 ...

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