From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 14 Apr 2016 22:53:36 -0700 From: Endre Bakken Stovner Reply-To: kyleam/snakemake-mode Message-ID: Subject: Rules not properly indented after copy/pasting (#8) Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_571081e087772_61843ff2c705b2bc4573c6"; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: kyleam/snakemake-mode List-Archive: https://github.com/kyleam/snakemake-mode List-Post: List-Unsubscribe: , To: kyleam/snakemake-mode ----==_mimepart_571081e087772_61843ff2c705b2bc4573c6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit When I copy/paste a rule it looks like this afterwards: ``` rule create_design_matrix: output: outfile = "tmpdir/run_csaw_{input_use}/design_matrix.csv" run: time = pd.Series(list(range(0, 25, 3)) * 2) values = time * 2 * np.pi / 17 sine = np.sin(values) cosine = np.cos(values) design = pd.concat([time, sine, cosine], axis=1) design.columns = "Time Sine Cosine".split() design.to_csv(output.outfile, index=False, sep=" ") ``` Normally, I'd just mark the region and press `=` (`evil-indent`) to get the proper indentation, but that isn't working either. I'll prolly look into it myself eventually, but would love input on what you think is happening/best ways to fix. --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/kyleam/snakemake-mode/issues/8 ----==_mimepart_571081e087772_61843ff2c705b2bc4573c6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit

When I copy/paste a rule it looks like this afterwards:

  rule create_design_matrix:
  output:
  outfile = "tmpdir/run_csaw_{input_use}/design_matrix.csv"
  run:
  time = pd.Series(list(range(0, 25, 3)) * 2)
  values = time * 2 * np.pi / 17
  sine = np.sin(values)
  cosine = np.cos(values)

        design = pd.concat([time, sine, cosine], axis=1)
        design.columns = "Time Sine Cosine".split()
        design.to_csv(output.outfile, index=False, sep=" ")

Normally, I'd just mark the region and press = (evil-indent) to get the proper indentation, but that isn't working either. I'll prolly look into it myself eventually, but would love input on what you think is happening/best ways to fix.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub

----==_mimepart_571081e087772_61843ff2c705b2bc4573c6--