Skip to content

Instantly share code, notes, and snippets.

@amb26
Created August 20, 2021 11:59
Show Gist options
  • Select an option

  • Save amb26/628e03778a1eeda877ad9e92cd371323 to your computer and use it in GitHub Desktop.

Select an option

Save amb26/628e03778a1eeda877ad9e92cd371323 to your computer and use it in GitHub Desktop.
Problems with syncretic promotion - we handled post-advice, but not pre-advice.
Consider the following:
elements: {
output: {
type: "fluid.csvFileOutput",
input: "{joined}.data",
filePath: "outputData/output.csv",
writeProvenance: true
// provenance: "provenance.csv",
// provenanceMap: "provenanceMap.json"
}
}
This is actually:
elements: {
joined: {
…. stuff
},
output: {
type: “fluid.fileOutput”,
input: "{joined}.data",
parents: “fluid.withEncoding.csv”,
filePath: “outputData/output.csv”
}
but then we want the encoder to expand to
output: {
elements: {
input: { <--- This bit is done by the promoter - how does it know?
value: “{joined}.data”,
},
encoding: { <--- This bit appears in the grade
type: “fluid.encoding.csv”,
input: “{input}.data”,
},
main: {
type: “fluid.fileOutput”,
input: "{joined}.data", < --- Must be rewritten???! How do we know? And what to?
filePath: “outputData/output.csv”
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment