Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions process/core/init.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,8 @@ def run_summary(data: DataStructure):
process_output.ocmmnt(outfile, f"Git Tag : {git_tag}")
process_output.ocmmnt(outfile, f"Git Branch : {git_branch}")

date_string = datetime.datetime.now(datetime.timezone.utc).strftime(
"%d/%m/%Y %Z"
)
time_string = datetime.datetime.now(datetime.timezone.utc).strftime("%H:%M")
date_string = datetime.datetime.now(datetime.UTC).strftime("%d/%m/%Y %Z")
time_string = datetime.datetime.now(datetime.UTC).strftime("%H:%M")

process_output.ocmmnt(outfile, f"Date : {date_string}")
process_output.ocmmnt(outfile, f"Time : {time_string}")
Expand Down
2 changes: 1 addition & 1 deletion process/models/physics/plasma_current.py
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ def calculate_all_plasma_current_models(
triang=triang,
triang95=triang95,
)
except ProcessValueError: # noqa: PERF203
except ProcessValueError:
# Since this method is only used for output reporting, if a
# Ip model cannot run (e.g. most models don't support negative triang)
# then assign it NaN.
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ markers = [
output-format = "concise"

[tool.ruff]
target-version = "py310"
target-version = "py311"
line-length = 89
output-format = "concise"
output-prefer-rule-codes = true
Expand Down
2 changes: 1 addition & 1 deletion tracking/tracking_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ def _add_variables(self, json_file_data):
data_time_str = f"{date_str.strip()} - {time_str.strip()}"
date_time = datetime.datetime.strptime(
data_time_str, "%d/%m/%Y - %H:%M"
).replace(tzinfo=datetime.timezone.utc)
).replace(tzinfo=datetime.UTC)

tracking_data = json_file_data.get(
"tracking", []
Expand Down
Loading