Changeset 1199 for framspy


Ignore:
Timestamp:
02/06/23 01:14:15 (23 months ago)
Author:
Maciej Komosinski
Message:

Cosmetic

Location:
framspy
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • framspy/FramsticksLib.py

    r1196 r1199  
    7070                        ec.close()
    7171                        print(ec.messages) # output all caught messages
    72                         assert ec.error_count._value() == 0, "Problem while importing file '%s'" % simfile # make missing files fatal because error messages are easy to overlook
     72                        if ec.error_count._value() > 0:
     73                                raise ValueError("Problem while importing file '%s'" % simfile) # make missing files or incorrect paths fatal because they would not stop Framsticks from further processing, and error messages are easy to overlook in output
    7374
    7475
  • framspy/frams.py

    r1197 r1199  
    310310        Python programs do not have to know the Framstics path but if they know, just pass the path as the first argument.
    311311        Similarly '-dPATH' and '-DPATH' needed by Framsticks are optional and derived from the first path, unless they are specified as args in init().
    312         '-LNAME' is the optional library name (full name including the file name extension), default is 'frams-objects.dll/.so' depending on the platform.
     312        '-LNAME' is the optional library name (full name including the file name extension), default is 'frams-objects.dll/.so/.dylib' depending on the platform.
    313313        All other arguments are passed to Framsticks and not interpreted by this function.
    314314        """
  • framspy/gui.py

    r1198 r1199  
    99    args = parser.parse_args()
    1010
    11     if args.server and args.library:
     11    if args.library and args.server:
    1212        print("Do not provide both the library path and the network server address.")
    1313        sys.exit(2)
Note: See TracChangeset for help on using the changeset viewer.