Skip to content

Commit

Permalink
Solve bug of mis-deleting init-file line in compute
Browse files Browse the repository at this point in the history
  • Loading branch information
awoo424 committed Jan 8, 2022
1 parent 6c086b9 commit 2b5a725
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/main/clojure/clojask/dataframe.clj
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,8 @@
(assert (or (nil? select) (nil? exclude)) "can only specify either of them")
;; check if output-dir clashes with input file path
(.checkInputPathClash this output-dir)
;; initialise file
(u/init-file output-dir)
;; check which type of dataframe this is
(let [exclude (if (coll? exclude) exclude [exclude])
select (if select select (if (not= [nil] exclude) (doall (remove (fn [item] (.contains exclude item)) (.getColNames this))) nil))]
Expand Down
2 changes: 1 addition & 1 deletion src/main/clojure/clojask/groupby.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns clojask.groupby
(:require [clojure.java.io :as io]
[clojure-csv.core :as csv]
;[clojure-csv.core :as csv]
[clojask.utils :as u]
[clojure.core.async :as async]))
"contains the utility functions to group by and aggregate"
Expand Down

0 comments on commit 2b5a725

Please sign in to comment.