Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 31, 2025
1 parent 8fe392e commit 68a093d
Show file tree
Hide file tree
Showing 16 changed files with 1,499,773 additions and 1,499,810 deletions.
4 changes: 1 addition & 3 deletions src/pleiades/core/data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,7 @@ def get_file_path(self, category: DataCategory, filename: str) -> Path:

file_path = Path(filename)
if file_path.suffix not in self._VALID_EXTENSIONS[category]:
raise ValueError(
f"Invalid file extension for {category}. " f"Allowed extensions: {self._VALID_EXTENSIONS[category]}"
)
raise ValueError(f"Invalid file extension for {category}. " f"Allowed extensions: {self._VALID_EXTENSIONS[category]}")

try:
with resources.path(f"pleiades.data.{self._get_category_path(category)}", filename) as path:
Expand Down
4 changes: 1 addition & 3 deletions src/pleiades/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,7 @@ def areal_density(self) -> float:
if self.thickness_unit == "mm":
thickness_cm /= 10.0

return (
thickness_cm * self.density * CONSTANTS.avogadro_number / self.atomic_mass.value / 1e24
) # Convert to atoms/barn
return thickness_cm * self.density * CONSTANTS.avogadro_number / self.atomic_mass.value / 1e24 # Convert to atoms/barn


# Unit conversion functions
Expand Down
Loading

0 comments on commit 68a093d

Please sign in to comment.