Comments (17)
from ghedt.
Can you type pip list
and let me know which version of pygfunction
you are running? We introduced segment_ratios
in version 2.1 (https://github.com/MassimoCimmino/pygfunction/blob/master/CHANGELOG.md#version-210-2021-11-12).
You can run pip install -r requirements.txt
to install all the required modules. It should update your pygfunction
installation if you are running older than 2.1.
from ghedt.
What IDE are you using? Is it accessing the same environment that you list there?
from ghedt.
I m using pycharm, and yes I have double checked, all the packages and correct versions are installed
from ghedt.
Could you go to Settings
-> Project: ghedt
-> Python Interpretor
and share a screen shot of your interpreter where I can see that its pygfunction 2.1.0
.
from ghedt.
That is strange. If you tag @MassimoCimmino's version 2.1.0
release, you can see that a pygfunction.utilities.segment_ratios()
function does exist.
Have you looked at the pygfunction utilitites.py
file in your environment to see if it has the segment_ratios()
function. Perhaps try
pip uninstall pygfunction
pip install pygfunction==2.1.0
@mitchute have you ran into this issue?
from ghedt.
from ghedt.
Yes, I even tried to define it on the example itself
from ghedt.
If you look in C:\Users\davide\PychardProjects\pygfunction\G\venv_2
and find the pygfunction
package, is the segment_ratios
function inside of utilitites.py
?
from ghedt.
On my system pygfunction
is located in lib/python3.7/site-packages/pygfunction
.
From there, when I open up utilities.py
I can see that the segment_ratios
function is defined. Is it in yours?
from ghedt.
No, it was not. I ve updated now, thanks.
from ghedt.
That is bizarre. Is the example file in ghedt
running now?
from ghedt.
It has changed. I get this error message:
AssertionError: Method 'MIFT' is not an acceptable method.
Please provide one of the following inputs : ['detailed', 'similarities']
from ghedt.
Is that a ghedt
or pygfunction
issue?
from ghedt.
I think you need to replace all of the pygfunction
files in that directory with version 2.1
files.
from ghedt.
It has changed. I get this error message: AssertionError: Method 'MIFT' is not an acceptable method. Please provide one of the following inputs : ['detailed', 'similarities']
This is a pygfunction
v2.0 error. There was a mistake in the reporting which got fixed in v2.1 (and 'equivalent'
was also introduced). My guess is ghedt
is trying to use the missing 'equivalent'
solver.
from ghedt.
Yes, the example he is running is trying to use the default g-function calculation (equivalent
with unequal segment lengths). Both introduced in pygfunction
version 2.1.
@DavideDC9 The issue appears to be that your package manager is reporting that you have pygfunction==2.1
installed when the code contained in the package is actually pygfunction==2.0
.
I'm going to close this issue because we have resolved what the original error was, and have found that the solution (for now) is for @DavideDC9 to replace his pygfunction
installation with files from the v2.1.0 release. The heart of the issue is located outside of ghedt
, perhaps in venv
.
from ghedt.
Related Issues (20)
- Peak Heating and Cooling Load Occurring on Different Days in First Month Cause Crash HOT 5
- Add API to Design object for modification of the max near-square size
- Fix numpy warning during design process
- Interpolation Out-of-range Error HOT 7
- Enhance the Design API to accept the simulation method used in searching for fields HOT 1
- Change PLATs handling for peak load on first day and first year of simulation HOT 7
- Touch up issue 84
- find_near_square.py HOT 3
- Add set_shank functionality and further clarify what shank spacing is in ghedt
- min/max temperature query HOT 8
- Maintain congruency with pygfunction based on deprecation of thermal resistance function
- Transfer update thermal resistance functionality to pygfunction
- x_new is above the interpolation range HOT 4
- Bump version to 0.2 for release
- Could not install ghedt HOT 2
- Bottleneck: Large loads HOT 3
- Create user interface with windows executable
- Refactor ground loads
- Version 0.3.1 release
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 ghedt.