Skip to content

Commit

Permalink
Merge pull request #1687 from pyiron/decorator_default
Browse files Browse the repository at this point in the history
Decorator: initialise with project in local directory
  • Loading branch information
jan-janssen authored Oct 30, 2024
2 parents 8c2add6 + c253bdd commit da41813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyiron_base/project/decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def get_delayed_object(
def pyiron_job_function(f) -> callable:
def function(
*args,
pyiron_project: Project,
pyiron_project: Project = Project("."),
pyiron_resource_dict: dict = {},
list_length: Optional[int] = None,
**kwargs,
Expand Down Expand Up @@ -143,7 +143,7 @@ def function(
# Assume this usage and handle the decorator like `pyiron_job_simple`
def function(
*args,
pyiron_project: Project,
pyiron_project: Project = Project("."),
pyiron_resource_dict: dict = {},
list_length: Optional[int] = None,
**kwargs,
Expand Down

0 comments on commit da41813

Please sign in to comment.