• Stars
    star
    55
  • Rank 519,363 (Top 11 %)
  • Language
    Julia
  • License
    Other
  • Created over 8 years ago
  • Updated almost 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Two-based indexing

TwoBasedIndexing

Build Status

This package implements two-based indexing in Julia. Two-based indexing affects only your code. Functions from other packages/modules will still function properly, but when you index into the arrays they return, the indices will start at 2 instead of 1. This makes it easy to gradually transition your codebase from obsolete one-based indexing to proper two-based indexing.

Usage

julia> using TwoBasedIndexing

julia> twobased() # enable two-based indexing in current module

julia> x = [1,2,3]
3-element Array{Int64,1}:
 1
 2
 3

julia> for i = 2:4 println(x[i]) end
1
2
3

julia> x[2] = 2
2

julia> x
3-element Array{Int64,1}:
 2
 2
 3

TODO

  • Don't rewrite non-numeric indexes or numeric indexes into Associatives
  • Rewrite BoundsErrors

More Repositories

1

Reexport.jl

Julia macro for re-exporting one module from another
Julia
143
star
2

LARS.jl

Least angle regression and the lasso covariance test
Julia
25
star
3

Synchrony.jl

Coherence/phase-locking statistics in Julia
Julia
22
star
4

csl-validator.js

CSL validator in JavaScript using emscripten
JavaScript
7
star
5

Kornblith-et-al-2017-Current-Biology

Raw data and analysis code for Kornblith et al., 2017, Current Biology
Jupyter Notebook
6
star
6

PiecewiseIncreasingRanges.jl

A piecewise increasing range type suitable for potentially discontinuous timestamps of sampled data
Julia
5
star
7

mendeley-word-plugin

Word for Windows plugin for Mendeley
Visual Basic
5
star
8

PLX.jl

Julia module for reading Plexon PLX files
Julia
4
star
9

csl-inference

Scheme
3
star
10

SkullSegment.jl

Macaque brain and skull extraction tools (WIP)
Julia
3
star
11

basic-julia-intro

basic Julia intro notebook
2
star
12

SpikeGLM.jl

WIP code for fitting point process GLMs
Julia
2
star
13

zotero-translator-tools

Tools for dealing with Zotero translators
Python
2
star
14

JuliaCon2015

Slides from my presentations at JuliaCon 2015
2
star
15

binica

EEGLAB binary ICA
C
2
star
16

NeuroIO.jl

Read and write common electrophysiology data formats
Julia
2
star
17

PsychoMonkey

PsychToolbox-based framework for monkey behavioral paradigms
MATLAB
1
star
18

Electrode-Tracker

JavaScript-based electrode tracker for screw drive grids
JavaScript
1
star
19

matorque

Easy interface to submit MATLAB jobs using Torque
MATLAB
1
star
20

NeuralynxNCS.jl

Julia code for reading Neuralynx NCS files
Julia
1
star
21

MATLABCluster.jl

Julia cluster manager for MATLAB Job Scheduler
Julia
1
star