Skip to content

Test diode_chamber example - #1

Open
aquaresima wants to merge 10 commits into
Silmathoron:examplesfrom
aquaresima:test_examples
Open

Test diode_chamber example#1
aquaresima wants to merge 10 commits into
Silmathoron:examplesfrom
aquaresima:test_examples

Conversation

@aquaresima

Copy link
Copy Markdown

In this PR:

  • moved examples to 'old_examples'
  • moved 2chambers to 'examples/diode_chambers'

Refined the example and made comments in the Readme (within diode_chambers folder)


Bugs:
====
1. Using same kernel seeds causes different behavior: the position are generated randomly and setting Python random.seed does not solve the problem.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, you need to use numpy.random.seed

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh. :/ I tried numpy.seed

... but this happens when you re not coding in Python for 1 year

====
1. Using same kernel seeds causes different behavior: the position are generated randomly and setting Python random.seed does not solve the problem.

2. The simulation sometimes (not reproducible because it depends on the random generatorr) stuck in this error. It happens more often within long simulations (4 days+)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With the latest version of examples, it should not get stuck but should raise an error and then close.
Was the code really stalled? I know there is one remaining error that sometimes occurs when a branch is retracting, is that it?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess so, because maybe it was happening only with resource based elongation. I did not connected the two things but indeed the models I evaluate are all NOT res_...
I will check it.

2. The simulation sometimes (not reproducible because it depends on the random generatorr) stuck in this error. It happens more often within long simulations (4 days+)
'src/kernel/space_manager.cpp:310

3. Saving file to graph with 'graph.to_file("diode.el")' gives an error [1]. In the last simulations it is not happening anymore. It may be due to some specific gc configuration.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you give me the full error message so I know where this is happening?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you run the file it is fine for you the graph.to_file? It may be due to my installation of NGNT, it may be old.

3. Saving file to graph with 'graph.to_file("diode.el")' gives an error [1]. In the last simulations it is not happening anymore. It may be due to some specific gc configuration.
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

4. It always better to close the Ipython IDE than do the ds.reset_kernel() only. In the latter case sometimes it seg_fault

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I never encountered that... could you launch it in gdb and track the segfault if this happens?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok. I will try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants