Photonscore.D7 27.1.11

dotnet add package Photonscore.D7 --version 27.1.11
                    
NuGet\Install-Package Photonscore.D7 -Version 27.1.11
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Photonscore.D7" Version="27.1.11" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Photonscore.D7" Version="27.1.11" />
                    
Directory.Packages.props
<PackageReference Include="Photonscore.D7" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Photonscore.D7 --version 27.1.11
                    
#r "nuget: Photonscore.D7, 27.1.11"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Photonscore.D7@27.1.11
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Photonscore.D7&version=27.1.11
                    
Install as a Cake Addin
#tool nuget:?package=Photonscore.D7&version=27.1.11
                    
Install as a Cake Tool

Photonscore.D7

Reads and writes D7 .photons files, Photonscore's format for time-resolved single-photon data, as recorded by LINCam and LINTag. Managed code only, for .NET 8 and .NET 10: no native library and no protobuf. What it writes is the native library's file byte for byte, and it reads every file the native library wrote.

using Photonscore.D7;

// Read: three columns in one pass, on four of the caller's threads
using (var r = new D7FileReader("scan.photons")) {
  int n = (int)r.Datasets["/photons/x"].Items;
  var x = new ushort[n];
  var y = new ushort[n];
  var dt = new ushort[n];
  r.Read([D7Column.Of("/photons/x", x), D7Column.Of("/photons/y", y),
          D7Column.Of("/photons/dt", dt)], 0, n,
         new ParallelOptions { MaxDegreeOfParallelism = 4 });
  Console.WriteLine(r["FileCreator"]);
}

// Write: datasets first, then appends and attributes; Dispose closes
using (var w = new D7FileWriter("out.photons")) {
  w.CreateDataset<ushort>("/photons/x");
  w["Comment"] = "...";
  w.Append(new ushort[] { 10, 11, 13 }, "/photons/x");
}

A file that was never closed, by a crash or because it is still being recorded, opens all the same: the reader recovers it from its running indexes, and Recovered says so.

The format, the native C++ library and its C API live at github.com/photonscore/d7. Apache-2.0.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
27.1.11 55 11/10/2026
27.1.10 59 11/10/2026