Skip to content

Commit

Permalink
Create folder if need be
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Aug 9, 2023
1 parent e37700d commit 301abc6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fink_spins/generate_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import logging
import io
import sys
import os

import numpy as np
import pandas as pd
Expand Down Expand Up @@ -115,6 +116,7 @@ def format_ssoft(data: pd.DataFrame, filters: dict, flavor: str) -> pd.DataFrame
help="If specified, print on screen information about the processing.")
args = parser.parse_args(None)

os.makedirs(args.output_dir, exist_ok=True)
# ZTF filters 1: g, 2: r
filters = {"1": "g", "2": "r"}

Expand Down

0 comments on commit 301abc6

Please sign in to comment.