dusankr / MCNP_TallyPlotter

Creating basic step 2D tally plots from MCNP outputs
MIT License
1 stars 1 forks source link

Cannot read files? #2

Open FitzgeraldChris opened 2 months ago

FitzgeraldChris commented 2 months ago

Traceback (most recent call last): File "C:\Users*****\PycharmProjects\MCNP\pythonProject\MCNP_TallyPlotter-0.8.2\modules\read_mod.py", line 242, in read_tally flux.append(float(line[1])) ^^^^^^^^^^^^^^ ValueError: could not convert string to float: 'to'

Tried both exe and python, in both case it was not seeing the MCNP 6.3 output files in the working directory. Above is the error seen in py.

dusankr commented 1 month ago

Hi Chris, can you send me your output file? If you don't want share input part you can delete that from the beginning of output file. I just need more details. From the error is obvious there is incorrectly determined beginning of tally values. Dusan

FitzgeraldChris commented 1 month ago

Sorry for not getting back to you sooner, I believe the problem lies with using e0 where it tabulates energy bins for me in table 30

I.E.

1tally 5 +. Photon Tally at 0.5 ft tally type 5 particle flux at a point detector. particle(s): photons

point detector specification detector x y z r0

  1. 1.52400E+01. ...... energy bins 1.00000E-03 to 1.0000E-6 MeV 1.00000E-06 to 1.08613E-6 MeV

And so on. Chris Fitzgerald

On Sat, Sep 21, 2024, 1:29 PM Dusan Kral @.***> wrote:

Hi Chris, can you send me your output file? If you don't want share input part you can delete that from the beginning of output file. I just need more details. From the error is obvious there is incorrectly determined beginning of tally values. Dusan

— Reply to this email directly, view it on GitHub https://github.com/dusankr/MCNP_TallyPlotter/issues/2#issuecomment-2365311164, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUNQLBIF6UZJFRQ6NYWLKDZXXJKFAVCNFSM6AAAAABOMFX3POVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRVGMYTCMJWGQ . You are receiving this because you authored the thread.Message ID: @.***>