Skip to content

Commit

Permalink
Fix import snafu
Browse files Browse the repository at this point in the history
(Relative imports work differently depending whether you are already in a package or not... I should know this)
  • Loading branch information
JelleAalbers committed Sep 16, 2022
1 parent 81fb4af commit 4a35df6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 1 addition & 2 deletions paltas/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
from tqdm import tqdm
import pandas as pd
from paltas.Configs.config_handler import ConfigHandler

from .Utils.cli_maker import make_cli
from paltas.Utils.cli_maker import make_cli


def generate_from_config(config_path, save_folder, n=1, save_png_too=False, tf_record=False):
Expand Down
7 changes: 3 additions & 4 deletions paltas/robustness_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
import string
import os

from .Utils.cli_maker import make_cli
import numpy as np
from paltas.Utils.cli_maker import make_cli

config_header = """\
import sys
Expand Down Expand Up @@ -62,9 +63,7 @@ def robustness_test(
cleanup_results: delete all created files after a successful run.
Will only delete robustness_test_xxx folder if they are empty.
"""
# Delayed imports, to make sure --help calls finish quickly
import numpy as np
import paltas
# Delayed import to speed up --help call
import paltas.Analysis

# Use default validation set config if no config given
Expand Down

0 comments on commit 4a35df6

Please sign in to comment.