From 7650c31b3be9a0a7cecd058ac32b9e27711076f8 Mon Sep 17 00:00:00 2001 From: vincenzoarcidiacono Date: Sun, 19 Nov 2023 10:40:43 +0100 Subject: [PATCH] doc(utl): Add missing doc. --- schedula/utils/base.py | 4 ++++ schedula/utils/utl.py | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/schedula/utils/base.py b/schedula/utils/base.py index a9edc2812..fba1a0fc5 100644 --- a/schedula/utils/base.py +++ b/schedula/utils/base.py @@ -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 diff --git a/schedula/utils/utl.py b/schedula/utils/utl.py index 57a31df95..5746660d4 100644 --- a/schedula/utils/utl.py +++ b/schedula/utils/utl.py @@ -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}