Restructure python data IO/actions#1080
Conversation
|
Not convinced about the subfolder. Seems to me a lot of validphys fits under |
|
Well perhaps I worded that too loosely but I disagree. I think there's a clear subset of providers which are consumed by other providers or actions (similar to fixtures in pytest). In terms of identifying what these are I would say a decent proportion of them would be used by both I find the subdir structure of this particular selection of modules easier to navigate than them either being contained in one mega file a la |
|
Obviously apart from the docs this doesn't add anything new it's just copy and paste to gather certain things up. Does anybody else have an opinion of putting these actions together here or leaving them where they are? @RosalynLP @siranipour @voisey ? Happy to accept this is a bad suggestion 😆 |
|
@wilsonmr I actually really like this - I think it is a lot clearer to me to have all these actions collected together, and prevents tedious scrolling and searching through multiple files to look for the relevant actions for playing around with the data. |
siranipour
left a comment
There was a problem hiding this comment.
I think this is probably not a bad shout. But for sake of completeness, I think we should add fkparser and convolution before merging. Also, the name results_provider implies that it's just going to provide for results.py. Is this necessarily true? I can see e.g n3fit using quite a few of this providers. Maybe something like fit_utils?
|
The name coule probably be improved,
Only the former 2 really get used in a fit, whereas the latter is more the result of the fit, which I guess is why it was called I am starting to wonder if we really need a subdir or if we could simply have:
Then convolution can remain as is. I think then it would be obvious enough where things are. Thoughts? |
|
Closed in favour of #1098 |
in #1052 I added some providers for the loading of commondata/covmats
I think that the flat structure will make this harder to digest as we add more things. My idea would be to also add the python make replica stuff here as well as the corresponding actions. This is just a suggestion, might not be the best way to do things.
Obviously a sticking point is that the convolution is not contained here, but the action which leverages it is. I personally would be in favour of moving convolution here as well as the fkparser. But perhaps this isn't the best way to organise things.
My endgame idea was that everything which leads up to (and includes) the tuple of data and theory aka
resultsis contained here. Eventually it would mean that we could slim downvalidphys.covmatsandvalidphys.resultsto contain things which are outputted to reports.Whilst I was at it, I added some stuff to the docs on recent python data object developments.