def get_spectrogram(self):
args = self.args<EOL>asd = self.timeseries[<NUM_LIT:0>].asd().value<EOL>if (asd.min() == <NUM_LIT:0>):<EOL><INDENT>self.log(<NUM_LIT:0>, '<STR_LIT>'<EOL>'<STR_LIT>')<EOL>self.got_error = True<EOL>qtrans = None<EOL><DEDENT>else:<EOL><INDENT>gps = self.qxfrm_args['<STR_LIT>']<EOL>outseg = Segment(gps, gps).protract(args.plot[self.plot_num])<EOL>inseg = outseg.protract(<NUM_LIT:4>) & self.timeseries[<NUM_LIT:0>].span<EOL>proc_ts = self.timeseries[<NUM_LIT:0>].crop(*inseg)<EOL>tres = float(outseg.end - outseg.start) / <NUM_LIT:4> / self.args.nx<EOL>self.qxfrm_args['<STR_LIT>'] = tres<EOL>self.qxfrm_args['<STR_LIT>'] = int(len(proc_ts) * proc_ts.dt.value)<EOL>self.log(<NUM_LIT:3>, '<STR_LIT>')<EOL>self.log(<NUM_LIT:3>, '<STR_LIT>'.format('<STR_LIT>', outseg))<EOL>for key in sorted(self.qxfrm_args):<EOL><INDENT>self.log(<NUM_LIT:3>, '<STR_LIT>'.format(key, self.qxfrm_args[key]))<EOL><DEDENT>qtrans = proc_ts.q_transform(outseg=outseg, **self.qxfrm_args)<EOL>if args.ymin is None:  <EOL><INDENT>args.ymin = qtrans.yspan[<NUM_LIT:0>]<EOL><DEDENT><DEDENT>return qtrans<EOL>
Worked on a single timesharing and generates a single Q-transform
        spectrogram