Skip to content

Commit

Permalink
Merge pull request #10 from SBU-BMI/develop
Browse files Browse the repository at this point in the history
Update convert_heatmaps.js
  • Loading branch information
ebremer authored Nov 11, 2020
2 parents da752af + 2d3e94f commit aff4ff3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions convert_heatmaps.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ url = clio.host;
const fileTemps = {};
var manifest = [];
const mfData = []
manifest = fs.readFileSync(inputFolder + '/' + clio.manifest).toString().split('\n');
manifest = fs.readFileSync(inputFolder + '/' + clio.manifest).toString().split('\r\n');

console.log('Reading manifest file.');

Expand Down Expand Up @@ -163,7 +163,7 @@ function convert(filename,metadata){
var options = {
host: url,
port: 80,
path: '/idlookup/' + clio.collection + '/' + study_id + '/' + subject_id + '/' + image_id + '?_format=json',
path: encodeURI('/idlookup/' + clio.collection + '/' + study_id + '/' + subject_id + '/' + image_id + '?_format=json'),
// authentication headers
headers: {
// Authorization: 'Basic <calculated key>',
Expand Down

0 comments on commit aff4ff3

Please sign in to comment.