#598 Add utility for setting default driver/units

Open Logan Ward WardLT
Coverage Reach
interface/collections/dataset.py interface/collections/dataset_view.py interface/collections/reaction_dataset.py interface/collections/collection.py interface/collections/torsiondrive_dataset.py interface/collections/optimization_dataset.py interface/collections/gridoptimization_dataset.py interface/collections/collection_utils.py interface/collections/generic.py interface/collections/__init__.py interface/models/rest_models.py interface/models/records.py interface/models/torsiondrive.py interface/models/gridoptimization.py interface/models/common_models.py interface/models/task_models.py interface/models/model_utils.py interface/models/model_builder.py interface/models/__init__.py interface/client.py interface/visualization.py interface/statistics.py interface/data/data_getters.py interface/data/__init__.py interface/util.py interface/__init__.py interface/hash_helpers.py storage_sockets/sqlalchemy_socket.py storage_sockets/models/results_models.py storage_sockets/models/sql_models.py storage_sockets/models/collections_models.py storage_sockets/models/sql_base.py storage_sockets/models/__init__.py storage_sockets/db_queries.py storage_sockets/view.py storage_sockets/api_logger.py storage_sockets/storage_socket.py storage_sockets/storage_utils.py storage_sockets/__init__.py queue/managers.py queue/handlers.py queue/base_adapter.py queue/parsl_adapter.py queue/executor_adapter.py queue/fireworks_adapter.py queue/adapters.py queue/__init__.py cli/qcfractal_server.py cli/qcfractal_manager.py cli/cli_utils.py services/gridoptimization_service.py services/service_util.py services/torsiondrive_service.py services/services.py services/__init__.py testing.py server.py web_handlers.py postgres_harness.py procedures/procedures.py procedures/procedures_util.py procedures/__init__.py snowflake.py config.py extras.py util.py __init__.py

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

Showing 1 of 1 files from the diff.

@@ -1291,6 +1291,32 @@
Loading
1291 1291
        self.data.__dict__["default_benchmark"] = benchmark
1292 1292
        return True
1293 1293
1294 +
    def set_default_driver(self, driver: str) -> bool:
1295 +
        """
1296 +
        Sets the default driver.
1297 +
1298 +
        Parameters
1299 +
        ----------
1300 +
        driver : str
1301 +
            The driver to default to.
1302 +
        """
1303 +
1304 +
        self.data.__dict__["default_driver"] = driver
1305 +
        return True
1306 +
1307 +
    def set_default_units(self, units: str) -> bool:
1308 +
        """
1309 +
        Sets the default units.
1310 +
1311 +
        Parameters
1312 +
        ----------
1313 +
        units : str
1314 +
            The benchmark to default to.
1315 +
        """
1316 +
1317 +
        self.data.__dict__["default_units"] = units
1318 +
        return True
1319 +
1294 1320
    def add_keywords(self, alias: str, program: str, keyword: "KeywordSet", default: bool = False) -> bool:
1295 1321
        """
1296 1322
        Adds an option alias to the dataset. Not that keywords are not present

Learn more Showing 33 files with coverage changes found.

Changes in qcfractal/interface/models/rest_models.py
-2
+2
Loading file...
Changes in qcfractal/snowflake.py
-1
+1
Loading file...
Changes in qcfractal/queue/base_adapter.py
-1
+1
Loading file...
Changes in qcfractal/interface/collections/dataset_view.py
-6
+6
Loading file...
Changes in qcfractal/interface/models/model_utils.py
-1
+1
Loading file...
Changes in qcfractal/interface/models/common_models.py
-3
+3
Loading file...
Changes in qcfractal/interface/collections/dataset.py
-22
+22
Loading file...
Changes in qcfractal/testing.py
-11
+11
Loading file...
Changes in qcfractal/storage_sockets/sqlalchemy_socket.py
-48
+48
Loading file...
Changes in qcfractal/web_handlers.py
-11
+11
Loading file...
Changes in qcfractal/storage_sockets/view.py
-4
+4
Loading file...
Changes in qcfractal/interface/client.py
-21
+21
Loading file...
Changes in qcfractal/server.py
-26
+26
Loading file...
Changes in qcfractal/interface/collections/torsiondrive_dataset.py
-10
+10
Loading file...
Changes in qcfractal/storage_sockets/models/results_models.py
-20
+20
Loading file...
Changes in qcfractal/interface/collections/reaction_dataset.py
-35
+35
Loading file...
Changes in qcfractal/interface/visualization.py
-9
+9
Loading file...
Changes in qcfractal/interface/statistics.py
-9
+9
Loading file...
Changes in qcfractal/queue/handlers.py
-31
+31
Loading file...
Changes in qcfractal/interface/models/records.py
-40
+40
Loading file...
Changes in qcfractal/procedures/procedures.py
-46
+46
Loading file...
Changes in qcfractal/interface/collections/gridoptimization_dataset.py
-11
+11
Loading file...
Changes in qcfractal/interface/models/gridoptimization.py
-46
+46
Loading file...
Changes in qcfractal/storage_sockets/db_queries.py
-77
+77
Loading file...
Changes in qcfractal/interface/collections/collection.py
-108
+108
Loading file...
Changes in qcfractal/services/service_util.py
-52
+52
Loading file...
Changes in qcfractal/procedures/procedures_util.py
-17
+17
Loading file...
Changes in qcfractal/interface/collections/optimization_dataset.py
-34
+34
Loading file...
Changes in qcfractal/interface/models/model_builder.py
-8
+8
Loading file...
Changes in qcfractal/services/services.py
-9
+9
Loading file...
Changes in qcfractal/interface/models/torsiondrive.py
-89
+89
Loading file...
Changes in qcfractal/services/gridoptimization_service.py
-92
+92
Loading file...
Changes in qcfractal/services/torsiondrive_service.py
-85
+85
Loading file...
Files Coverage
qcfractal +10.73% 88.05%
Project Totals (67 files) 88.05%
Loading