These are chat archives for SHTOOLS/SHTOOLS

10th
Aug 2016
Elliott Sales de Andrade
@QuLogic
Aug 10 2016 06:22
Is everything from src/Random.f95 really from NR?
Elliott Sales de Andrade
@QuLogic
Aug 10 2016 06:52
What's the use of lmax_in in the src/PythonWrapper.f95 subroutines? They seem to be unused.
Mark Wieczorek
@MarkWieczorek
Aug 10 2016 09:26
for Random - I converted the f77 code to f90, that is is all. For the gaussian routine, I added a single extra multiplication. To be honest, the numpy random number generator is probably better, so we could probably remove these routines.
The same goes for the SHRead routines. That parameter is needed to get the fortran routines to work, but I think that we should just convert all the file IO routines to python and remove the fortran versions.
Mark Wieczorek
@MarkWieczorek
Aug 10 2016 10:00
@ioshchepkov pip3 install -ve . is failing for me when trying to build the docs (on OSX). Do you have any idea what this mean? At some point, this worked for me.
    ---- BUILDING DOCS ----
Cleaning up...
Command "/usr/local/opt/python3/bin/python3.5 -c "import setuptools, tokenize;__file__='/Users/lunokhod/SphericalHarmonics/shtools-git/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps" failed with error code 1 in /Users/lunokhod/SphericalHarmonics/shtools-git/
Exception information:
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/local/lib/python3.5/site-packages/pip/commands/install.py", line 317, in run
    prefix=options.prefix_path,
  File "/usr/local/lib/python3.5/site-packages/pip/req/req_set.py", line 742, in install
    **kwargs
  File "/usr/local/lib/python3.5/site-packages/pip/req/req_install.py", line 825, in install
    install_options, global_options, prefix=prefix)
  File "/usr/local/lib/python3.5/site-packages/pip/req/req_install.py", line 981, in install_editable
    show_stdout=False)
  File "/usr/local/lib/python3.5/site-packages/pip/utils/__init__.py", line 718, in call_subprocess
    % (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command "/usr/local/opt/python3/bin/python3.5 -c "import setuptools, tokenize;__file__='/Users/lunokhod/SphericalHarmonics/shtools-git/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" develop --no-deps" failed with error code 1 in /Users/lunokhod/SphericalHarmonics/shtools-git/
Mark Wieczorek
@MarkWieczorek
Aug 10 2016 10:48
...nevermind. I broke something trying to get the default osx python to work...
Mark Wieczorek
@MarkWieczorek
Aug 10 2016 14:05
Just uploaded a new "introduction" to pyshtools for dummies notebook. Comments welcome.
Ilya Oshchepkov
@ioshchepkov
Aug 10 2016 14:25
Looks nice, actually!
Mark Wieczorek
@MarkWieczorek
Aug 10 2016 14:46
I need to make a similar one for the localized spectral analysis too, but I doubt I'll get this done before tomorrow.
Elliott Sales de Andrade
@QuLogic
Aug 10 2016 19:10
The trouble with those NR routines is that they are not license-compatible with anything, at least anything open-source.
F77 to F90 is sort of the same language/sort of not, so maybe it's a little grey area, but I wouldn't really risk it.