Skip to content

Commit

Permalink
Merge pull request #8 from JuliaArrays/teh/project
Browse files Browse the repository at this point in the history
REQUIRE->Project.toml
  • Loading branch information
timholy committed Jan 18, 2020
2 parents 1e8759b + 11f3dc7 commit 7e0fa19
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -6,6 +6,7 @@ os:
julia:
- 0.7
- 1.0
- 1
- nightly
notifications:
email: false
Expand Down
19 changes: 19 additions & 0 deletions Project.toml
@@ -0,0 +1,19 @@
name = "CatIndices"
uuid = "aafaddc9-749c-510e-ac4f-586e18779b91"
author = ["Tim Holy <tim.holy@gmail.com>"]
version = "0.2.1"

[deps]
CustomUnitRanges = "dc8bdbbb-1ca9-579f-8c36-e416f6a65cce"
OffsetArrays = "6fe1bfb0-de20-5000-8ca7-80f57d26f881"

[compat]
CustomUnitRanges = "0.2, 1"
OffsetArrays = "0.8.1, 0.9, 0.10, 0.11, 1"
julia = "0.7, 1"

[extras]
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
28 changes: 26 additions & 2 deletions README.md
@@ -1,8 +1,8 @@
# CatIndices

[![Build Status](https://travis-ci.org/JuliaArrays/CatIndices.jl.svg?branch=master)](https://travis-ci.org/JuliaArrays/CatIndices.jl)

[![codecov.io](http://codecov.io/github/JuliaArrays/CatIndices.jl/coverage.svg?branch=master)](http://codecov.io/github/JuliaArrays/CatIndices.jl?branch=master)
[![PkgEval][pkgeval-img]][pkgeval-url]

A Julia package for concatenating, growing, and shrinking arrays in
ways that allow control over the resulting axes.
Expand Down Expand Up @@ -63,4 +63,28 @@ many items at the beginning or end of the vector, this package exports

# Concatenation

TODO
This is still mostly a TODO. For one-dimensional arrays (`AbstractVector`s),
`PinIndices` provides a convenient interface for specifying which indices "win":

```julia
julia> v = vcat(1:3, PinIndices(4:5), 6:10)
10-element OffsetArray(::Array{Int64,1}, -2:7) with eltype Int64 with indices -2:7:
1
2
3
4
5
6
7
8
9
10

julia> v[1]
4
```

The array wrapped in `PinIndices` keeps its own indexes, and everything else adjusts to compensate.

[pkgeval-img]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/C/CatIndices.svg
[pkgeval-url]: https://juliaci.github.io/NanosoldierReports/pkgeval_badges/report.html
3 changes: 0 additions & 3 deletions REQUIRE

This file was deleted.

1 change: 1 addition & 0 deletions appveyor.yml
@@ -1,6 +1,7 @@
environment:
matrix:
- julia_version: 0.7
- julia_version: 1.0
- julia_version: 1
- julia_version: nightly

Expand Down

2 comments on commit 7e0fa19

@timholy
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/8129

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.1 -m "<description of version>" 7e0fa19023b96a667d5e497f767c8a1f467dbbf9
git push origin v0.2.1

Please sign in to comment.