Giter Site home page Giter Site logo

Comments (8)

DanWBR avatar DanWBR commented on August 20, 2024 1

@sepandhaghighi exactly. If possible, disable the generation of the physical files in the subdirectory. I'm running OPEM from a .NET application through Python.NET - the commands are run in memory and I'm afraid we don't have a "current directory" to refer to in this case.

from opem.

DanWBR avatar DanWBR commented on August 20, 2024 1

@DanWBR yes, that would work. thanks!

from opem.

DanWBR avatar DanWBR commented on August 20, 2024 1

@sepandhaghighi I've found a way already, implemented something like my first suggestion + temporary files:

Captura de Tela 2022-06-17 às 10 41 25

Captura de Tela 2022-06-17 às 10 41 27

from opem.

DanWBR avatar DanWBR commented on August 20, 2024 1

@sepandhaghighi I couldn't wait, sorry 😅

from opem.

sepandhaghighi avatar sepandhaghighi commented on August 20, 2024

@DanWBR Hi
Do you mean something like this?

{               "Status": True,
                "P": Power_List,
                "I": I_List,
                "V": Vstack_List,
                "EFF": Efficiency_List,
                "Ph": Power_Thermal_List,
                "V0": B0,
                "K": B1,
                "VE": Estimated_V,
                "HTML": HTMLContent,
                "CSV":"CSVContent
                "}

from opem.

sepandhaghighi avatar sepandhaghighi commented on August 20, 2024

@DanWBR
The problem with this method is that sometimes the output files are too large and can lead to some memory problems.

Take a look at this method (adding Folder and Name parameters to control files location and name):

>>> from opem.Static.Amphlett import Static_Analysis
>>> Test_Vector={"T": 343.15,"PH2": 1,"PO2": 1,"i-start": 0,"i-stop": 75,"i-step": 0.1,"A": 50.6,"l": 0.0178,"lambda": 23,"N": 1,"R": 0,"JMax": 1.5,"Name": "Amphlett_Test"}
>>> data=Static_Analysis(InputMethod=Test_Vector,TestMode=True,PrintMode=False,ReportMode=True,Folder="C:\\Users\\",Name="Test")

Does it work for you?

from opem.

sepandhaghighi avatar sepandhaghighi commented on August 20, 2024

Good, we will solve it in the next version 💯

from opem.

sepandhaghighi avatar sepandhaghighi commented on August 20, 2024

@DanWBR Well done 🥇
But we will still consider this feature for the next version of OPEM 🚀

from opem.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.