Skip to content

Commit

Permalink
doc(utl): Add missing doc.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinci1it2000 committed Nov 19, 2023
1 parent 4b5edec commit 7650c31
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
4 changes: 4 additions & 0 deletions schedula/utils/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@ def plot(self, workflow=None, view=True, depth=-1, name=NONE, comment=NONE,
Pool executor to render object.
:type executor: str, optional
:param run:
Run the backend server?
:type run: bool, optional
:return:
A SiteMap or a Site if .
:rtype: schedula.utils.drw.SiteMap
Expand Down
13 changes: 13 additions & 0 deletions schedula/utils/utl.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
#
# Copyright 2015-2023, Vincenzo Arcidiacono;
# Licensed under the EUPL (the 'Licence');
# You may not use this work except in compliance with the Licence.
# You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl

"""
It provides some utility functions.
"""


def dict_diff(adict: dict, excluded: set) -> dict:
if excluded:
return {k: v for k, v in adict.items() if k not in excluded}
Expand Down

0 comments on commit 7650c31

Please sign in to comment.