Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
tkchafin committed May 26, 2024
1 parent 1e52506 commit 7f47643
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/ensembleResistnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def main():
elif params.input_list:
params.paths = params.input_list

print(params.paths)
# Step 1: Collect models
# Read models
local_rows = 1 if params.only_best else None
Expand Down Expand Up @@ -68,18 +69,15 @@ def main():
# If coordinates not provided, collate those from the runs
if not params.coords:
coords = read_and_concat_files(
params.paths, ".pointCoords.txt", index_column=index_col
params.paths, ".coords", index_column=index_col
)
coords.columns = ["sample", "lat", "long"]
coords = coords.drop_duplicates(subset=["lat", "long"], keep='first')
else:
coords = pd.read_csv(params.coords, sep="\t")
coords.columns = ["sample", "lat", "long"]
coords.to_csv(params.out + ".coords",
header=True,
index=False,
quoting=None,
sep="\t")
coords.to_csv(params.out + ".coords", header=True, index=False,
quoting=None, sep="\t")
params.coords = params.out + ".coords"

# Get network
Expand Down

0 comments on commit 7f47643

Please sign in to comment.