Comments (1)
Working with @joaander, we identified the problem. The gsd file was being opened in "text mode" because the _O_BINARY
flag wasn't being defined. This was the result of preprocessor directives: CMake sets WIN32
, but the setup.py
installation doesn't set that. Instead, we should rely on _WIN32
, which is set by the compiler instead of the build environment.
Temporarily, we enabled these flags in setup.py to help with debugging on Windows:
fl = Extension('gsd.fl',
sources=['gsd/fl.c', 'gsd/gsd.c'],
include_dirs = [numpy.get_include()],
extra_compile_args=['/Z7', '/Od'],
extra_link_args=['/DEBUG']
)
References:
https://cmake.org/cmake/help/latest/variable/WIN32.html
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/open-wopen?view=vs-2019
https://docs.microsoft.com/en-us/cpp/c-runtime-library/text-and-binary-mode-file-i-o?view=vs-2019
from gsd.
Related Issues (20)
- typeid saved incorrectly HOT 1
- Release v2.6.1
- Release v2.7.0
- Read scalar `hoomd` log data into a *pandas* `DataFrame`. HOT 1
- Release v2.8.0
- Release v2.8.1
- Provide high bandwidth performance for bulk frame writes. HOT 6
- Release gsd 2.9.0
- Release 3.0.0 HOT 5
- ValueError: signal only works in main thread of the main interpreter
- Add `HOOMDTrajectory.flush()`. HOT 2
- Release gsd 3.1.0
- Opening existing file with mode 'x' raises OSError instead of FileExistsError indicated by documentation HOT 1
- Release gsd 3.1.1
- Support Python 3.12.
- Release gsd 3.2.0
- v3.2.0 HTMLzip missing from gsd.readthedocs.io HOT 3
- Improve hoomd file write performance HOT 1
- Release gsd 3.2.1
- reduced precision HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gsd.