Skip to content

Commit

Permalink
is_valid() method can now pass an optional processes parameter to val…
Browse files Browse the repository at this point in the history
…idate() (#140)
  • Loading branch information
gwiedeman authored Mar 22, 2024
1 parent cc9b366 commit 5b77243
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bagit.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,13 +612,13 @@ def validate(self, processes=1, fast=False, completeness_only=False):

return True

def is_valid(self, fast=False, completeness_only=False):
def is_valid(self, processes=1, fast=False, completeness_only=False):
"""Returns validation success or failure as boolean.
Optional fast parameter passed directly to validate().
Optional processes and fast parameters passed directly to validate().
"""

try:
self.validate(fast=fast, completeness_only=completeness_only)
self.validate(processes=processes, fast=fast, completeness_only=completeness_only)
except BagError:
return False

Expand Down

0 comments on commit 5b77243

Please sign in to comment.