Commit 5db2d041 authored by Giovanni La Mura's avatar Giovanni La Mura
Browse files

Update copyright to 2025 and use environment detection for python3 engine

parent c125cb1b
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
#!/usr/bin/env python3

#   Copyright (C) 2024   INAF - Osservatorio Astronomico di Cagliari
#   Copyright (C) 2025   INAF - Osservatorio Astronomico di Cagliari
#
#   This program is free software: you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
@@ -145,7 +145,11 @@ def load_model(model_file):
        print("ERROR: " + model_file + " was not found!")
    if model is not None:
        max_rad = 0.0
        make_3d = False if model['system_settings']['make_3D'] == "0" else True
        make_3d = False
        try:
            if model['system_settings']['make_3D'] == "0" else True
        except KeyError:
            make_3d = False
        if (make_3d and not allow_3d):
            print("WARNING: 3D visualization of models is not available. Disabling.")
            make_3d = False
+1 −1
Original line number Diff line number Diff line
#!/usr/bin/env python3

#   Copyright (C) 2024   INAF - Osservatorio Astronomico di Cagliari
#   Copyright (C) 2025   INAF - Osservatorio Astronomico di Cagliari
#
#   This program is free software: you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
+2 −2
Original line number Diff line number Diff line
#!/bin/python3
#!/usr/bin/env python3

#   Copyright (C) 2024   INAF - Osservatorio Astronomico di Cagliari
#   Copyright (C) 2025   INAF - Osservatorio Astronomico di Cagliari
#
#   This program is free software: you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by
+2 −2
Original line number Diff line number Diff line
#!/bin/python3
#!/usr/bin/env python3

#   Copyright (C) 2024   INAF - Osservatorio Astronomico di Cagliari
#   Copyright (C) 2025   INAF - Osservatorio Astronomico di Cagliari
#
#   This program is free software: you can redistribute it and/or modify
#   it under the terms of the GNU General Public License as published by