Skip to content

Commit

Permalink
Fix code generation for Python (provide data cube to .process())
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed Nov 16, 2021
1 parent 168481b commit fe05fe9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/export/python.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,13 @@ export default class Python extends Exporter {
if (this.hasCallbackParameter(node) || node.process_id === 'save_result') {
builderName = `${dcName}.${node.process_id}`;
addProcessToArguments = false;
// If we call the process directly on a new data cube with dcName
// we need to remove the argument that is passing this data
filterDcName = (key, value) => Utils.isObject(value) && value.from_node && this.var(value.from_node) === dcName;
}
else {
builderName = `${dcName}.process`;
}
// If we call the process directly on a new data cube with dcName
// we need to remove the argument that is passing this data
filterDcName = (key, value) => Utils.isObject(value) && value.from_node && this.var(value.from_node) === dcName;
}
}
let args = await this.generateArguments(node, false, filterDcName);
Expand Down

0 comments on commit fe05fe9

Please sign in to comment.