Repository navigation
Replies: 3 comments 1 reply
|
@schuenke , thank you for opening this discussion thread! I agree with almost everything you've stated, we are on the same page. To answer the points you put up, I think the block-related functions should go into a |
1 reply
|
Thanks @schuenke, I like the structure you proposed. I agree to @sravan953 and would use a |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Currently, PyPulseq uses a package structure without dedicated
src/folder and most files are located in thepypulseq/subfolder directly. As we are planning to move away from SimpleNamespaces to a more objected-oriented implementation (#95), it makes sense to adjust the package structure in my opinion.I would suggest a structure including a
src/folder as officially recommended by python.org (https://packaging.python.org/en/latest/tutorials/packaging-projects/) and dedicated subfolders for the individual submodules.Such a structure could look like this:
Using the
__init__.pyfiles we could ensure that all current imports statements work and thus ensure compatibility for all user scripts.Maybe we can use this thread to discuss advantages and disadvantages of different structures and find a consensus regarding subfolders/subpackages/submodules.
Some open questions would be:
compress_shapeis used for rf pulses and arbitrary gradients,calculate_durationis used for all event types (RF, ADC, GRAD, DELAY)tests/folder?Looking forward to hear your opinions and please feel free to add any other ideas/questions that come to your mind!
All reactions