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/RaymondLab/Code
25 June 2024, 13:39:08 UTC
  • Code
  • Branches (12)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/Calibration
    • refs/heads/Calibration2
    • refs/heads/Master
    • refs/heads/VerticalTracking
    • refs/heads/code_generalization
    • refs/heads/consolidation_project_241B
    • refs/heads/local_configuration_241B
    • refs/heads/revert-2-consolidation_project_241B
    • refs/heads/rig241b_driftfix_sign
    • refs/heads/smr_to_smrx
    • refs/heads/tracking_dev
    • refs/tags/v1.0.0
    No releases to show
  • c602b73
  • /
  • Experiment Protocols
  • /
  • Experiment_Ella_June2019.s2s
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.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge Iframe embedding
swh:1:cnt:127f40d5f26ae1f68579045d35c3f84bdcdc5e69
origin badgedirectory badge Iframe embedding
swh:1:dir:271a5117f476ddf4e991116698b261c0c7d3cbcf
origin badgerevision badge
swh:1:rev:9261b1e083022ac6e07fc4c84d727c94167aa984
origin badgesnapshot badge
swh:1:snp:5000b5dcf61aa2cac987bbe6af9204d011668dda
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
  • directory
  • revision
  • 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: 9261b1e083022ac6e07fc4c84d727c94167aa984 authored by D253 on 14 October 2019, 17:47:56 UTC
Merge branch 'tracking_dev' of https://github.com/RaymondLab/Code into tracking_dev
Tip revision: 9261b1e
Experiment_Ella_June2019.s2s
'--------------------------------------------------------------------------------
' Rig-Specific parameters file Location
'--------------------------------------------------------------------------------
'D019
#include "C:\\Users\\raymondlab\\Documents\\Code\\Experiment Protocols\\Parameters_D006_Ella.s2s"

