Skip to content

Commit

Permalink
Some other pre-commit changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jorge committed Nov 7, 2023
1 parent 696b4d9 commit 95d350a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/nuspacesim/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,13 @@ def logv(*args):
console.rule("[bold blue] NuSpaceSim")

def mc_logv(mcint, mcintgeo, numEvPass, mcunc, method):
logv(f"\t[blue]Monte Carlo Integral [/][magenta][{method}][/]:", mcint)
logv(f"\t[blue]Monte Carlo Integral [/][magenta][{method}][/]: ", mcint)
logv(
f"\t[blue]Monte Carlo Integral, GEO Only [/][magenta][{method}][/]:",
f"\t[blue]Monte Carlo Integral, GEO Only [/][magenta][{method}][/]: ",
mcintgeo,
)
logv(f"\t[blue]Number of Passing Events [/][magenta][{method}][/]:", numEvPass)
logv(f"\t[blue]Stat uncert of MC Integral [/][magenta][{method}][/]:", mcunc)
logv(f"\t[blue]Number of Passing Events [/][magenta][{method}][/]: ", numEvPass)
logv(f"\t[blue]Stat uncert of MC Integral [/][magenta][{method}][/]: ", mcunc)

sim = ResultsTable(config)
geom = RegionGeom(config)
Expand Down
4 changes: 2 additions & 2 deletions src/nuspacesim/results_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(self, config=None):
config = NssConfig()

if isinstance(config, NssConfig):
now = f"{datetime.datetime.now():%Y%m%d%H%M%S}"
now = f"{datetime.datetime.now(): %Y%m%d%H%M%S}"
super().__init__(
meta={
**config.detector(),
Expand Down Expand Up @@ -163,4 +163,4 @@ def write(self, filename: Union[str, None] = None, **kwargs) -> None:
super().write(filename, **kwargs)

else:
raise ValueError(f"File output format {format} not in {{ fits, hdf5 }}!")
raise ValueError(f"File output format {format} not in {{ fits, hdf5 }}!")
2 changes: 1 addition & 1 deletion src/nuspacesim/simulation/atmosphere/clouds.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def extract_fits_cloud_pressure_map_v0(cloud_model: cloud_types.PressureMapCloud
version = cloud_model.version
with as_file(
files("nuspacesim.data.cloud_maps")
/ f"nss_map_CloudTopPressure_{month:02d}.v{version}.fits"
/ f"nss_map_CloudTopPressure_{month: 02d}.v{version}.fits"
) as file:
hdul = fits.open(file)
map = np.copy(hdul[0].data)
Expand Down

0 comments on commit 95d350a

Please sign in to comment.