Skip to content

Commit

Permalink
Merge pull request #756 from ImperialCollegeLondon/dependabot/pip/pyc…
Browse files Browse the repository at this point in the history
…svy-0.2.3

Bump pycsvy from 0.2.2 to 0.2.3
  • Loading branch information
alexdewar authored Jan 7, 2025
2 parents 8756332 + c2ab849 commit 48868de
Show file tree
Hide file tree
Showing 4 changed files with 157 additions and 12 deletions.
4 changes: 1 addition & 3 deletions finesse/hardware/data_file_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _get_metadata(filename: str) -> dict[str, Any]:


def _create_writer(path: Path) -> Writer:
writer = Writer(path, _get_metadata(path.name))
writer = Writer(path, _get_metadata(path.name), line_buffering=True)

# Write column headers
writer.writerow(
Expand Down Expand Up @@ -155,7 +155,6 @@ def close(self) -> None:
logging.info("Closing data file")

# Ensure data is written to disk
self._writer._file.flush()
os.fsync(self._writer._file.fileno())

self._writer.close()
Expand All @@ -180,7 +179,6 @@ def write(self, time: datetime, temperatures: list[Decimal]) -> None:
_get_hot_bb_power(),
)
)
self._writer._file.flush()

pub.sendMessage("data_file.writing")

Expand Down
160 changes: 154 additions & 6 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ beautifulsoup4 = "^4.12.3"
python-statemachine = "<2.4.0"
numpy = "^2.1.3"
decorator = "^5.1.1"
pycsvy = "^0.2.2"
pycsvy = "^0.2.3"
frozendict = "^2.4.6"
crc = "^7.1.0"
ntplib = "^0.4.0"
Expand Down
Loading

0 comments on commit 48868de

Please sign in to comment.