Skip to content

Commit cd1e68c

Browse files
Merge pull request #70 from astrolabsoftware/0.1.4
Bump version to v0.1.4
2 parents 02c8ef6 + c2d249b commit cd1e68c

File tree

12 files changed

+40
-20
lines changed

12 files changed

+40
-20
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.1.4
2+
3+
- Unify the IO: One constructor to rule them all! ([PR](https://github.com/astrolabsoftware/spark3D/pull/69))
4+
- Octree and Geometry Objects Bug Fixes ([PR](https://github.com/astrolabsoftware/spark3D/pull/67))
5+
16
## 0.1.3
27

38
- Add KNN routines ([KNN](https://github.com/astrolabsoftware/spark3D/pull/59), [KNN](https://github.com/astrolabsoftware/spark3D/pull/60), [KNN](https://github.com/astrolabsoftware/spark3D/pull/62))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- [05/2018] **GSoC 2018**: spark3D has been selected to the Google Summer of Code (GSoC) 2018. Congratulation to [@mayurdb](https://github.com/mayurdb) who will work on the project this year!
1010
- [06/2018] **Release**: version 0.1.0, 0.1.1
1111
- [07/2018] **New location**: spark3D is an official project of [AstroLab Software](https://astrolabsoftware.github.io/)!
12-
- [07/2018] **Release**: version 0.1.3
12+
- [07/2018] **Release**: version 0.1.3, 0.1.4
1313

1414
## Installation and tutorials
1515

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import xerial.sbt.Sonatype._
1919
lazy val root = (project in file(".")).
2020
settings(
2121
inThisBuild(List(
22-
version := "0.1.3"
22+
version := "0.1.4"
2323
)),
2424
// Name of the application
2525
name := "spark3D",

docs/01_installation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ another version, feel free to contact us. In addition to Spark, the library has
2020
You can link spark3D to your project (either `spark-shell` or `spark-submit`) by specifying the coordinates:
2121

2222
```bash
23-
toto:~$ spark-submit --packages "com.github.astrolabsoftware:spark3d_2.11:0.1.3" <...>
23+
toto:~$ spark-submit --packages "com.github.astrolabsoftware:spark3d_2.11:0.1.4" <...>
2424
```
2525

2626
It might not contain the latest features though (see *Building from source*).
@@ -69,7 +69,7 @@ result on the screen, plus details of the coverage at
6969
First produce a jar of the spark3D library, and then launch a spark-shell by specifying the external dependencies:
7070

7171
```bash
72-
toto:~$ JARS="target/scala-2.11/spark3d_2.11-0.1.3.jar,lib/jhealpix.jar"
72+
toto:~$ JARS="target/scala-2.11/spark3d_2.11-0.1.4.jar,lib/jhealpix.jar"
7373
toto:~$ PACKAGES="com.github.astrolabsoftware:spark-fits_2.11:0.6.0"
7474
toto:~$ spark-shell --jars $JARS --packages $PACKAGES
7575
```
@@ -83,7 +83,7 @@ scala> // etc...
8383
Note that if you make a fat jar (that is building with `sbt assembly` and not `sbt package`), you do not need to specify external dependencies as they are already included in the resulting jar:
8484

8585
```bash
86-
toto:~$ FATJARS="target/scala-2.11/spark3D-assembly-0.1.3.jar"
86+
toto:~$ FATJARS="target/scala-2.11/spark3D-assembly-0.1.4.jar"
8787
toto:~$ spark-shell --jars $FATJARS
8888
```
8989

docs/02_introduction.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ import com.astrolabsoftware.spark3d.spatial3DRDD.Point3DRDD
7373
// We assume filename contains at least 3 columns whose names are `colnames`
7474
// Order of columns in the file does not matter, as they will be re-aranged
7575
// according to `colnames`.
76-
val pointRDD = new Point3DRDD(spark: SparkSession, filename: String, colnames: String, isSpherical: Boolean, format: String, options: Map[String, String])
76+
val pointRDD = new Point3DRDD(spark: SparkSession, filename: String, colnames: String,
77+
isSpherical: Boolean, format: String, options: Map[String, String])
7778
```
7879

7980
`format` and `options` control the correct reading of your data.
@@ -134,7 +135,8 @@ import com.astrolabsoftware.spark3d.spatial3DRDD.SphereRDD
134135
// We assume filename contains at least 4 columns whose names are `colnames`.
135136
// Order of columns in the file does not matter, as they will be re-aranged
136137
// according to `colnames`.
137-
val sphereRDD = new SphereRDD(spark: SparkSession, filename: String, colnames: String, isSpherical: Boolean, format: String, options: Map[String, String])
138+
val sphereRDD = new SphereRDD(spark: SparkSession, filename: String, colnames: String,
139+
isSpherical: Boolean, format: String, options: Map[String, String])
138140
```
139141

140142
The resulting RDD is a `RDD[ShellEnvelope]`.

docs/04_query.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,20 @@ For more details on the cross-match, see the following [notebook](https://github
155155

156156
## Neighbour search
157157

158-
TBD
158+
Brute force KNN:
159+
160+
```scala
161+
// Load the data
162+
val pRDD = new Point3DRDD(spark, fn, columns, isSpherical, "csv", options)
163+
164+
// Centre object for the query
165+
val queryObject = new Point3D(0.0, 0.0, 0.0, false)
166+
167+
// Find the `nNeighbours` closest neighbours
168+
val knn = SpatialQuery.KNN(queryObject, pRDD.rawRDD, nNeighbours)
169+
```
170+
171+
To come: partitioning + indexing!
159172

160173
## Benchmarks
161174

docs/_pages/home.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ header:
88
cta_url: "/docs/installation/"
99
caption:
1010
intro:
11-
- excerpt: '<p><font size="6">Spark extension for processing large-scale 3D data sets: Astrophysics, High Energy Physics, Meteorology, ...</font></p><br /><a href="https://github.com/astrolabsoftware/spark3D/releases/tag/0.1.3">Latest release v0.1.3</a>'
11+
- excerpt: '<p><font size="6">Spark extension for processing large-scale 3D data sets: Astrophysics, High Energy Physics, Meteorology, ...</font></p><br /><a href="https://github.com/astrolabsoftware/spark3D/releases/tag/0.1.4">Latest release v0.1.4</a>'
1212
excerpt: '{::nomarkdown}<iframe style="display: inline-block;" src="https://ghbtns.com/github-btn.html?user=astrolabsoftware&repo=spark3D&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe> <iframe style="display: inline-block;" src="https://ghbtns.com/github-btn.html?user=astrolabsoftware&repo=spark3D&type=fork&count=true&size=large" frameborder="0" scrolling="0" width="158px" height="30px"></iframe>{:/nomarkdown}'
1313
feature_row:
1414
- image_path:

docs/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Several goals have to be undertaken in this project:
3838
+ indexing mechanisms
3939
+ ways to define a metric (ie. distance between objects)
4040
+ selection capability of objects or objects within a region
41-
- work with as many input file format as possible (CSV, JSON, FITS, and so on)
41+
- work with as many input file format as possible (CSV, ROOT, FITS, HDF5 and so on)
4242
- package the developments into an open-source library.
4343

4444
## Support

examples/jupyter/CrossMatch.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,11 @@
7575
"name": "stdout",
7676
"output_type": "stream",
7777
"text": [
78-
"Marking com.github.astrolabsoftware:spark-fits_2.11:0.4.0 for download\n",
78+
"Marking com.github.astrolabsoftware:spark-fits_2.11:0.6.0 for download\n",
7979
"Preparing to fetch from:\n",
8080
"-> file:/var/folders/my/lfvl285927q2hzk545f39sy40000gn/T/toree_add_deps7614799531666607290/\n",
8181
"-> https://repo1.maven.org/maven2\n",
82-
"-> New file at /var/folders/my/lfvl285927q2hzk545f39sy40000gn/T/toree_add_deps7614799531666607290/https/repo1.maven.org/maven2/com/github/astrolabsoftware/spark-fits_2.11/0.4.0/spark-fits_2.11-0.4.0.jar\n",
82+
"-> New file at /var/folders/my/lfvl285927q2hzk545f39sy40000gn/T/toree_add_deps7614799531666607290/https/repo1.maven.org/maven2/com/github/astrolabsoftware/spark-fits_2.11/0.6.0/spark-fits_2.11-0.6.0.jar\n",
8383
"Marking com.github.haifengl:smile-plot:1.5.1 for download\n",
8484
"Preparing to fetch from:\n",
8585
"-> file:/var/folders/my/lfvl285927q2hzk545f39sy40000gn/T/toree_add_deps7614799531666607290/\n",
@@ -113,7 +113,7 @@
113113
],
114114
"source": [
115115
"// Package to read data from FITS file\n",
116-
"%AddDeps com.github.astrolabsoftware spark-fits_2.11 0.4.0\n",
116+
"%AddDeps com.github.astrolabsoftware spark-fits_2.11 0.6.0\n",
117117
"\n",
118118
"// Smile provides visualisation tools\n",
119119
"%AddDeps com.github.haifengl smile-plot 1.5.1\n",

examples/jupyter/onion_partitioning.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
"name": "stdout",
2525
"output_type": "stream",
2626
"text": [
27-
"Marking com.github.astrolabsoftware:spark-fits_2.11:0.3.0 for download\n",
27+
"Marking com.github.astrolabsoftware:spark-fits_2.11:0.6.0 for download\n",
2828
"Preparing to fetch from:\n",
2929
"-> file:/var/folders/my/lfvl285927q2hzk545f39sy40000gn/T/toree_add_deps3353854346753658887/\n",
3030
"-> https://repo1.maven.org/maven2\n",
31-
"-> New file at /var/folders/my/lfvl285927q2hzk545f39sy40000gn/T/toree_add_deps3353854346753658887/https/repo1.maven.org/maven2/com/github/astrolabsoftware/spark-fits_2.11/0.3.0/spark-fits_2.11-0.3.0.jar\n",
31+
"-> New file at /var/folders/my/lfvl285927q2hzk545f39sy40000gn/T/toree_add_deps3353854346753658887/https/repo1.maven.org/maven2/com/github/astrolabsoftware/spark-fits_2.11/0.6.0/spark-fits_2.11-0.6.0.jar\n",
3232
"Marking com.github.haifengl:smile-plot:1.5.1 for download\n",
3333
"Preparing to fetch from:\n",
3434
"-> file:/var/folders/my/lfvl285927q2hzk545f39sy40000gn/T/toree_add_deps3353854346753658887/\n",
@@ -62,7 +62,7 @@
6262
],
6363
"source": [
6464
"// Package to read data from FITS file\n",
65-
"%AddDeps com.github.astrolabsoftware spark-fits_2.11 0.3.0\n",
65+
"%AddDeps com.github.astrolabsoftware spark-fits_2.11 0.6.0\n",
6666
"\n",
6767
"// Smile provides visualisation tools\n",
6868
"%AddDeps com.github.haifengl smile-plot 1.5.1\n",

0 commit comments

Comments
 (0)