Coder Social home page Coder Social logo

anderman / medella.spss Goto Github PK

View Code? Open in Web Editor NEW

This project forked from siisltd/curiosity.spss

12.0 12.0 1.0 6.52 MB

SPSS and PSPP binary file access for .SAV files. Does not require spss io DLLs to access. Based on the PSPP specifications.

License: MIT License

C# 99.98% Batchfile 0.02%

medella.spss's People

Contributors

anderman avatar charlielukman avatar fbiagi avatar msftgits avatar ranieuwe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

robsmith100

medella.spss's Issues

Thread Safe

Hi , just a quick question: Is the library thread safe?

Dror

"parameter is incorrect" exception when reading spss files

Below is the stack trace. What could be the reason?

System.IO.IOException: The parameter is incorrect. :
at System.IO.Strategies.FileStreamHelpers.ThrowInvalidArgument(SafeFileHandle handle)
at System.IO.Strategies.OSFileStreamStrategy.Seek(Int64 offset, SeekOrigin origin)
at System.IO.Strategies.BufferedFileStreamStrategy.Seek(Int64 offset, SeekOrigin origin)
at Spss.MetadataReaders.RecordReaders.RecordTypeInfoReader.SkipInfoRecord()
at Spss.MetadataReaders.MetadataReader.Read()
at Spss.SpssReader.GetRowReader()

Exception from MetadataWriter when running an example

I was trying to run an example for data writing. It failed with the exception below.

Message: "Collection was modified; enumeration operation may not execute."
StackTrace:
   at System.Collections.Generic.Dictionary`2.Enumerator.MoveNext()
   at Spss.MetadataWriters.MetadataWriter.ValidateVariables()
   at Spss.MetadataWriters.MetadataWriter..ctor(BinaryWriter writer, Metadata metadata)
   at Spss.SpssWriter..ctor(SpssData spssData, Stream stream)
   at Spss.SpssWriter.Write(SpssData spssData, Stream stream)
   at Spss.SpssWriter.Write(List`1 variables, List`1 data, Stream stream)

There is a problem with the following code:

63: foreach (var label in variable.ValueLabels)
64:     variable.ValueLabels[label.Key] = TrimMaxLength(label.Value, 120)!;

You cannot do it this way. Just label.Value = TrimMaxLength(label.Value, 120)!; would work fine.

.NET Framework support

Is it possible to change the project type to .netstandard2.0, which will make the packages useable in .NET Framework projects also?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.