Skip to content

Commit

Permalink
change default sql function from Avg to Sum
Browse files Browse the repository at this point in the history
  • Loading branch information
yarden-livnat committed Sep 22, 2014
1 parent 313e1b8 commit 0e90519
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions cyclist/src/edu/utah/sci/cyclist/core/util/NuclideUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@ static public int zzllaaam_to_id(String code) throws NotNuclide {
// Removing first two characters (redundant), for 1 digit nuclides, such
// as 2-He-4, the first slash will be removed, and the second attempt to
// remove the second slash will do nothing.
// nucstr = nucstr.substring(2);
// nucstr = pyne::remove_substring(nucstr, "-");
// // Does nothing if nuclide is short, otherwise removes the second "-"
// instance
// nucstr = pyne::remove_substring(nucstr, "-");
nucstr = nucstr.replace("-", "");

int nuclen = nucstr.length();
Expand Down
2 changes: 1 addition & 1 deletion cyclist/src/edu/utah/sci/cyclist/core/util/SQL.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public String format(String col) {
}

public static final List<Function> FUNCTIONS = new ArrayList<>();
public static final String DEFAULT_FUNCTION = "Avg";
public static final String DEFAULT_FUNCTION = "Sum";

public enum Functions{VALUE,AVG,SUM,COUNT,COUNT_DISTINCT,MIN,MAX;
public String toName() {
Expand Down

0 comments on commit 0e90519

Please sign in to comment.