# Archiving options in UQLink model

**URL:** <https://uqworld.org/t/archiving-options-in-uqlink-model/693>\
**Category:** Community Q&A and How To\
**Tags:** uqlink\
**Created:** [June 24, 2020, 12:59pm UTC](https://uqworld.org/t/archiving-options-in-uqlink-model/693 "2020-06-24T12:59:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bsanderse](https://uqworld.org/user_avatar/uqworld.org/bsanderse/32/690_2.png) [@bsanderse](https://uqworld.org/u/bsanderse)\
**Post date:** [June 24, 2020, 12:59pm UTC](https://uqworld.org/t/archiving-options-in-uqlink-model/693/1 "2020-06-24T12:59:55Z")

</div>

Hi all,

I’m happily using the UQLink functionality to interface with a non-Matlab computational model.  
There are two small things that I noted:

If I set (according to the UQLink manual):

> ModelOpts.Archiving.Zip = false ;

I get the warning:

```
Warning: The option provided "Zip" is of type logical, but the accepted types are: real, boolean. "Zip" is set to its default value: 1

```

I’m not sure about this; I followed the manual and don’t know another way to specify a boolean in Matlab.

A related comment: if I set

> ModelOpts.Archiving.Action = ‘none’;

(as specified in the manual), I get the error

```
Reference to non-existent field 'Archive'.
Error in uq_initialize_uq_uqlink (line 301)
optArchiveAction.Value = OptDefault.Archive ;

```

Looking into the UQLab code it seems to me that I should specify ‘ignore’ instead of ‘none’. Please confirm if this is the case (and if so, maybe update the manual).

Best,

Benjamin

---

<div class="post-metadata">

**Author:** ![damarginal](https://uqworld.org/user_avatar/uqworld.org/damarginal/32/73_2.png) [@damarginal](https://uqworld.org/u/damarginal)\
**Post date:** [June 26, 2020, 10:20am UTC](https://uqworld.org/t/archiving-options-in-uqlink-model/693/2 "2020-06-26T10:20:31Z")

</div>

Hi @bsanderse,

Thank you very much for pointing these issues! They will be fixed in the next release of UQLab.

For now, if you really need to you avoid zipping the archive, you can directly fix the issue by changing L.330-331 of `uq_initialize_uq_uqlink.m` from:

```matlab
[optArchiveZip, Options.Archiving] = uq_process_option(Options.Archiving, 'Zip',...
        OptDefault.Archiving.Zip, {'real','boolean'}) ;

```

to:

```matlab
[optArchiveZip, Options.Archiving] = uq_process_option(Options.Archiving, 'Zip',...
        OptDefault.Archiving.Zip, 'logical');

```

You’ll be set using `true` or `false` as the value for that configuration option.

Let me know if this issue can be fixed this way.

And indeed, the correct way to specify the `.Archiving.Action` the way you want it (i.e., leave everything as-is) is to use `ignore` and not `none`. The manual will be updated accordingly.

Thanks a lot again!

---

<div class="post-metadata">

**Author:** ![bsanderse](https://uqworld.org/user_avatar/uqworld.org/bsanderse/32/690_2.png) [@bsanderse](https://uqworld.org/u/bsanderse)\
**Post date:** [July 6, 2020, 11:31am UTC](https://uqworld.org/t/archiving-options-in-uqlink-model/693/3 "2020-07-06T11:31:38Z")

</div>

Hi @damarginal ,

Thanks for the quick reply! I fixed the lines you mentioned and indeed, the code works fine now.

Best,

Benjamin

---

<div class="post-metadata">

**Author:** ![damarginal](https://uqworld.org/user_avatar/uqworld.org/damarginal/32/73_2.png) [@damarginal](https://uqworld.org/u/damarginal)\
**Post date:** [July 8, 2020, 4:29pm UTC](https://uqworld.org/t/archiving-options-in-uqlink-model/693/4 "2020-07-08T16:29:33Z")

</div>


