Coder Social home page Coder Social logo

Comments (15)

sairamgeethanath avatar sairamgeethanath commented on August 25, 2024
  1. csv file format for spectrometer
  2. Separate files for RF and Gradients and a way to combine them and delay periods

from pypulseq.

sravan953 avatar sravan953 commented on August 25, 2024

@tonggehua For gradient waveforms, pypulseq has the seq.gradient_waveforms() method. Let me know if that's sufficient for gradient waveforms.

from pypulseq.

tonggehua avatar tonggehua commented on August 25, 2024

@sravan953
Right now, everyone will have to write their own code for outputting the entire waveforms. It would be valuable to have an inbuilt method for it. Plus, it might just be a simple modification from seq.plot().

from pypulseq.

sravan953 avatar sravan953 commented on August 25, 2024

@tonggehua If you have a seq object, call seq.gradient_waveforms() to get the gradient waveforms across the three channels. Does that clarify what the method does?

from pypulseq.

tonggehua avatar tonggehua commented on August 25, 2024

@sravan953 It does output the entire gradient waveforms. So what we need is adding on the RF, ADC, and uniform timing across. Thanks!

from pypulseq.

sravan953 avatar sravan953 commented on August 25, 2024

@tonggehua Yes, thanks for confirming! Will work on the RF and ADC. Could you elaborate on what you mean by 'uniform timing'? Thanks again.

from pypulseq.

sairamgeethanath avatar sairamgeethanath commented on August 25, 2024

I would not recommend uniform timing. I would recommend event-based timing. I do not see value in having times for delays (0s), only start and stop should suffice. If we need a common time clock, that will run at 1us and can be quite lengthy and redundant.

from pypulseq.

tonggehua avatar tonggehua commented on August 25, 2024

@sairamgeethanath For compression and storage, uniform timing is definitely not efficient. The feature I am suggesting is having flattened outputs that share the same time vector for (1) easy plotting and (2) benchmarking (comparing one sequence to another) purposes.

from pypulseq.

sairamgeethanath avatar sairamgeethanath commented on August 25, 2024

@tonggehua Not efficient for plotting too. I need two endpoints to connect and make a straight line. Even from a console standpoint, you just sample value and HOLD until it changes: either for writing or for reading.

from pypulseq.

tonggehua avatar tonggehua commented on August 25, 2024

@sairamgeethanath @sravan953 For the .seq waveform output feature, I would like to use it for more robust benchmarking of seq2xml. JEMRIS's output is uniformly timed across RF, G, and ADC. I would like to be able to compare the .h5 output and seq.output_waveforms(), say, directly. Having the same time resolution (maybe Δt should be user-specifiable) helps.

from pypulseq.

sairamgeethanath avatar sairamgeethanath commented on August 25, 2024

@tonggehua @sravan953 This feature needs to return two outputs: one should be in the format compatible with JEMRIS (@tonggehua please share a sample for gre with @sravan953 ). The other output should be compatible with the console needs of event-based logging only.

from pypulseq.

sravan953 avatar sravan953 commented on August 25, 2024

@tonggehua Commit f36f91a contains an updated waveforms_and_times() method -

def waveforms_and_times(
.
Let me know if it's what you were looking for?

from pypulseq.

tonggehua avatar tonggehua commented on August 25, 2024

@sravan953 It seems to do the same thing; I will try plotting with this function and get back to you. Please do consider my pull-request (#62) as it also has the feature of specifying the time range before generating the waveforms.

from pypulseq.

sravan953 avatar sravan953 commented on August 25, 2024

@tonggehua Alright will wait for your feedback.

from pypulseq.

sravan953 avatar sravan953 commented on August 25, 2024

PR #62 takes care of this, closing!

from pypulseq.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.