question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Grid Editor - Problem Saving Core Map

See original GitHub issue

@jakehader Reported this bug: given the right conditions (which are common), the grid editor is failing to write output files.

Steps to Reproduce the Bug

  1. From the current “master” branch, open the grid editor on the command line: $ armi grids
  2. Load this blueprints YAML file: test-full-bp.zip
  3. Hit the buttons “Expand to full core” >> “Apply” >> “Save to grid blueprints…”
  4. This will yield a valid output YAML file that looks like:
core:
  geom: hex
  lattice map:
  grid bounds:
  symmetry: full
  grid contents:
    ? - 0
      - 0
    : IF
  1. Now, add full ring of 6 "inner fuel"s around the central hex. and again “Save to grid blueprints…” You will now see the broken output YAML file:
core:
  geom: hex
  lattice map: |-
    None
  grid bounds:
  symmetry: full
  grid contents:

The Bug

The second core map above is wrong because it has no output data.

What Caused this Bug?

Jake and determined this bug entered the “master” branch at this PR: https://github.com/terrapower/armi/pull/439

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ntourancommented, Dec 1, 2021

I’m working to make a unit test that would have caught this issue.

Ok so we still do get an exception when we run the reproduction example but with the exception no longer being hidden:

The `lattice map` for the current assembly arrangement cannot be written. Defaulting to using the `grid contents` dictionary instead. Exception: max() arg is an empty sequence

This is very likely coming from asciimaps._updateDimensionsFromData. That may help us find the root cause.

1reaction
jakehadercommented, Nov 30, 2021

Fix in #494

Read more comments on GitHub >

github_iconTop Results From Across the Web

Changes on the grid in edit mode doesn't persist when saving ...
Here is the table while I am editing it: The problem is that when I press enter, the row still shows "periodo 3"...
Read more >
Core Keeper | Updated Map Tool Tutorial - YouTube
Core Keeper | Updated Map Tool Tutorial This video is an update to my original Core Keeper map tutorial. There is a new...
Read more >
GridEditMode.InLine after Edit then Update - Grid Stays In Edit ...
I am editing a record inline. When I hit update, the request to the server occurs, the record is saved and the response...
Read more >
Kendo Grid Pop Up edit not firing Controller method on save
I have a kendo grid with enabled pop Up editing. It doesnt fire the controller method on update. Here is my code: @(Html.Kendo()....
Read more >
Saving and editing Looks | Looker - Google Cloud
While exploring, you can save your work by saving a Look. This saves all your choices for filters, visualizations, fields, sorting, and so...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found