Skip to content

Commit a052b5e

Browse files
committed
Release 2.41-3 (relies on jnum-0.20-4).
1 parent 006259a commit a052b5e

13 files changed

+40
-51
lines changed

crush/Documentation/change.log

+26
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,29 @@
1+
2.41-3 (19 March 2018)
2+
3+
4+
Overwiew
5+
======================================================================
6+
This (second) update fixes the accidentally broken LABOCA photomety,
7+
and refines HAWC+ configurations.
8+
======================================================================
9+
10+
[BUG] {APEX} {photometry} Fixed ClassCastException in
11+
ApexChoppedPhotometry.
12+
13+
[FIX] {jnum} Workaround for Exceptions when trying to write NaN's into
14+
FITs header from failed source fits. The offending keys are simply
15+
skipped.
16+
17+
[CONFIG] {HAWC+} Now includes FS14 flux jump table (v1) from Darren
18+
Dowell.
19+
20+
[CONFIG] {HAWC+} Updated FS15 flux jump table (v3) from Darren Dowell.
21+
22+
[CONFIG] {HAWC+} New FS13 per-pixel flux jumps table (v1) from
23+
Darren Dowell.
24+
25+
[JNUM] Uses jnum 0.20-4.
26+
127

228
2.41-2 (2 March 2018)
329

-841 Bytes
Binary file not shown.

crush/config/hawc+/TODO

-36
This file was deleted.

crush/config/hawc+/default.cfg

+4-3
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,11 @@ offset.T0 0.29,-0.27
159159
zoom.T 1.0
160160

161161
# Correct for flux jumps
162-
date.[*--2017.05.01] jumpdata {?configpath}/hawc+/FluxjumpFS14Columns.fits.gz
163-
[oct2017] jumpdata {?configpath}/hawc+/flux_jump_FS15_v1.fits.gz
162+
date.[*--2017.05.01] jumpdata {?configpath}/hawc+/flux_jump_FS13_v1.fits.gz
163+
[may2017] jumpdata {?configpath}/hawc+/flux_jump_FS14_v1.fits.gz
164+
[oct2017] jumpdata {?configpath}/hawc+/flux_jump_FS15_v3.fits.gz
164165

165-
# Whether 'fix' flux jumps
166+
# Whether to 'fix' flux jumps
166167
#iteration.[last-1] fixjumps
167168

168169
# Flag pixels outside an acceptable range of relative noise levels
1.48 KB
Binary file not shown.
599 Bytes
Binary file not shown.
-599 Bytes
Binary file not shown.
627 Bytes
Binary file not shown.

crush/src/crush/CRUSH.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public class CRUSH extends Configurator implements BasicMessaging {
5959
*/
6060
private static final long serialVersionUID = 6284421525275783456L;
6161

62-
private static String version = "2.41-2";
62+
private static String version = "2.41-3";
6363
private static String revision = "";
6464

6565
public static String workPath = ".";
@@ -74,7 +74,6 @@ public class CRUSH extends Configurator implements BasicMessaging {
7474
public static int maxThreads = 1;
7575
public static volatile ExecutorService executor, sourceExecutor;
7676

77-
7877
public int parallelScans = 1;
7978
public int parallelTasks = 1;
8079

@@ -269,8 +268,7 @@ public void validate() throws Exception {
269268
consoleReporter.addLine();
270269
exit(1);
271270
}
272-
273-
271+
274272
try { instrument.validate(scans); }
275273
catch(Error e) {
276274
error(e);

crush/src/crush/sourcemodel/Photometry.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ public Photometry(Instrument<?> instrument) {
6060
@Override
6161
public SourceModel getWorkingCopy(boolean withContents) {
6262
Photometry copy = (Photometry) super.getWorkingCopy(withContents);
63-
copy.sourceFlux = (DataPoint) sourceFlux.clone();
63+
copy.sourceFlux = sourceFlux.copy();
6464
copy.flux = new DataPoint[flux.length];
65-
if(withContents) for(int i=flux.length; --i >= 0; ) if(flux[i] != null) copy.flux[i] = (DataPoint) flux[i].clone();
65+
if(withContents) for(int i=flux.length; --i >= 0; ) if(flux[i] != null) copy.flux[i] = flux[i].copy();
6666
return copy;
6767
}
6868

crush/src/crush/sourcemodel/SkyDip.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ public SkyDip(Instrument<?> instrument) {
6060
@Override
6161
public SourceModel getWorkingCopy(boolean withContents) {
6262
SkyDip copy = (SkyDip) super.getWorkingCopy(withContents);
63-
if(Tamb != null) copy.Tamb = (WeightedPoint) Tamb.clone();
63+
if(Tamb != null) copy.Tamb = Tamb.copy();
6464

6565
if(withContents) {
6666
copy.data = new WeightedPoint[data.length];
67-
for(int i=data.length; --i >= 0; ) copy.data[i] = (WeightedPoint) data[i].clone();
67+
for(int i=data.length; --i >= 0; ) copy.data[i] = data[i].copy();
6868
}
6969
else copy.data = WeightedPoint.createArray(data.length);
7070
return copy;

crush/src/crush/telescope/apex/APEXChoppedPhotometry.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ public APEXChoppedPhotometry(APEXCamera<?> instrument) {
4646

4747
@Override
4848
public void process(Scan<?, ?> scan) {
49-
final WeightedPoint[] left = WeightedPoint.createArray(flux.length);
50-
final WeightedPoint[] right = WeightedPoint.createArray(flux.length);
49+
final DataPoint[] left = DataPoint.createArray(flux.length);
50+
final DataPoint[] right = DataPoint.createArray(flux.length);
5151

5252
for(Integration<?,?> integration : scan) process((APEXSubscan<?,?>) integration, left, right);
5353

5454
sourceFlux.noData();
5555

5656
for(int c=flux.length; --c >=0; ) {
57-
flux[c] = (DataPoint) left[c].clone();
57+
flux[c] = left[c].copy();
5858
flux[c].subtract(right[c]);
5959
flux[c].scale(0.5);
6060
if(flux[c].weight() > 0.0) sourceFlux.average(flux[c]);

crush/src/crush/telescope/iram/IRAMTauTable.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ protected void averageWidth(LocalizedData other, Object env, double relativeWeig
144144
@Override
145145
public boolean isConsistentWith(LocalizedData other) {
146146
Entry entry = (Entry) other;
147-
DataPoint difference = (DataPoint) entry.tau.copy();
147+
DataPoint difference = entry.tau.copy();
148148
difference.subtract(tau);
149149
return Math.abs(difference.significance()) < 5.0;
150150
}

0 commit comments

Comments
 (0)