GithubHelp home page GithubHelp logo

Comments (4)

afalaize avatar afalaize commented on May 29, 2024

This is solved by PR #94 in develop branch

Try:

L1 = 100    # simulation length

L2 = 2000   # another simulation length

print('--------------------------------')
print('L1')

my_simu.init(nt=L1)

print('normal', len(list(my_simu.data.u())))

print(len(list(my_simu.data.u())))

print('--------------------------------')
print('L2')

my_simu.init(nt=L2)

print('normal', len(list(my_simu.data.u())))

print('--------------------------------')
print('view', len(list(my_simu.data.u(imax=200))))

print('--------------------------------')
print('exec: my_simu.data.imax = 200')
my_simu.data.imax = 200
print('normal', len(list(my_simu.data.u())))
print('view', len(list(my_simu.data.u(imax=None))))
print('normal', len(list(my_simu.data.u())))

print('--------------------------------')
print('with time')
print('exec: my_simu.data.tmax = 0.01')
my_simu.data.tmax = 0.01
print('u', len(list(my_simu.data.u())))

print('--------------------------------')
print('reset')
print('with: my_simu.data.imax = None')
print('or: my_simu.data.tmax = None')
my_simu.data.tmax = None
print('u', len(list(my_simu.data.u())))

from pyphs.

TristanLbrn avatar TristanLbrn commented on May 29, 2024
L1
normal 100
100
--------------------------------
L2
normal 200
--------------------------------
view 200
--------------------------------
exec: my_simu.data.imax = 200
normal 200
view 2000
normal 200
--------------------------------
with time
exec: my_simu.data.tmax = 0.01
u 442
--------------------------------
reset
with: my_simu.data.imax = None
or: my_simu.data.tmax = None
u 2000

Thank you for the answer and the commit ! I close this issue.

from pyphs.

afalaize avatar afalaize commented on May 29, 2024

Can I close this issue?

from pyphs.

TristanLbrn avatar TristanLbrn commented on May 29, 2024

Oups sorry, I forgot to close !
Thank you again for solving this issue.

from pyphs.

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.