Coder Social home page Coder Social logo

freesas's People

Contributors

guimouv avatar kif avatar maaeli avatar t20100 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

freesas's Issues

Issue in CI

Probably related to new features in numpy:

======================================================================
ERROR: test_load_data_with_unescaped_footer (freesas.test.test_sasio.TestSasIO)
Test that an unescaped footer does not hinder loading.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/freesas/build/lib.linux-x86_64-3.9/freesas/test/test_sasio.py", line 139, in test_load_data_with_unescaped_footer
    data = load_scattering_data("test")
  File "/tmp/freesas/build/lib.linux-x86_64-3.9/freesas/sasio.py", line 39, in load_scattering_data
    data = loadtxt(filename)
  File "/tmp/pipmamba39/lib/python3.9/site-packages/numpy/lib/npyio.py", line 1313, in loadtxt
    arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
  File "/tmp/pipmamba39/lib/python3.9/site-packages/numpy/lib/npyio.py", line 979, in _read
    arr = _load_from_filelike(
TypeError: encoding must be a unicode string.

bift.py result on BSA test data shows "saw" on top of data

When running bift.py on the BSA test data, there is a clear saw pattern with wavelength 2Δr on top of the density. Increasing MC sampling reduces the amplitude, but not sufficiently. Taking the averages of two subsequent points removes the pattern:

image

Also see issue #18 .

setuptools on Windows

The AppVeyor CI builds for Python 3.7 and 3.8 on the Visual Studio 2017 machine configuration require setuptools < 60. This is probably due to this change #2896 in setuptools 60.

For the CI, there is a workaround by setting setuptools<60 in the requirements.txt for the Visual Studio 2017 machine configuration. But I don't think this is a real solution?

Cython future deprecation

warning: freesas/_distance.pyx:76:0: The 'IF' statement is deprecated and will be removed in a future Cython version. Consider using runtime conditions or C macros instead. See https://github.com/cython/cython/issues/4310

pip install failed on Debian

Hi,

here is the error: Any idea about the reason?

Command "/user/brennich/mypython/environments/SAXSplots/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-install-_v2ulyig/freesas/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-record-7d41rp7n/install-record.txt --single-version-externally-managed --compile --install-headers /user/brennich/mypython/environments/SAXSplots/include/site/python3.4/freesas" failed with error code 1 in /tmp/pip-install-_v2ulyig/freesas/

Cheers,
Martha

Guinier command line tools in Windows fiat if provided multiple files

The end to end tests for these scripts seem to fail for at least two reasons:

  • If the command ends with ".py" there seem to be problems with calling the script. Is this also a problem when using the scripts "manually"?
  • Changing the script name then leads to failures which seem to be related to arg parsing.

Unfortunately, I currently do not have access to a Windows machine, which makes debugging hard, so it will take some time for me to look into it.

Strange numerical values ...

n=1000
cormap.gof(numpy.arange(n), numpy.arange(n)) 
GOF(n=1000, c=0, P=1.0000000000000788)

the worse being for 1037

Other strange result for

n=1000;cormap.gof(numpy.arange(n), numpy.zeros(n))
GOF(n=100000, c=0, P=1.0)

I wouls expect to have P=0

Actually if the sign never changes, C should be the total length, not 0

pip install / build fails on windows

Hi,

I no longer can install freesas (or to be more precise, supycomp) on Windows. It might be same issue as described by Valentin here: pypa/setuptools#694,,,

Cheers,
Martha

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c
/nologo /Ox /W3 /GL /DNDEBUG /MD -Ic:\users\brennich.pcdom3\appdata\local\conti
nuum\anaconda3\lib\site-packages\numpy\core\include -Ic:\users\brennich.pcdom3\a
ppdata\local\continuum\anaconda3\include -Ic:\users\brennich.pcdom3\appdata\loca
l\continuum\anaconda3\include -I"C:\Program Files (x86)\Microsoft Visual Studio
14.0\VC\INCLUDE" -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0
ucrt" -I"C:\Program Files (x86)\Windows Kits\8.1\include\shared" -I"C:\Program F
iles (x86)\Windows Kits\8.1\include\um" -I"C:\Program Files (x86)\Windows Kits\8
.1\include\winrt" /Tcfreesas_distance.c /Fobuild\temp.win-amd64-3.6\Release\fre
esas_distance.obj /openmp
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\link.exe
/nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH
:c:\users\brennich.pcdom3\appdata\local\continuum\anaconda3\libs /LIBPATH:c:\use
rs\brennich.pcdom3\appdata\local\continuum\anaconda3\PCbuild\amd64 /LIBPATH:"C:
Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" /LIBPATH:"C:\Prog
ram Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" /LIBPATH:"C:\Program
Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" /EXPORT:PyInit__distance build
temp.win-amd64-3.6\Release\freesas_distance.obj /OUT:build\lib.win-amd64-3.6\fr
eesas_distance.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-3.6\Release\free
sas_distance.cp36-win_amd64.lib
LINK : fatal error LNK1181: cannot open input file ' .obj'
error: Command "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86
amd64\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFES
TUAC:NO /LIBPATH:c:\users\brennich.pcdom3\appdata\local\continuum\anaconda3\libs
/LIBPATH:c:\users\brennich.pcdom3\appdata\local\continuum\anaconda3\PCbuild\amd
64 /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB\amd64" /
LIBPATH:"C:\Program Files (x86)\Windows Kits\10\lib\10.0.10240.0\ucrt\x64" /LIBP
ATH:"C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64" /EXPORT:PyInit

_distance build\temp.win-amd64-3.6\Release\freesas_distance.obj /OUT:build\lib.
win-amd64-3.6\freesas_distance.cp36-win_amd64.pyd /IMPLIB:build\temp.win-amd64-
3.6\Release\freesas_distance.cp36-win_amd64.lib " failed with exit status 1181


Failed building wheel for freesas
Running setup.py clean for freesas
Failed to build freesas
Installing collected packages: freesas
Found existing installation: freesas 0.6.0
Uninstalling freesas-0.6.0:
Successfully uninstalled freesas-0.6.0
Running setup.py install for freesas ... error
Complete output from command c:\users\brennich.pcdom3\appdata\local\continuu
m\anaconda3\python.exe -u -c "import setuptools, tokenize;file='C:\Users\B
RENNI1.PCD\AppData\Local\Temp\pip-install-h4r71kou\freesas\setup.py';f=ge
tattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.cl
ose();exec(compile(code, file, 'exec'))" install --record C:\Users\BRENNI
1.
PCD\AppData\Local\Temp\pip-record-12t8tve9\install-record.txt --single-version-e
xternally-managed --compile:

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.