From 6090b739fcb299a2e5cfb04d8f683c5a7250d562 Mon Sep 17 00:00:00 2001 From: Guilherme Alvarenga Date: Thu, 30 Nov 2023 16:00:33 +0100 Subject: [PATCH 1/2] added some notes to facilitate the windows installation: L136 and L229 --- doc/source/installation.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/doc/source/installation.rst b/doc/source/installation.rst index 9eae4c4..a8f78ca 100644 --- a/doc/source/installation.rst +++ b/doc/source/installation.rst @@ -133,6 +133,10 @@ sections below. string to the end of its contents:: C:\Program Files\GNUWin32\bin;C:\G77\bin + Note: make sure you check the correct path for `GNUWin32\bin`, + as in some cases it is installed in `Program Files (x86)` + instead of `Program Files`. + :OS X: Install ``gfortran`` with Homebrew_. :: @@ -222,6 +226,10 @@ sections below. Note: on Windows, make sure you run this in the standard Command Prompt (cmd.exe), not Powershell (PowerCmd.exe). + Note2: on Windows sometimes the executable might be saved only as `sixsV1.1` + (without the `.exe` extension). If that's the case, then run the same command + as the :Linux/OS X: one above. + #. If this is working correctly you should see a number of screen's worth of output, finishing with something that looks like:: ******************************************************************************* From 2afd080584c727daea21ed7b105a3b13765d251b Mon Sep 17 00:00:00 2001 From: Guilherme Alvarenga Date: Thu, 30 Nov 2023 16:17:05 +0100 Subject: [PATCH 2/2] changed print statement to a warning in all_wavelengths.py, this way it can be suppressed: L89 --- Py6S/SixSHelpers/all_wavelengths.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Py6S/SixSHelpers/all_wavelengths.py b/Py6S/SixSHelpers/all_wavelengths.py index 761507c..1d28c8c 100644 --- a/Py6S/SixSHelpers/all_wavelengths.py +++ b/Py6S/SixSHelpers/all_wavelengths.py @@ -17,6 +17,7 @@ import copy import sys +import warnings import numpy as np @@ -86,7 +87,7 @@ def f(wv): print(wavelengths) print(type(wavelengths)) - print("Running for many wavelengths - this may take a long time") + warnings.warn("Running for many wavelengths - this may take a long time") results = pool.map(f, wavelengths) pool.close()