- Drop patches accepted upstream
- Drop previously backported patches
- Drop obsolete patches
- Enable hadoop/hdfs support for all architectures
* libhdfs is now available for more architectures than ix86 and x86_64
- Enable building on aarch64
- Rename the python packages to python2-root and python3-root
- New sub-packages: python{2,3}-jupyroot, python{2,3}-jsmva
- Dropped sub-package: root-rootaas (replaced by python{2,3}-jupyroot)
39 lines
1.6 KiB
Diff
39 lines
1.6 KiB
Diff
diff --git a/tutorials/mlp/mlpHiggs.C b/tutorials/mlp/mlpHiggs.C
|
|
index 8c5743f..d2a2769 100644
|
|
--- a/tutorials/mlp/mlpHiggs.C
|
|
+++ b/tutorials/mlp/mlpHiggs.C
|
|
@@ -16,8 +16,8 @@
|
|
void mlpHiggs(Int_t ntrain=100) {
|
|
const char *fname = "mlpHiggs.root";
|
|
TFile *input = 0;
|
|
- if (!gSystem->AccessPathName(fname)) {
|
|
- input = TFile::Open(fname);
|
|
+ if (!gSystem->AccessPathName(Form("%s/%s", gSystem->DirName(__FILE__), fname))) {
|
|
+ input = TFile::Open(Form("%s/%s", gSystem->DirName(__FILE__), fname));
|
|
} else {
|
|
printf("accessing %s file from http://root.cern.ch/files\n",fname);
|
|
input = TFile::Open(Form("http://root.cern.ch/files/%s",fname));
|
|
diff --git a/tutorials/quadp/portfolio.C b/tutorials/quadp/portfolio.C
|
|
index 9f8bb8a..ca96365 100644
|
|
--- a/tutorials/quadp/portfolio.C
|
|
+++ b/tutorials/quadp/portfolio.C
|
|
@@ -289,8 +289,8 @@ void portfolio()
|
|
|
|
const char *fname = "stock.root";
|
|
TFile *f = 0;
|
|
- if (!gSystem->AccessPathName(fname)) {
|
|
- f = TFile::Open(fname);
|
|
+ if (!gSystem->AccessPathName(Form("%s/%s", gSystem->DirName(__FILE__), fname))) {
|
|
+ f = TFile::Open(Form("%s/%s", gSystem->DirName(__FILE__), fname));
|
|
} else {
|
|
printf("accessing %s file from http://root.cern.ch/files\n",fname);
|
|
f = TFile::Open(Form("http://root.cern.ch/files/%s",fname));
|
|
@@ -314,7 +314,7 @@ void portfolio()
|
|
for (Int_t j = 0; j <= i; j++) {
|
|
Double_t sum = 0.;
|
|
for (Int_t k = 0; k < nrData; k++)
|
|
- sum += (data[i][k]-r[i])*(data[j][k]-r[j]);
|
|
+ sum += (data[i][k]-r[i])*(data[j][k]-r[j]);
|
|
Covar(i,j) = Covar(j,i) = sum/nrData;
|
|
}
|
|
}
|