Skip to content

Commit af142d2

Browse files
committed
ignore csv, put into sep directory by default
1 parent 64cbec3 commit af142d2

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.envrc
22
.direnv
33

4+
*.csv
5+
46
# Byte-compiled / optimized / DLL files
57
__pycache__/
68
*.py[cod]

pyfracval/CCA.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def CCA_subcluster(
2020
N_subcl_perc: float,
2121
ext_case: int,
2222
tolerance: float = 1e-7,
23-
folder: str = "",
23+
folder: str = "results",
2424
) -> tuple[pl.DataFrame | None, bool, bool]:
2525
CCA_OK = True
2626

@@ -1263,10 +1263,6 @@ def filename_generate(n: int, df: float, kf: float) -> str:
12631263

12641264

12651265
def save_results(
1266-
# X: np.ndarray,
1267-
# Y: np.ndarray,
1268-
# Z: np.ndarray,
1269-
# R: np.ndarray,
12701266
data: pl.DataFrame,
12711267
iteration: int,
12721268
folder: str = "",
@@ -1279,10 +1275,6 @@ def save_results(
12791275
path.mkdir(parents=True, exist_ok=True)
12801276
path /= f"{filename}_{iteration}.csv"
12811277
data.write_csv(path)
1282-
# with open(res_name + str(iteration) + ".csv", "w") as f:
1283-
# writer = csv.writer(f)
1284-
# for i in range(X.size):
1285-
# writer.writerow([X[i], Y[i], Z[i], R[i]])
12861278

12871279

12881280
def sort_rows(i_orden: np.ndarray):

0 commit comments

Comments
 (0)