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://github.com/thompsar/Venison
08 May 2024, 12:04:05 UTC
  • Code
  • Branches (1)
  • Releases (0)
  • Visits
Revision c55221310da4c0fd9f7dcd8333fa1af83b3cfcac authored by Andrew Thompson on 08 July 2020, 19:20:21 UTC, committed by Andrew Thompson on 08 July 2020, 19:20:21 UTC
Gaussian Modeling
Gaussian modeling with gradient descent optimization implemented. Significant code cleanup, class encapsulation and UI bug fixes are needed.
1 parent 3655697
  • Files
  • Changes
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    • c55221310da4c0fd9f7dcd8333fa1af83b3cfcac
    No releases to show
  • 6e1d34b
  • /
  • src
  • /
  • lcurve_plot.py
Raw File Download
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 ...

Permalinks

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
  • snapshot
origin badgerevision badge
swh:1:rev:c55221310da4c0fd9f7dcd8333fa1af83b3cfcac
origin badgedirectory badge Iframe embedding
swh:1:dir:aaf8d26b9704cc8d17174d3065bdfeeb4706578e
origin badgecontent badge Iframe embedding
swh:1:cnt:7b4d667fd0d2d4fbda46f0644abf053d19e1bad3
origin badgesnapshot badge
swh:1:snp:71e7db0713a1908384d6d87dbe47c158ef2e85eb
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.

  • revision
  • directory
  • content
  • 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 ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: c55221310da4c0fd9f7dcd8333fa1af83b3cfcac authored by Andrew Thompson on 08 July 2020, 19:20:21 UTC
Gaussian Modeling
Tip revision: c552213
lcurve_plot.py
from bokeh.plotting import figure
from src.mycolors import mycolors

def lcurve_plot(datalist,colorlist=None,**kwargs):
    golden=1.61803
    height=400
    #plot_width=int(height*golden)
    if 'plot_height' not in kwargs:
        kwargs['plot_height']= height
        kwargs['plot_width']=int(height*golden)
    if 'plot_width' not in kwargs:
        kwargs['plot_width']=int(kwargs['plot_height']*golden)
        
    myplot=figure(x_axis_type = 'log', y_axis_type = 'log', **kwargs)
    myplot.outline_line_alpha=0
    
    #Xaxis prefs
    myplot.xgrid.grid_line_color = None
    myplot.xaxis.axis_label="Residual Norm"
    myplot.xaxis.axis_label_text_font='helvetica'
    myplot.xaxis.axis_label_text_font_style='normal'
    myplot.xaxis.axis_label_text_font_size='24pt'
    myplot.xaxis.major_label_text_font='helvetica'
    myplot.xaxis.major_label_text_font_size='16pt'

    #Yaxis prefs
    myplot.ygrid.grid_line_alpha = 0.5
    myplot.ygrid.grid_line_dash = [6, 4]
    myplot.yaxis.axis_label="Solution Norm"
    myplot.yaxis.axis_label_text_font='helvetica'
    myplot.yaxis.axis_label_text_font_style='normal'
    myplot.yaxis.axis_label_text_font_size='24pt'
    myplot.yaxis.major_label_text_font='helvetica'
    myplot.yaxis.major_label_text_font_size='16pt'

    if not colorlist: #if colorlist is not present, use default scheme
        for i in range(int(len(datalist)/2)):
            myplot.circle(datalist[i*2],datalist[i*2+1], color=mycolors(i))
        return myplot
    else:
        for i in range(int(len(datalist)/2)):
            myplot.circle(datalist[i*2],datalist[i*2+1], color=colorlist[i])
        return myplot
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 ...

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

back to top