gordonwatts / BDTTrainingAnalysisLanguage

Pull from ATLAS EXOT 15 Derivation, columnar data, and flat rootutples with RDF to scikitlearn in one nice fast swoop
0 stars 2 forks source link

Representations shoudl be immutable? #54

Open gordonwatts opened 5 years ago

gordonwatts commented 5 years ago

This is a tricky thing and probably won't matter until it is time to combine queries. So I place this here as a note for myself:

  1. The set_scope will change the scoping for a variable.

Sometimes we need to do that b.c. we define the variable before we define the scope (but perhaps we should not be doing that?)

But sometimes we update the scope, for example, when we go into a Where statement. Perhaps there we should be making a copy of the variable and linking them, but then they have two scopes - so the original guy remains immutable.

The nice thing about doing that is that when you combine queries, and there is something that uses that looping variable without the where, it can. If the scope is updated, then the code will not come out right!