Skip to content

Commit f2ad88e

Browse files
committed
Apply ruff
1 parent 5580d69 commit f2ad88e

File tree

10 files changed

+9
-28
lines changed

10 files changed

+9
-28
lines changed

src/nomad_simulations/schema_packages/physical_property.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
from nomad import utils
2-
from nomad.datamodel.metainfo.plot import PlotSection
32
from nomad.datamodel.metainfo.basesections.v2 import Entity
4-
from nomad.metainfo import URL, MEnum, Quantity, SubSection, Reference, SectionProxy
5-
from nomad_simulations.schema_packages.numerical_settings import SelfConsistency
3+
from nomad.datamodel.metainfo.plot import PlotlyFigure, PlotSection
4+
from nomad.metainfo import URL, MEnum, Quantity, Reference, SectionProxy, SubSection
65

7-
from nomad.datamodel.metainfo.plot import PlotlyFigure
6+
from nomad_simulations.schema_packages.numerical_settings import SelfConsistency
87

98
logger = utils.get_logger(__name__)
109

src/nomad_simulations/schema_packages/properties/band_gap.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ class ElectronicBandGap(PhysicalProperty):
5757
""",
5858
)
5959

60-
6160
def resolve_type(self, logger: 'BoundLogger') -> Optional[str]:
6261
"""
6362
Resolves the `type` of the electronic band gap based on the stored `momentum_transfer` values.

src/nomad_simulations/schema_packages/properties/energies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import numpy as np
2-
from nomad.metainfo import Quantity, SubSection, SectionProxy
2+
from nomad.metainfo import Quantity, SectionProxy, SubSection
33

44
from nomad_simulations.schema_packages.physical_property import PhysicalProperty
55

src/nomad_simulations/schema_packages/properties/fermi_surface.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,5 @@ class FermiSurface(PhysicalProperty):
2828
""",
2929
)
3030

31-
3231
def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
3332
super().normalize(archive, logger)

src/nomad_simulations/schema_packages/properties/forces.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import numpy as np
2-
from nomad.metainfo import Quantity, SubSection, SectionProxy
2+
from nomad.metainfo import Quantity, SectionProxy, SubSection
3+
34
from nomad_simulations.schema_packages.physical_property import PhysicalProperty
45

56
##################

src/nomad_simulations/schema_packages/properties/greens_function.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ class ElectronicGreensFunction(BaseGreensFunction):
190190
)
191191

192192

193-
194193
class ElectronicSelfEnergy(BaseGreensFunction):
195194
"""
196195
Corrections to the energy of an electron due to its interactions with its environment.
@@ -207,7 +206,6 @@ class ElectronicSelfEnergy(BaseGreensFunction):
207206
)
208207

209208

210-
211209
class HybridizationFunction(BaseGreensFunction):
212210
"""
213211
Dynamical hopping of the electrons in a lattice in and out of the reservoir or bath.
@@ -224,7 +222,6 @@ class HybridizationFunction(BaseGreensFunction):
224222
)
225223

226224

227-
228225
class QuasiparticleWeight(PhysicalProperty):
229226
"""
230227
Renormalization of the electronic mass due to the interactions with the environment. Within the Fermi liquid
@@ -305,7 +302,6 @@ class QuasiparticleWeight(PhysicalProperty):
305302
""",
306303
)
307304

308-
309305
def resolve_system_correlation_strengths(self) -> str:
310306
"""
311307
Resolves the `system_correlation_strengths` of the quasiparticle weight based on the stored `value` values.

src/nomad_simulations/schema_packages/properties/hopping_matrix.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ class HoppingMatrix(PhysicalProperty):
4343
""",
4444
)
4545

46-
4746
# TODO add normalization to extract DOS, band structure, etc, properties from `HoppingMatrix`
4847

4948

@@ -70,4 +69,3 @@ class CrystalFieldSplitting(PhysicalProperty):
7069
at the same Wigner-Seitz point (0, 0, 0).
7170
""",
7271
)
73-

src/nomad_simulations/schema_packages/properties/permittivity.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Permittivity(PhysicalProperty):
2525
"""
2626

2727
iri = 'http://fairmat-nfdi.eu/taxonomy/Permittivity'
28-
28+
2929
# Class-level constants
3030
rank = [3, 3]
3131
_axes_map = ['xx', 'yy', 'zz']
@@ -55,7 +55,6 @@ class Permittivity(PhysicalProperty):
5555
# ? We need use cases to understand if we need to define contributions to the permittivity tensor.
5656
# ? `ionic` and `electronic` contributions are common in the literature.
5757

58-
5958
def resolve_type(self) -> str:
6059
return 'static' if self.frequencies is None else 'dynamic'
6160

src/nomad_simulations/schema_packages/properties/thermodynamics.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,6 @@ class ChemicalPotential(BaseEnergy):
135135
iri = 'http://fairmat-nfdi.eu/taxonomy/ChemicalPotential'
136136

137137

138-
139138
class HeatCapacity(PhysicalProperty):
140139
"""
141140
Amount of heat to be supplied to a material to produce a unit change in its temperature.
@@ -162,7 +161,7 @@ class VirialTensor(BaseEnergy):
162161
The `VirialTensor` can be related to the non-ideal pressure of the system through
163162
the virial theorem.
164163
"""
165-
164+
166165
rank = [3, 3]
167166

168167

@@ -185,7 +184,7 @@ class Hessian(PhysicalProperty):
185184
A square matrix of second-order partial derivatives of a potential energy function,
186185
describing the local curvature of the energy surface.
187186
"""
188-
187+
189188
rank = [3, 3]
190189

191190
value = Quantity(

src/nomad_simulations/schema_packages/variables.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ class Temperature(Variables):
9191
""",
9292
)
9393

94-
9594
def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
9695
super().normalize(archive, logger)
9796

@@ -109,7 +108,6 @@ class Energy2(Variables):
109108
""",
110109
)
111110

112-
113111
def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
114112
super().normalize(archive, logger)
115113

@@ -128,7 +126,6 @@ class WignerSeitz(Variables):
128126
""",
129127
)
130128

131-
132129
def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
133130
super().normalize(archive, logger)
134131

@@ -145,7 +142,6 @@ class Frequency(Variables):
145142
""",
146143
)
147144

148-
149145
def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
150146
super().normalize(archive, logger)
151147

@@ -162,7 +158,6 @@ class MatsubaraFrequency(Variables):
162158
""",
163159
)
164160

165-
166161
def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
167162
super().normalize(archive, logger)
168163

@@ -179,7 +174,6 @@ class Time(Variables):
179174
""",
180175
)
181176

182-
183177
def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
184178
super().normalize(archive, logger)
185179

@@ -196,7 +190,6 @@ class ImaginaryTime(Variables):
196190
""",
197191
)
198192

199-
200193
def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
201194
super().normalize(archive, logger)
202195

@@ -214,7 +207,6 @@ class KMesh(Variables):
214207
""",
215208
)
216209

217-
218210
def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
219211
super().normalize(archive, logger)
220212

@@ -229,6 +221,5 @@ class KLinePath(Variables):
229221
""",
230222
)
231223

232-
233224
def normalize(self, archive: 'EntryArchive', logger: 'BoundLogger') -> None:
234225
super().normalize(archive, logger)

0 commit comments

Comments
 (0)