Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
  Photo Thread: Filtering data and precision during calculations
Post: Filtering data and precision during calculations

Hello everyone, I am currently working on a project which requires me to find the minimum of two fonctions. The problem is that the process generating the data seems very very sensitive (see photos, ...
Scientifix General Coding Help 0 1,802 Mar-30-2021, 01:00 PM
    Thread: Solving equation on a given domain
Post: Solving equation on a given domain

Dear all, I am trying to solve the following equation on [0,10] : -0.523*sinh( 0.0597^2 * 0.247^2 *X) + 0.9*cosh( 0.0597^2 * 0.247^2 *X) = 0.1 To do so I used solve() from sympy... but as I cannot ...
Scientifix Data Science 1 1,958 Mar-18-2021, 04:16 PM
    Thread: Selecting special values in txt file
Post: Selecting special values in txt file

Hello everyone, Somme may remember a similar thread ... I have txt files with the following structure : Name = [102, 22]_[152, 32]_?_-20_-20 Mach = 0; Re = 2000000; T.U. = 1.0; T.L. = 1.0 Surface F...
Scientifix Data Science 1 2,268 May-01-2018, 02:34 PM
    Thread: Run Script written in javascript from python
Post: RE: Run Script written in javascript from python

Tanks Gribouillis !! But when I run your code I get : Error:Error: Could not find or load main class MH.JavaFoil.JavaFoilWhat's wrong ? Can you explain me the different parts of a command line such a...
Scientifix General Coding Help 3 3,358 Apr-28-2018, 04:53 PM
    Thread: Select specific zone in .txt file
Post: RE: Select specific zone in .txt file

Corrected : with obj.open() as f small mistake on indexes but seems to work from pathlib import Path current_dir = Path(".") file = open("Configurations_and_Cl.txt","w") # iterate over all obje...
Scientifix General Coding Help 8 5,426 Apr-28-2018, 02:50 PM
    Thread: Select specific zone in .txt file
Post: RE: Select specific zone in .txt file

Thank you very much nilamo !! When I run your script I have this error : Error:with open(obj) as f: TypeError: invalid file: WindowsPath(''Cl_selection.py'')What's wrong ? Do I have to put my pytho...
Scientifix General Coding Help 8 5,426 Apr-28-2018, 01:32 PM
    Thread: Run Script written in javascript from python
Post: Run Script written in javascript from python

Hello everyone !! I have written a scipt for a program called Javafoil and I want torun it from python. I Therefore write this command in the python console : java -cp "java\javafoil.jar;java\mhclas...
Scientifix General Coding Help 3 3,358 Apr-28-2018, 10:44 AM
    Thread: Select specific zone in .txt file
Post: RE: Select specific zone in .txt file

Thank you very much for your answer !! The second part of my question is still unsolved : Do you know a way to browse files from a folder ? Something like : for file in folder: operations on ...
Scientifix General Coding Help 8 5,426 Apr-27-2018, 06:57 PM
    Thread: Select specific zone in .txt file
Post: Select specific zone in .txt file

Hello everyone !! I have a very large number of .txt files that all have the same structure (only numerical values are different) and are all in the same folder : Name = [102, 22]_[152, 32]_1_1_1 Ma...
Scientifix General Coding Help 8 5,426 Apr-27-2018, 06:30 PM
    Thread: Superimpose figures
Post: Superimpose figures

Hello, I have the following code : from scipy.spatial import ConvexHull from scipy.spatial import convex_hull_plot_2d import matplotlib.pyplot as plt import numpy as np points = np.random.rand(30, 2)...
Scientifix Data Science 2 4,713 Oct-31-2016, 04:10 PM
    Thread: Oignon convex hull
Post: RE: Oignon convex hull

Here is my new code : Oups,made a mistake with the code ... I don't know how to edit :( Can you explain me my mistake ? Thanks a lot, Scientifix Here is the correct one : from scipy.spatial import Co...
Scientifix Data Science 3 6,350 Oct-29-2016, 08:31 AM
    Thread: Oignon convex hull
Post: RE: Oignon convex hull

True, its quite difficult without a piece of code **rolleyes**  This is the core structure of the code : def min_convex(points):          oignon_layers = []              while len(points) > 4:    ...
Scientifix Data Science 3 6,350 Oct-26-2016, 07:25 AM
    Thread: Oignon convex hull
Post: Oignon convex hull

Hello everyone, I have been working on a projet for a while now and I don't get my code to work The problem looks quite simple : Given a set of points : [[x1,y1],[x2,y2],...,[xn,yn]] I want to calcu...
Scientifix Data Science 3 6,350 Oct-25-2016, 07:59 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020