'''D253
''#include "C:\\Users\\RaymondLab\\Documents\\Code\\Experiment Protocols\\Parameters_D253_Ella.s2s"

'--------------------------------------------------------------------------------
' Universal Parameters File Location
'--------------------------------------------------------------------------------
''#include "C:\\Users\\Raymond Lab\\Documents\\Code\\Experiment Protocols\\Parameters_Universal_Ella.s2s"
#include "C:\\Users\\raymondlab\\Documents\\Code\\Experiment Protocols\\Parameters_Universal_Ella.s2s"


'--------------------------------------------------------------------------------
' MAIN PROGRAM
'--------------------------------------------------------------------------------
ToolbarConfig();


'--------------------------------------------------------------------------------
' Toolbar Callbacks
'--------------------------------------------------------------------------------
Func ToolbarIdle%()
  'This function calls repeatedly whenever nothing else is happening
  'if runExmpt=1, it is used to run a full expmt automatically.  -HP
  'expmtMode: 0=habit, 1=0x, 2=2x, 3=ipsi stim, 4=contra stim
  'test: 0=wait, 1=test, 2=train

  ' Check a valid sampling view is running
  var currView := ViewKind();
  if  currView <> 0 then
    return 1;
  endif;

  'Call TrackEye function repeatedly when it's in the training portion
  'this might not be how I want to do this but it's how they do driftFix
  if MaxTime() > (prevTime + delta) then
    'if driftFix = 1 then
    ''    driftFix%();
    'endif;
    if startTracking% = 1 then
      trackEye%();
    endif;
  endif;

  'If an experiment is running: - need to update parameters (ex. testLength, runLength) to reflect protocol we want to follow
  if runExpmt% = 1 then

      'Check the time. Seconds is the current time - compare it to the goal time of each segment
      if  MaxTime() > goalTime then

        docase

          ' MISC GAP A - runs at beginning and end
          case test% = 0 then
              startTracking% := 0;
              ToolbarTrackEyeOff%();
              'SampleKey("r");
              goalTime := MaxTime() + 5;
              SampleKey("x");
              ToolbarLightOff%(); Yield();
              ToolbarInit%(); Yield();

              if prePostNum = 3 then
                ToolbarQuitExpmt%();
                Return(1);
              endif

              test% := 7; 'skip runflash'

          ' MISC GAP B - flash before test
          case test% = 7 then
              SampleKey("7");
              goalTime := MaxTime() + 5;
              runFlash();
              test% := 4;

          ' MISC TEST - pre- and post-testing
          case test% = 4 then
              SampleKey("4");
              ToolbarLightOff%();
              startTracking% := 1;
              ToolbarTrackEyeOn%();
              goalTime := MaxTime() + testLength;
              docase 'prePostNum starts at 1, so 1st case is continuing experiment, second is ending experiment'
                case prePostNum = 1 then
                  prePostNum := prePostNum + 1;
                  test% := 3;
                case prePostNum = 2 then
                  prePostNum := prePostNum + 1;
                  test% := 0;
              endcase

          ' BLOCK: GAP A
          case test% = 1 then
              SampleKey("x");
              goalTime := MaxTime() + 120;
              startTracking% := 0;
              ToolbarLightOff%(); Yield();
              ToolbarInit%(); Yield();
              test% := 6;

          ' BLOCK: GAP B - flash before training
          case test% = 6 then
              SampleKey("6");
              goalTime := MaxTime() + 5;
              runFlash();
              test% := 3;

          ' BLOCK: TRAIN
          case test% = 3 then
              SampleKey("3");
              SampleKey("X");
              goalTime := MaxTime() + runLength;
              Yield(.3);
              'update the gain'
              if rep% = 0 then
                findNullEye();
              endif;
              if rep% > 0 then
                gain := gain + incrementSize;
              endif;

              rep% := rep% + 1;
              if rep% = nBlocks% then
                  test% := 0;
              else
                  test% := 1;
              endif;
              ToolbarLightOn%(); Yield(.1);
              'nullEyePos := 0;
              startTracking% := 1;

        endcase;
      endif;
  endif;

  Return(1);
End

'--------------------------------------------------------------------------------
'Configure expmt settings window
'--------------------------------------------------------------------------------
Func ToolbarConfigExpmt%()
  DlgCreate("Experiment settings");  'Start new dialog
  DlgInteger(1,"Number of run-test blocks",0,100,0,0,1);
  DlgInteger(2,"Number of tests per block",1,100,0,0,1);    'set to 0 if not using Chair
  DlgReal(3,"Run length (s)",0,5000);
  DlgReal(4,"Test length (s)",0,5000);
  DlgList(5,"Expmt mode", "habit|x0|x2|ipsi|contra|steps");
  DlgInteger(6,"Light flash on?)",0,1,0,0,"0|1");
  DlgReal(7,"Test stim and bilat (0 or 1)",0,1);

  DlgShow(nBlocks%, nTestreps%, runLength, testLength, expmtMode, flashon%,testStim);

  docase
  case expmtMode = 0 then     'habit
      sinPhDrum := 90;
      sinPhChair := 90;
      sinAmpChair := 10;
      sinAmpDrum := 0;
  case expmtMode = 1 then     'x0
      sinPhDrum := 90;
      sinPhChair := 90;
      sinAmpChair := 10;
      sinAmpDrum := 10;
  case expmtMode = 2 then     'x2
      sinPhDrum := -90;
      sinPhChair := 90;
      sinAmpChair := 10;
      sinAmpDrum := 10;
  case expmtMode = 3  then     'ipsi
      sinPhChair := -90;'D019:-90, D253:90'
      sinAmpDrum := 0;
  case expmtMode = 4 then      'contra
      sinPhChair := 90; 'D019:90, D253:-90'
      sinAmpDrum := 0;
  case expmtMode = 5 then      'steps
      ToolbarStepConfig%();
  endcase;


  if testStim > 0 then
      ToolbarPulseConfig%()
  endif;

  SetSequencerValues();
  Return(1);
End

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