Skip to content

Commit

Permalink
fix order of initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mashehu committed Aug 27, 2024
1 parent 889e59e commit 5b3dabd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions nf_core/pipelines/create/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ def __init__(
# Read features yaml file
self.template_features_yml = load_features_yaml()

# Set fields used by the class methods
self.no_git = no_git
self.default_branch = default_branch
self.is_interactive = is_interactive

if self.config.outdir is None:
self.config.outdir = str(Path.cwd())

Expand All @@ -108,11 +113,6 @@ def __init__(

# Set convenience variables
self.name = self.config.name

# Set fields used by the class methods
self.no_git = no_git
self.default_branch = default_branch
self.is_interactive = is_interactive
self.force = self.config.force

if self.config.outdir == ".":
Expand Down

0 comments on commit 5b3dabd

Please sign in to comment.