hydrotools icon indicating copy to clipboard operation
hydrotools copied to clipboard

Events package structure question

Open aaraney opened this issue 3 years ago • 3 comments

I noticed while looking around the package today that the event_detection module is nested one level deeper than typical and does not have a parent subsubpackage (directory above with __init__.py).

More concretely, on the path hydrotools/python/events/src/hydrotools/events/event_detection/, there is an __init__.py in the event_detection directory but not in the events directory. @jarq6c can you clarify why this is the case? I assume there should be an __init__.py in the events directory as well.

Thanks!

aaraney avatar Oct 26 '21 18:10 aaraney

I think we had originally discussed adding various subpackages under events, but we never decided if events was going to be a proper package or another namespace package.

jarq6c avatar Oct 27 '21 18:10 jarq6c

Do you have an opinion on the future of the events package? I am happy to retain it as it's own namespace package (as it is now). However, I am equally happy to keep it the way it is for flexibility in the future.

aaraney avatar Oct 29 '21 18:10 aaraney

No strong opinions at this point. My preference might be to leave it, unless there's a compelling reason to change it. I would rather future development guide what we do, say when/if different event based analysis methods get added like events.event_analysis or the like.

jarq6c avatar Nov 03 '21 17:11 jarq6c