Closed jGaboardi closed 2 weeks ago
The
viz_class
prefix screams that this should be a viz module :). But I don't care that much.
This is a good idea. I can update this PR without much effort. Give me a thumbs here and I will do.
@martinfleis @anastassiavybornova
I implicitly meant that by factoring that to a module, we can use a module name instead of the prefix. But if you prefer an explicit name, I'm fine with that either.
I implicitly meant that by factoring that to a module, we can use a module name instead of the prefix. But if you prefer an explicit name, I'm fine with that either.
No, that makes sense. Since there will likely be other functionality in viz
that is not dealing with cases/classes, let's do something like this:
viz.py
| class_path
| class_location
| class_param_plot
| class_video
You OK with that?
I'm still not sure what is meant by "class" here.
I'm still not sure what is meant by "class" here.
I think it was some terminology that @anastassiavybornova introduced in identifying specific classes of simplification (where class can be interchanged with case) -- see the last cell here. Ana, please correct me if I am wrong.
I am open to adjusting names, etc. Trivial to do at this stage.
@jGaboardi @martinfleis ah yes, "class" there came from me thinking of "classification" (as in: roundabout, intersection, highway junction, etc.) but probably not the best choice of terms for contexts where it could be confused with class as in object class in python. i don't have any strong opinions on alternatives. i think this is something to also decide at the moment of writing: do we want to come up with a classification/typology of different use cases and if so what do we want to call it? classification, typology, usecases?
i think this is something to also decide at the moment of writing: do we want to come up with a classification/typology of different use cases and if so what do we want to call it? classification, typology, usecases?
I think either classification or typology are technical enough and would work well in the paper
not the best choice of terms for contexts
However, context
might work well within the code base (at least for now). How do we think about:
viz.py
| context_path
| context_location
| context_param_plot
| context_video
OR
viz_context.py
| path
| location
| param_plot
| video
With (1) we can have other visualization functionality, but naming is a touch verbose. With (2) functionality will be restricted at the expense of cleaner names.
I'd go with the first one. Or you can do nested modules viz.context.path
.
I'll see about the viz.context.path
structure.
@anastassiavybornova @martinfleis
Should we also rename the usecases/
directory to contexts/
?
If so, I'll open another issue for that and see about adjusting the notebooks, etc. in a follow-up PR.
This PR:
viz_class_path()
viz_class_location()
viz_class_param_plot()
viz_class_video()
contest.py
pytest
of the environment type and adjust a test accordingly