Closed KevinLurtis closed 1 year ago
Sorry for the delay but I just released version 3 which should now be on pypi. Among other things it should hopefully simplify dealing with the optical standards.
It also attempts to simplify the example files. So now most of the example files only show one result. There are specific examples that show all of the available results for optical calculations (NFRC: https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/optical_results_NFRC.py EN-410: https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/optical_results_EN_410.py) and thermal results (ISO-15099: https://github.com/LBNL-ETA/pyWinCalc/blob/main/examples/thermal_results_ISO_15099.py).
Most of the rest of the examples now are focused on only showing how to construct what they are trying to demonstrate and only show one result for illustration purposes.
The hope is these changes make pywincalc clearer and easier to use.
Looking through the code you sent the only thing I notice is that you are running the examples from the root of the repo and not the examples folder. One issue may be that some of the examples load files by relative path so if the working directory isn't the examples folder it may cause some problems. Hopefully the changes to how the standards files work should fix some of them.
So when you get a chance can you try getting version 3.0 and trying that? There should be wheels on pypi for anything that is not a arm-based Mac (e.g. M2). There may even be a wheel that works with python 3.11 on an arm-based Mac but that hasn't been tested. But we have done some light testing on building from source on arm-based Mac's and that does seem to work.
Please let us know if this new release fixes things for you or if you are still having problems.
Thank you for your interest.
Thank you for your time.
It looks like running the examples from the example folder was the issue... Good catch! The error message had really thrown me off-course.
I've also tested out version 3.0.0
, and it seems to be working too; including the IGSDB examples when using the API key. Running the examples from the examples
folder works perfectly, and running from the root of the repository shows the same errors I was encountering. My problems seem to be solved.
Using the run_all_examples.py
script seems to work correctly, producing values for every output.
I've only lightly gone over a few of the examples, but it does seem to help that they're more explicit with what is going on at each step. Particularly useful are the optical_results_*
and thermal_results_*
files. Thanks for that change!
I don't have any M2 based machine, so I'm afraid I can't be of help there.
Thank you very much for all of the help!
Hi!
Thank you for your work on
pyWinCalc
and the underlying library.Unfortunately, we're having some trouble getting to run the basic examples, and would greatly appreciate some help trying to figure out what is wrong.
Description:
python examples/minimum_example.py
fails to run. Other examples also fail with a similar error, such asexamples/single_clear.py
,examples/gases.py
, andexamples/igsdb_double_clear_glass.py
.For the IGSDB remote API example, we have an API key, and receive the response.
Observed: Excerpt of the errors obtained, at the end of
Steps to reproduce
Expected: The examples run successfully, displaying the output.
Steps to reproduce.
Clone the repository into a new directory:
Create a clean virtual environment with
mkvirtualenvwrapper
:Follow requirements installation instructions. Because it's a linux machine, only Git and CMake:
examples/igsdb_interaction.py
, replaceigsdb_api_key
with:requests
.Thank you for your time.