pykat issueshttps://git.ligo.org/finesse/pykat/-/issues2020-11-25T13:23:38Zhttps://git.ligo.org/finesse/pykat/-/issues/20Moving output files using os.rename() does not work cross filesystems2020-11-25T13:23:38ZMischa SalleMoving output files using os.rename() does not work cross filesystemsWhen specifying `save_kat` and/or `save_output` in the kat `run` function, the output files are moved using `os.rename()` in respectively [finesse.py#L2395](https://git.ligo.org/finesse/pykat/-/blob/master/pykat/finesse.py#L2395) and [fi...When specifying `save_kat` and/or `save_output` in the kat `run` function, the output files are moved using `os.rename()` in respectively [finesse.py#L2395](https://git.ligo.org/finesse/pykat/-/blob/master/pykat/finesse.py#L2395) and [finesse.py#L2411](https://git.ligo.org/finesse/pykat/-/blob/master/pykat/finesse.py#L2411). That fails in case the src and dest are on different filesystems which is very common since the src is in the /tmp directory.
(Note that according to https://stackoverflow.com/a/43967659 `shutil.move()` would be a good replacement for python3 only. I've tried `shutil.move()` on two linux systems, one with 2.7.5 one with 2.7.17 and both seem to work fine which also matches the documentation https://docs.python.org/2.7/library/shutil.html#shutil.move).https://git.ligo.org/finesse/pykat/-/issues/18Mirror attribute 'rap' not read via attr command2020-06-04T16:52:58ZAndreas FreiseMirror attribute 'rap' not read via attr commandThe aperture of a mirror cannot be set with the attr command.
```
kat = finesse.kat()
kat.verbose = False
code = """
l l1 1 0 n1
gauss g1 l1 n1 1m -1
s s1 1 n1 n2
m m1 0.5 0.5 0 n2 n3
attr m1 rap 0.1
maxtem 0
pd refl n2
xaxi...The aperture of a mirror cannot be set with the attr command.
```
kat = finesse.kat()
kat.verbose = False
code = """
l l1 1 0 n1
gauss g1 l1 n1 1m -1
s s1 1 n1 n2
m m1 0.5 0.5 0 n2 n3
attr m1 rap 0.1
maxtem 0
pd refl n2
xaxis m1 rap lin 0.2m 3m 100
"""
kat.parse(code)
out = kat.run()
```
Gives:
```
Pykat error parsing line: 'attr m1 rap 0.1':
No attribute rap for mirrors
```
The file runs after commenting out that line.