Replies: 2 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 |
Beta Was this translation helpful? Give feedback.
-
Thanks @schuenke, I like the structure you proposed. I agree to @sravan953 and would use a |
Beta Was this translation helpful? Give feedback.
-
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__.py
files 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_shape
is used for rf pulses and arbitrary gradients,calculate_duration
is 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!
Beta Was this translation helpful? Give feedback.
All reactions