Skip to content

Commit

Permalink
fixed typo linting.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
prasad-sawantdesai committed Jan 20, 2025
1 parent 84ba2e9 commit bd656e5
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 19 deletions.
File renamed without changes.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,8 @@ imas/_version.py

# IMAS DD
data-dictionary
access-layer
containers/arch/imas/
containers/arch/data-dictionary/
containers/arch/access-layer/
imas/assets/IDSDef.zip

# IDS files
Expand Down
7 changes: 0 additions & 7 deletions benchmarks/technical.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import imas
import imas


def timeraw_create_default_imas_factory():
Expand All @@ -16,12 +15,6 @@ def timeraw_import_imas():
"""


def timeraw_import_imas():
return """
import imas
"""


# It would be nice if we could track these, but unfortunately it breaks things like
# `asv compare` :(
"""
Expand Down
11 changes: 1 addition & 10 deletions benchmarks/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
import imas
import imas.exception

# Don't directly import imas: code analyzers break on the huge code base
imas = importlib.import_module("imas")


# Backend constants
HDF5 = "HDF5"
MDSPLUS = "MDSplus"
Expand Down Expand Up @@ -60,23 +56,18 @@ def backend_exists(backend):
backend for backend in available_backends if backend not in [ASCII, NETCDF]
]

hlis = ["imas", "imas"]
hlis = ["imas"]
DBEntry = {
"imas": imas.DBEntry,
"imas": imas.DBEntry,
}
factory = {
"imas": imas,
"imas": imas.IDSFactory(),
}
available_serializers = [imas.ids_defs.ASCII_SERIALIZER_PROTOCOL]


def create_dbentry(hli, backend):
if backend == NETCDF:
if hli == "imas":
# Raising NotImplementedError will skip the benchmarks for this combination
raise NotImplementedError("AL-Python HLI doesn't implement netCDF.")
if hli == "imas": # check if netcdf backend is available
try:
assert (
Expand Down

0 comments on commit bd656e5

Please sign in to comment.