EMsoft icon indicating copy to clipboard operation
EMsoft copied to clipboard

Issues with package configuration - EMsoftinit

Open StefanoVespucci opened this issue 4 years ago • 9 comments

EMsoftIni EMsoftIniConfig

Hello,

I am having issues with the initial configuration of the EMsoft packages. When I run the EMsoftini.exe program I get an error message after inserting the user name, see attached pictures. When I look inside the EMsoftConfig.json file I see that not all the fields are automatically generated. Also, there is no back-facing curly bracket at the end of the document, suggesting me that something went wrong.

Even if the configuration is clearly not completed, I am still able to run a limited number of programs, but not all of them. Is this issue known or am I doing something wrong? Thank you in advance for your help.

Regards,

Stefano

StefanoVespucci avatar Jan 06 '21 16:01 StefanoVespucci

I wonder if removing the $ in reads from ln 1303 and 1313 in EMsoftLib\local.f90.in would fix it, if someone has a Windows build and wants to try it

elena-pascal avatar Jan 06 '21 19:01 elena-pascal

Until the fix for this goes upstream, you can go round not using the config file at all. If you

  1. Remove the json config file. This way all programs will fall back to using absolute paths. They throw warnings but ignore that.
  2. You are now in charge of the absolute paths, so make sure the paths are given with the names of files in nml files. If there is no path given the software will start looking in current directory.
  3. You have to manually copy the template files from the template folder as calling -t will go through config file and fail. So for instance copy the EMLACBED.template in your working directory and go on from there.

elena-pascal avatar Jan 07 '21 12:01 elena-pascal

Thank you Elena, I tried to copy the EMLACBED.template file into the bin folder, and when I run the EMLACBED.exe file I get the following error message: EMLACBED It seems like the software is looking for the EMLACBED.nml file, which is not present in any folder. By the way, I have also removed the configuration file as suggested by you.

StefanoVespucci avatar Jan 08 '21 13:01 StefanoVespucci

Sorry, I wasn't too explicit. You have to rename the <file>.template to <file>.nml. And also add the correct info in the nml file. .template is the example for the .nml file

elena-pascal avatar Jan 08 '21 13:01 elena-pascal

Yep, now it worked! 👍 :) output_LACBED.txt Thank you very much! I guess I now need IDL scripts to visualize the LACBED data?!

StefanoVespucci avatar Jan 08 '21 14:01 StefanoVespucci

Nice! The output is a h5 file. But yeah all the nice visual tools are in IDL.

elena-pascal avatar Jan 08 '21 14:01 elena-pascal

OK! Thank you very much for your help Elena!

Regards,

Stefano

StefanoVespucci avatar Jan 08 '21 15:01 StefanoVespucci

Actually I think the IDL scripts are not in the nightly binary builds, or I can't see them.

@marcdegraef would be able to answer if the IDL scripts play nicely with the binary build.

elena-pascal avatar Jan 08 '21 16:01 elena-pascal

I had a nearly identical issue on Ubuntu 20.04, although the Fortran error thrown was "end of file" when I tried to run EMsoftinit. It turns out that I had been closely following the Wiki which led me to installing an older version of the SDK with some hiccups such as HDF5 version 1.8.20 not hosted (404'ing) at the bluequartz address in the make files. I solved these issues by following the READme https://github.com/EMsoft-org/EMsoft/ which led me to install an updated SDK.

ZacharyVarley avatar Apr 01 '21 17:04 ZacharyVarley