Commit e0d9adb
authored
fix dictionary referencing (#194)
* fix dictionary referencing
Had an issue with the Constraints object not having a 'Phase' key. The only key in Constraints is 'data' and the corresponding value is a dictionary with the 'Phase' key. Fixed by specifying 'data' key.
* fix abspath arguments issue
Had error mentioning abspath only takes 1 (positional) argument and two were given, related to the calling of "abspath(path2GSAS2, 'G2.py')". Assumed that this should be the path to 'G2.py' in the path2GSAS2 directory, so used os.path.join(path2GSAS2, 'G2.py') to join them together so that is the argument in abspath. Worked fine after this change, with the following console output:
Python installed at /mnt/ceph/home/f1118524/.conda/envs/G2env/bin/python3.13
GSAS-II installed at /mnt/ceph/home/f1118524/.conda/envs/G2env/G2/GSASII
G2.py at /mnt/ceph/home/f1118524/.conda/envs/G2env/G2/GSASII/G2.py
GSASII icon at /mnt/ceph/home/f1118524/.conda/envs/G2env/G2/GSASII/icons/gsas2.png
Created Desktop shortcut calling gnome-terminal as file
/home/f1118524/Desktop/GSASII.desktop
Created Menu shortcut calling gnome-terminal as file
/home/f1118524/.local/share/applications/GSASII.desktop
Created '/mnt/ceph/home/f1118524/.conda/envs/G2env/Reset2FreshGSASII.sh' to reset GSAS-II installation when all else fails...1 parent 634f4b1 commit e0d9adb
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1391 | 1391 | | |
1392 | 1392 | | |
1393 | 1393 | | |
1394 | | - | |
| 1394 | + | |
1395 | 1395 | | |
1396 | 1396 | | |
1397 | 1397 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
0 commit comments